Function at 0x470810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba2f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x34], eax
movzx ecx, byte [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00402010
lea ecx, [ebp - 0x88]
call fcn.00401cd0
nop
mov dword [ebp - 4], 2
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x38], edx
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00402010
lea ecx, [ebp - 0xa0]
call fcn.00401cd0
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
push ecx
push 0
call fcn.0045f700
add esp, 8
push eax
lea ecx, [ebp - 0x88]
call fcn.004226c0
nop
cmp dword [ebp - 0x78], 0
jne 0x4708b8
mov dword [ebp - 0x18], 1
jmp 0x4708bf
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4708ff
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401940
nop
mov eax, dword [ebp - 0x3c]
jmp 0x470b75
push 0
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x88]
push edx
call fcn.004019f0
call fcn.00462cc0
add esp, 0x28
cmp dword [ebp - 0x78], 0
jne 0x47093a
mov dword [ebp - 0x1c], 1
jmp 0x470941
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
jne 0x470b48
mov byte [ebp - 4], 4
lea edx, [ebp - 0x70]
mov dword [ebp - 0x40], edx
movzx eax, byte [ebp - 0x13]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00402010
lea ecx, [ebp - 0x70]
call fcn.00401cd0
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push ecx
call fcn.0045f680
add esp, 4
cmp dword [ebp - 0x60], 0
jne 0x470992
mov dword [ebp - 0x20], 1
jmp 0x470999
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0xf], dl
movzx eax, byte [ebp - 0xf]
test eax, eax
jne 0x470b3b
cmp dword [ebp + 0xc], 0
je 0x4709b9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x4709c0
mov dword [ebp - 0x24], 0x4c52b8
push 0x4c52bc
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xec]
push eax
call fcn.00401f00
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.00422a40
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00401ca0
push eax
lea ecx, [ebp - 0xbc]
call fcn.004019a0
mov ecx, dword [ebp - 0x28]
or ecx, 4
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.00401940
nop
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xec]
call fcn.00401940
nop
lea ecx, [ebp - 0xbc]
call fcn.00401910
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.004629c0
add esp, 8
cmp dword [ebp - 0x60], 0
jne 0x470a77
mov dword [ebp - 0x2c], 1
jmp 0x470a7e
mov dword [ebp - 0x2c], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x10], al
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
jne 0x470b2b
lea ecx, [ebp - 0x70]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470acc
push 1
push 1
lea ecx, [ebp - 0x70]
call fcn.00401910
push eax
call fcn.00461640
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x470acc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp + 8], 0
je 0x470adf
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.004226c0
nop
mov dword [ebp - 0x54], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401940
nop
mov eax, dword [ebp - 0x54]
jmp 0x470b75
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401940
nop
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401940
nop
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret