Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __fastcall sub_114B0(void *a1)
- {
- FILE *v1; // r4
- int *v2; // r0
- char *v3; // r0
- FILE *v4; // r4
- int *v5; // r0
- char *v6; // r0
- int result; // r0
- FILE *v8; // r4
- int *v9; // r0
- char *v10; // r0
- FILE *v11; // r4
- int *v12; // r0
- char *v13; // r0
- void *v14; // [sp+Ch] [bp-90h]
- char v15; // [sp+10h] [bp-8Ch]
- char v16; // [sp+50h] [bp-4Ch]
- v14 = a1;
- if ( sub_11240(0x11FEC) )
- {
- if ( sub_10C58(0x11F10, &v16, &v15) == 1 )
- {
- result = sub_111FC("/app/bin/playerengine_india");
- if ( !result )
- {
- sub_11020(v14);
- system("rm -rf /app/bin/playerengine_global");
- system("rm -rf /app/bin/playerengine.conf");
- if ( symlink("/app/bin/playerengine_india.conf", "/app/bin/playerengine.conf") == -1 )
- {
- v8 = (FILE *)stderr;
- v9 = _errno_location();
- v10 = strerror(*v9);
- fprintf(v8, "symlink(/app/bin/playerengine.conf): %s\n", v10);
- }
- else
- {
- system("/bin/touch /app/bin/playerengine_india");
- }
- result = sub_11020(v14);
- }
- }
- else
- {
- result = sub_111FC("/app/bin/playerengine_global");
- if ( !result )
- {
- sub_11020(v14);
- system("rm -rf /app/bin/playerengine_india");
- system("rm -rf /app/bin/playerengine.conf");
- if ( symlink("/app/bin/playerengine_global.conf", "/app/bin/playerengine.conf") == -1 )
- {
- v11 = (FILE *)stderr;
- v12 = _errno_location();
- v13 = strerror(*v12);
- fprintf(v11, "symlink(/app/bin/playerengine.conf): %s\n", v13);
- }
- else
- {
- system("/bin/touch /app/bin/playerengine_global");
- }
- result = sub_11020(v14);
- }
- }
- }
- else
- {
- sub_11020(v14);
- if ( sub_10C58(73488, &v16, &v15) == 1 )
- {
- if ( symlink("/app/bin/playerengine_india.conf", "/app/bin/playerengine.conf") == -1 )
- {
- v1 = (FILE *)stderr;
- v2 = _errno_location();
- v3 = strerror(*v2);
- fprintf(v1, "symlink(/app/bin/playerengine.conf): %s\n", v3);
- }
- else
- {
- system("/bin/touch /app/bin/playerengine_india");
- }
- }
- else if ( symlink("/app/bin/playerengine_global.conf", "/app/bin/playerengine.conf") == -1 )
- {
- v4 = (FILE *)stderr;
- v5 = _errno_location();
- v6 = strerror(*v5);
- fprintf(v4, "symlink(/app/bin/playerengine.conf): %s\n", v6);
- }
- else
- {
- system("/bin/touch /app/bin/playerengine_global");
- }
- result = sub_11020(v14);
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement