Function at 0x46cce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f4fc
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x428]
push 1
push eax
mov dword [ebp - 0x430], esi
call fcn.00465430
mov dword [ebp - 4], 0
push str.GmSvc.dll
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00410610
add esp, 0x14
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46cd61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x424]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp - 0x424]
test eax, eax
je 0x46cef8
call fcn.0048b530
add esp, 4
test eax, eax
jne 0x46cda1
push dword [ebp - 0x424]
push str.CGameCenterUtil::RunServiceFunction___s_no_sign
call fcn.00441aa0
add esp, 8
xor esi, esi
jmp 0x46cf69
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp dword [0x56f57c], 0
je 0x46ceb7
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46cea7
xorps xmm0, xmm0
mov dword [ebp - 0x434], 0
lea ecx, [ebp - 0x454]
push ecx
movups xmmword [ebp - 0x454], xmm0
movups xmmword [ebp - 0x444], xmm0
call eax
mov ax, word [ebp - 0x454]
cmp ax, 9
je 0x46ce9d
cmp ax, 6
je 0x46ce9d
cmp ax, 0xc
je 0x46ce9d
push str.IsWow64Process2
push 0x537ac4
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x46ce94
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x46ce94
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x428], cx
sete al
mov dword [0x5739f4], eax
jmp 0x46cea7
xor eax, eax
mov dword [0x5739f4], eax
jmp 0x46cea7
mov dword [0x5739f4], 1
mov esi, dword [ebp - 0x430]
mov dword [0x56f57c], 0
cmp dword [0x5739f4], 0
lea eax, [ebp - 0x218]
je 0x46cecd
push str.SysWOW64_rundll32.exe
jmp 0x46ced2
push str.System32_rundll32.exe
push 0x104
push eax
call fcn.004d096d
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cf09
lea eax, [ebp - 0x218]
push eax
push str.CGameCenterUtil::RunServiceFunction___s_not_found
call fcn.00441aa0
add esp, 8
xor esi, esi
jmp 0x46cf69
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b17e0
push esi
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push str.__s___s
push 0x104
push eax
call fcn.00405640
mov eax, dword [ebp + 0xc]
add esp, 0x20
test eax, eax
jne 0x46cf48
push eax
push eax
push eax
jmp 0x46cf4d
push eax
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043cb20
mov esi, eax
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46cf8e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret