Function at 0x500b80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7adf29
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x89b044]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
push str.CMainUI::_CheckLaunchPositiveUpdateInstall
call fcn.00609080
add esp, 4
push 0x7ee488
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x500beb
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x34], 0
xor eax, eax
jmp 0x50105f
push 0
push str.LDSGameCenterSetupMainWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x500c0c
xor eax, eax
jmp 0x50105f
push 0xffffffffffffffff
push 0x7ee4f0
push 0x7ee524
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0060f900
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jb 0x500c35
xor eax, eax
jmp 0x50105f
cmp dword [ebp - 0x14], 0xffffffff
jne 0x500c42
xor eax, eax
jmp 0x50105f
push 0x7ee564
push str.new_ver_saved_path
push 0x7ee590
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
push ecx
call fcn.00618c30
add esp, 0x14
mov dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00618340
add esp, 8
mov byte [ebp - 4], 1
push 0x7ee5d0
push str.new_ver_version
push 0x7ee5f4
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x30]
push ecx
call fcn.00618c30
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00405e80
push eax
lea ecx, [ebp - 0x18]
call fcn.00405e80
push eax
call fcn.00618570
add esp, 8
test eax, eax
je 0x500cf5
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x3c]
jmp 0x50105f
push 0
lea edx, [ebp - 0x1c]
push edx
call fcn.004086d0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00405e80
push eax
lea ecx, [ebp - 0x18]
call fcn.00405e80
push eax
call fcn.00618570
add esp, 8
test eax, eax
jg 0x500d67
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x40]
jmp 0x50105f
push 0
lea ecx, [ebp - 0x10]
call fcn.00405e80
push eax
call fcn.00612480
add esp, 8
test eax, eax
jne 0x500dc0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x44]
jmp 0x50105f
lea ecx, [ebp - 0x18]
call fcn.00406470
push eax
lea ecx, [ebp - 0x10]
call fcn.00406470
push eax
push str.CMainUI::_CheckLaunchPositiveUpdateInstall__lanuch__s_version__s
call fcn.00609080
add esp, 0xc
push str.UpdatePosTempupdate.exe
lea eax, [ebp - 0x48]
push eax
call fcn.00618650
add esp, 4
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x84]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00403a70
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00405ef0
lea ecx, [ebp - 0x28]
call fcn.00405e80
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x500ea9
push 0x7ee6fc
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00618650
add esp, 4
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00403a70
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403670
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x50]
call fcn.00405ef0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
call fcn.00405ef0
push str.LDSGameCenter_install
lea ecx, [ebp - 0x24]
call fcn.004068d0
mov byte [ebp - 4], 9
push str.backmode
lea ecx, [ebp - 0x70]
call fcn.00403bf0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
push ecx
call fcn.0043cd80
mov ecx, eax
call fcn.0043b080
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x51], al
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.00403c30
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x500f60
call fcn.0043cd80
mov ecx, eax
call fcn.0043ad90
mov ecx, eax
call fcn.00403c80
push eax
lea ecx, [ebp - 0x38]
call fcn.004068d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call fcn.00403b90
movzx eax, al
test eax, eax
jne 0x500f54
push 0x7ee754
push 0x7ee764
lea ecx, [ebp - 0x38]
call fcn.004036f0
lea ecx, [ebp - 0x38]
call fcn.00406470
push eax
push 0x7ee768
lea ecx, [ebp - 0x24]
push ecx
call fcn.004a23e0
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.00405ef0
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x24]
call fcn.00405e80
push eax
lea ecx, [ebp - 0x28]
call fcn.00405e80
push eax
call fcn.00639ae0
add esp, 0x20
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x500fe6
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call fcn.00405ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00405ef0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x74]
jmp 0x50105f
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
push str.new_ver_tried_inst_times
push str.SoftwareLDSGameCenterupdate2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0060f960
add esp, 0x10
mov dword [ebp - 0x78], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24]
call fcn.00405ef0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00405ef0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00405ef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00405ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00405ef0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret