Function at 0x1004f330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013ddfc
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x1019bc84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10044a80
mov ecx, eax
call fcn.1003dfd0
mov edi, eax
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x1004f620
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
call fcn.10044a80
mov ecx, eax
call fcn.1003fb80
mov esi, eax
call fcn.10044a80
mov ecx, eax
call fcn.1003fc70
test esi, esi
jne 0x1004f422
test eax, eax
jne 0x1004f422
push dword [edi]
lea eax, [ebp - 0x21c]
push str._PIDludashiembed__SUBPID_s
push eax
call fcn.1000ade0
add esp, 0xc
call fcn.10044a80
mov ecx, eax
call fcn.1003dfd0
mov ecx, str.360safeadvtool
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004f406
test dx, dx
je 0x1004f402
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004f406
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004f3e0
xor eax, eax
jmp 0x1004f40b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004f443
call fcn.10044a80
mov ecx, eax
call fcn.1003fc40
cmp dword [eax], 0
jne 0x1004f443
jmp 0x1004f438
push dword [edi]
lea eax, [ebp - 0x21c]
push str._FROMBUYTRY__PIDludashiembed__SUBPID_s
push eax
call fcn.1000ade0
add esp, 0xc
call fcn.10044a80
cmp dword [eax + 0x60], 0
je 0x1004f453
push str.__NOSHORTCUT
lea ecx, [ebp - 0x21c]
call fcn.1004dc00
call fcn.10044a80
mov ecx, eax
call fcn.1003fc60
cmp dword [eax], 0
je 0x1004f474
push str.__FILELIST
lea ecx, [ebp - 0x21c]
call fcn.1004dc00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e3030
add esp, 0xc
call fcn.10062810
push 0x104
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
push str.ComputerZ.set
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
mov ebx, 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
jne 0x1004f50c
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x1004f4fd
push str.Cteate_ComputerZ.set_fail.
call fcn.1004d170
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1004f5e2
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x1004f62a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, str.gamecenter
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
test eax, 0xffff0000
jne 0x1004f54a
movzx eax, ax
push eax
call fcn.1000d400
jmp 0x1004f554
push str.gamecenter
call fcn.10011d00
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.1009ff00
add esp, 0xc
mov edx, dword [ebp - 0x220]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f596
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x224]
push 0x1015a074
push str.gamecenter
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.Write_decrypt_gamecenter_cmd_result:_d
call fcn.1004d170
mov edx, dword [ebp - 0x224]
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004f5e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1004f604
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1009de58
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000aab0
push 0x80004005
call fcn.1000aab0
int3