Function at 0x42a080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4599a4
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.00401eb0
lea ecx, [ebp - 0x88]
call fcn.00401d00
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.00401eb0
lea ecx, [ebp - 0xa0]
call fcn.00401d00
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
push ecx
push 0
call fcn.00427e50
add esp, 8
push eax
lea ecx, [ebp - 0x88]
call fcn.00405f30
nop
cmp dword [ebp - 0x78], 0
jne 0x42a128
mov dword [ebp - 0x18], 1
jmp 0x42a12f
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x42a16f
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 0x42a3e5
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.00428ba0
add esp, 0x28
cmp dword [ebp - 0x78], 0
jne 0x42a1aa
mov dword [ebp - 0x1c], 1
jmp 0x42a1b1
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
jne 0x42a3b8
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.00401eb0
lea ecx, [ebp - 0x70]
call fcn.00401d00
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push ecx
call fcn.00427dd0
add esp, 4
cmp dword [ebp - 0x60], 0
jne 0x42a202
mov dword [ebp - 0x20], 1
jmp 0x42a209
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0xf], dl
movzx eax, byte [ebp - 0xf]
test eax, eax
jne 0x42a3ab
cmp dword [ebp + 0xc], 0
je 0x42a229
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x42a230
mov dword [ebp - 0x24], 0x461b94
push 0x461b98
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xec]
push eax
call fcn.00401da0
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.00406190
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.00401c80
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.004288a0
add esp, 8
cmp dword [ebp - 0x60], 0
jne 0x42a2e7
mov dword [ebp - 0x2c], 1
jmp 0x42a2ee
mov dword [ebp - 0x2c], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x10], al
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
jne 0x42a39b
lea ecx, [ebp - 0x70]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a33c
push 1
push 1
lea ecx, [ebp - 0x70]
call fcn.00401910
push eax
call fcn.0042aab0
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x42a33c
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp + 8], 0
je 0x42a34f
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405f30
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 0x42a3e5
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