Function at 0x46f200
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdc86
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x53e200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
call fcn.00422af0
add esp, 8
movzx edx, al
test edx, edx
je 0x46f4f0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
call fcn.0040a7a0
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x364], 0
je 0x46f2d6
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x364]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
je 0x46f2bc
push 1
mov edx, dword [ebp - 0x90]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x90]
mov edx, dword [eax]
call edx
mov dword [ebp - 0xa4], eax
jmp 0x46f2c6
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x8c]
mov dword [eax + 0x364], 0
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407180
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004064a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f3e1
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x20]
call fcn.0040c5f0
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
push edx
call fcn.0041c1e0
add esp, 4
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb0]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.004246d0
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.004324a0
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040a7d0
lea ecx, [ebp - 0x40]
call fcn.00406380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00406380
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00406380
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00406380
lea ecx, [ebp - 0x28]
call fcn.004064a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f408
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
jmp 0x46f4f0
push 0x10
call fcn.0042c3a0
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], 0
je 0x46f443
push 0
lea ecx, [ebp - 0x28]
call fcn.004064a0
push eax
mov ecx, dword [ebp - 0x94]
call fcn.0046f540
mov dword [ebp - 0x98], eax
jmp 0x46f44d
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xc4]
mov dword [ecx + 0x364], edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x364]
call fcn.0042c1d0
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x46f4e1
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x351]
test edx, edx
je 0x46f4ac
mov dword [ebp - 0x9c], 1
jmp 0x46f4b6
mov dword [ebp - 0x9c], 3
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x364]
call fcn.0046f5a0
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax + 0x2c]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c626c
mov esp, ebp
pop ebp
ret 4