Function at 0x42f565
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469aef
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x47c0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
lea ecx, [ebp - 0xf0]
call fcn.004138c1
and dword [ebp - 4], 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040e357
push eax
lea ecx, [ebp - 0xf0]
call fcn.004149a7
movzx eax, al
test eax, eax
je 0x42fb22
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 2
jne 0x42f5ea
and dword [ebp - 0x74], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x74]
jmp 0x42fc11
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 0
jne 0x42f83c
mov ecx, dword [ebp + 8]
call fcn.00410009
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
call fcn.00423b9a
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0x94]
lea eax, [ebp - 0x54]
push eax
call fcn.0040f892
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x104]
call fcn.0040e2ca
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0042da3d
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x3b]
test eax, eax
je 0x42f682
mov eax, dword [ebp - 0x10]
add eax, 0xd8
mov dword [ebp - 0x48], eax
jmp 0x42f686
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0xcb]
test eax, eax
je 0x42f6a1
mov eax, dword [ebp - 0x10]
add eax, 0xc0
mov dword [ebp - 0x38], eax
jmp 0x42f6a5
and dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.0040e357
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.0040e357
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040e357
push eax
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
call dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42f720
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x64]
jmp 0x42fc11
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f7e6
cmp dword [ebp - 0x14], 1
je 0x42f7e8
cmp dword [ebp - 0x14], 2
je 0x42f788
cmp dword [ebp - 0x14], 3
je 0x42f7b5
cmp dword [ebp - 0x14], 4
je 0x42f7f4
cmp dword [ebp - 0x14], 5
je 0x42f75e
jmp 0x42f800
mov dword [ebp - 0x6c], 0x80004004
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x6c]
jmp 0x42fc11
and dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x98]
jmp 0x42fc11
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 2
and dword [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x58]
jmp 0x42fc11
jmp 0x42f830
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 1
jmp 0x42f830
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 3
jmp 0x42f830
mov dword [ebp - 0xa8], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0xa8]
jmp 0x42fc11
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040e2ca
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 3
jne 0x42f8be
push dword [ebp + 8]
call fcn.00426195
movzx eax, al
test eax, eax
jne 0x42f8af
push dword [ebp + 8]
push dword [0x471970]
mov ecx, dword [ebp - 0x10]
call fcn.0042ed1c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x42f88b
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x7c]
jmp 0x42fc11
mov dword [ebp - 0xa0], 0x80004005
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0xa0]
jmp 0x42fc11
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x174], 1
jmp 0x42fb1d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x48], 4
jne 0x42fa18
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.0040f9ff
mov byte [ebp - 4], 4
lea eax, [ebp - 0x44]
push eax
call fcn.00426195
movzx eax, al
test eax, eax
jne 0x42f963
push dword [ebp + 8]
push dword [0x471970]
mov ecx, dword [ebp - 0x10]
call fcn.0042ed1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x42f933
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x84]
jmp 0x42fc11
mov dword [ebp - 0x90], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x90]
jmp 0x42fc11
lea ecx, [ebp - 0x44]
call fcn.0040e357
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e357
push eax
call fcn.00413668
movzx eax, al
test eax, eax
jne 0x42fa07
call fcn.00415657
mov dword [ebp - 0x8c], eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
push dword [0x47196c]
push dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x10]
call fcn.0042ee7b
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x42f9dd
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x5c]
jmp 0x42fc11
mov dword [ebp - 0x60], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e2ca
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x60]
jmp 0x42fc11
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040e2ca
jmp 0x42fb1d
lea ecx, [ebp - 0xf0]
call fcn.0041344a
movzx eax, al
test eax, eax
je 0x42fa96
mov ecx, dword [ebp + 8]
call fcn.0040e357
push eax
call fcn.004135d3
movzx eax, al
test eax, eax
jne 0x42fa91
push dword [ebp + 8]
push dword [0x471964]
mov ecx, dword [ebp - 0x10]
call fcn.0042eda2
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x42fa76
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x68]
jmp 0x42fc11
and dword [ebp - 0x70], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x70]
jmp 0x42fc11
jmp 0x42fb1d
mov ecx, dword [ebp + 8]
call fcn.0040e357
push eax
call fcn.004150b6
movzx eax, al
test eax, eax
je 0x42fb1d
mov ecx, dword [ebp + 8]
call fcn.0040e357
push eax
call fcn.00413baf
movzx eax, al
test eax, eax
jne 0x42fb1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42fb1d
push dword [ebp + 8]
push dword [0x471968]
mov ecx, dword [ebp - 0x10]
call fcn.0042eda2
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x42fb02
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x78], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x78]
jmp 0x42fc11
and dword [ebp - 0x80], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x80]
jmp 0x42fc11
jmp 0x42fbef
mov ecx, dword [ebp + 8]
call fcn.0040e357
push eax
call fcn.0041632f
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x42fbef
mov ecx, dword [ebp + 8]
call fcn.0040e357
mov ecx, dword [ebp - 0x18]
movzx eax, word [eax + ecx*2 + 2]
test eax, eax
je 0x42fbef
push dword [ebp + 8]
lea ecx, [ebp - 0xb8]
call fcn.0040f9ff
mov byte [ebp - 4], 5
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb8]
call fcn.00413148
lea ecx, [ebp - 0x13c]
call fcn.004138c1
mov byte [ebp - 4], 6
push 0
lea ecx, [ebp - 0xb8]
call fcn.0040e357
push eax
lea ecx, [ebp - 0x13c]
call fcn.004149a7
movzx eax, al
test eax, eax
je 0x42fbd1
lea ecx, [ebp - 0x13c]
call fcn.0042da65
movzx eax, al
test eax, eax
je 0x42fbd1
mov eax, dword [ebp - 0x11c]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040e357
push eax
call fcn.00413511
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x13c]
call fcn.004138e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.0040e2ca
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
and dword [ebp - 0x88], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.004138e0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 8