Function at 0x46f100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5765c6
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x5c4680]
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.0042f0c0
add esp, 8
movzx edx, al
test edx, edx
je 0x46f3f0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x368
call fcn.00407d70
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x364], 0
je 0x46f1d6
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 0x46f1bc
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 0x46f1c6
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.00418510
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403d90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f2e1
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x20]
call fcn.0040b550
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.0041b420
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.00434fd0
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.00434f90
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x28]
call fcn.00407da0
lea ecx, [ebp - 0x40]
call fcn.00403c70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403c70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00403c70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00403c70
lea ecx, [ebp - 0x28]
call fcn.00403d90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f308
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403c70
jmp 0x46f3f0
push 0x10
call fcn.0045b8a0
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x94], 0
je 0x46f343
push 0
lea ecx, [ebp - 0x28]
call fcn.00403d90
push eax
mov ecx, dword [ebp - 0x94]
call fcn.0046f440
mov dword [ebp - 0x98], eax
jmp 0x46f34d
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.0045b6d0
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x46f3e1
mov ecx, dword [ebp - 0x8c]
movzx edx, byte [ecx + 0x351]
test edx, edx
je 0x46f3ac
mov dword [ebp - 0x9c], 1
jmp 0x46f3b6
mov dword [ebp - 0x9c], 3
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x364]
call fcn.0046f4a0
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.00403c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret 4