Function at 0x1004f640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e4ec
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x101d7c7c]
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.10044c90
mov ecx, eax
call fcn.1003e3a0
mov edi, eax
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x1004f930
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
call fcn.10044c90
mov ecx, eax
call fcn.1003ff50
mov esi, eax
call fcn.10044c90
mov ecx, eax
call fcn.10040040
test esi, esi
jne 0x1004f732
test eax, eax
jne 0x1004f732
push dword [edi]
lea eax, [ebp - 0x21c]
push str._PIDludashiembed__SUBPID_s
push eax
call fcn.1000b130
add esp, 0xc
call fcn.10044c90
mov ecx, eax
call fcn.1003e3a0
mov ecx, str.360safeadvtool
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004f716
test dx, dx
je 0x1004f712
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004f716
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004f6f0
xor eax, eax
jmp 0x1004f71b
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004f753
call fcn.10044c90
mov ecx, eax
call fcn.10040010
cmp dword [eax], 0
jne 0x1004f753
jmp 0x1004f748
push dword [edi]
lea eax, [ebp - 0x21c]
push str._FROMBUYTRY__PIDludashiembed__SUBPID_s
push eax
call fcn.1000b130
add esp, 0xc
call fcn.10044c90
cmp dword [eax + 0x60], 0
je 0x1004f763
push str.__NOSHORTCUT
lea ecx, [ebp - 0x21c]
call fcn.1004de00
call fcn.10044c90
mov ecx, eax
call fcn.10040030
cmp dword [eax], 0
je 0x1004f784
push str.__FILELIST
lea ecx, [ebp - 0x21c]
call fcn.1004de00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10112750
add esp, 0xc
call fcn.10071f70
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 0x1004f81c
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 0x1004f80d
push str.Cteate_ComputerZ.set_fail.
call fcn.1004d370
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1004f8f2
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x1004f93a
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 0x1004f85a
movzx eax, ax
push eax
call fcn.1000d750
jmp 0x1004f864
push str.gamecenter
call fcn.10012050
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.100aec50
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 0x1004f8a6
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 0x1018d10c
push str.gamecenter
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.Write_decrypt_gamecenter_cmd_result:_d
call fcn.1004d370
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 0x1004f8f2
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 0x1004f914
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.100acb08
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000ae00
push 0x80004005
call fcn.1000ae00
int3