Function at 0x46c430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574856
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x66c], 0
jne 0x46c475
jmp 0x46c6b1
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x66c]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x66c]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xfc]
call dword [0x5adb10]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call dword [0x5adab8]
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0xf4]
call fcn.0046cb00
lea ecx, [ebp - 0x4c]
call fcn.00401830
push eax
call fcn.004b5fc4
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x46c512
mov dword [ebp - 0x10], 0
jmp 0x46c54c
push 3
push 0
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00419580
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46c540
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.004017f0
cmp dword [ebp - 0x10], 0
jne 0x46c599
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x664], 0
je 0x46c585
push 0
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x664]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x664]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004017f0
jmp 0x46c6b1
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x46c658
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x668]
call dword [0x5adae4]
movzx eax, al
test eax, eax
je 0x46c625
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 0x690]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0x690]
mov edx, dword [edx]
mov eax, dword [edx + 0xc8]
call eax
movzx ecx, al
test ecx, ecx
jne 0x46c625
mov edx, dword [ebp - 0xf4]
cmp dword [edx + 0x664], 0
je 0x46c623
push 1
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0x664]
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x664]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xd8]
call eax
jmp 0x46c658
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x664], 0
je 0x46c658
push 0
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x664]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x664]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00428250
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004048a0
push eax
push 0x7ef
mov ecx, dword [ebp - 0xf4]
add ecx, 0x4f8
mov eax, dword [ebp - 0xf4]
mov edx, dword [eax + 0x4f8]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00404950
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004017f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret