Function at 0x4730c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5207a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x56f790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4732e9
mov edi, dword [ebp + 8]
mov ecx, edx
add edi, 4
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473100
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00407f80
push 0x532d98
push 0x5333f8
mov ecx, edi
call fcn.00408bc0
mov ecx, dword [edi]
mov esi, dword [ecx - 0xc]
cmp esi, 1
jg 0x473144
lea eax, [ecx - 0x10]
push eax
call fcn.004088a0
add esp, 4
add eax, 0x10
jmp 0x473177
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x473154
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x473160
call fcn.00408a30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.0040a6c0
mov eax, dword [ebp + 0xc]
mov edx, 0x532d98
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x4731a6
test si, si
je 0x4731a2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4731a6
add ecx, 4
add edx, 4
test si, si
jne 0x473180
xor esi, esi
jmp 0x4731ab
sbb esi, esi
or esi, 1
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4731c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x47324d
mov edx, dword [edi]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
cmovns esi, eax
cmp esi, ecx
jl 0x4731f2
lea eax, [edx - 0x10]
push eax
call fcn.004088a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x47321d
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x473202
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x47320e
call fcn.00408a30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push esi
push dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0040a6c0
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00408360
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47324d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.00475a30
add esp, 4
test eax, eax
jne 0x4732e9
push 0x532d98
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00410610
push str.LDSGameCenter.exe
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
call fcn.00410610
add esp, 0x18
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp + 8]
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4732aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4732c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4732e9
call fcn.0040ed70
mov ecx, eax
call fcn.0040cb00
test eax, eax
jne 0x4732e9
push 0x52cf48
mov ecx, edi
call fcn.00416bf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8