Function at 0x409428
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x429e8b
call fcn.00428110
sub esp, 0x94
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
mov byte [eax], 1
call fcn.00403f40
lea ecx, [ebp - 0x34]
call fcn.004025e9
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x5c]
mov eax, dword [edi]
push eax
call fcn.004042bb
test al, al
je 0x40967d
mov eax, dword [esi + 0x4c]
cmp eax, 2
je 0x40966b
test eax, eax
jne 0x409555
mov ecx, edi
call fcn.00402b3a
inc eax
mov ecx, edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00409741
lea ecx, [ebp - 0x34]
mov edx, eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004025c5
push dword [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00402099
pop ecx
lea edx, [ebp + 8]
push edx
mov dl, byte [esi + 0x3a]
neg dl
lea ebx, [esi + 0xd8]
mov eax, dword [ebp - 0x44]
sbb edx, edx
mov dword [ebp - 0x14], eax
and edx, ebx
lea ebx, [esi + 0xbc]
push edx
mov dl, byte [esi + 0xc7]
neg dl
sbb edx, edx
mov eax, dword [ebp - 0x40]
and edx, ebx
mov dword [ebp - 0x10], eax
push edx
mov eax, dword [esi + 0x50]
push dword [esi + 0x78]
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x24]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x4094f4
mov esi, eax
jmp 0x409510
mov eax, dword [ebp + 8]
sub eax, 0
je 0x409548
dec eax
je 0x409541
dec eax
je 0x40953d
dec eax
je 0x409536
dec eax
je 0x40952d
dec eax
je 0x409526
mov esi, 0x80004005
push dword [ebp - 0x24]
call fcn.00402099
push dword [ebp - 0x34]
call fcn.00402099
pop ecx
jmp 0x409675
mov esi, 0x80004004
jmp 0x409510
mov dword [esi + 0x4c], 3
jmp 0x409548
mov dword [esi + 0x4c], 2
xor esi, esi
jmp 0x409510
mov dword [esi + 0x4c], 1
push dword [ebp - 0x24]
and byte [ebp - 4], 0
call fcn.00402099
pop ecx
mov eax, dword [esi + 0x4c]
cmp eax, 3
jne 0x409594
mov ecx, edi
call fcn.00406b0b
test al, al
jne 0x40958b
push edi
mov ecx, esi
push dword [0x42cc24]
call fcn.00408ef2
test eax, eax
je 0x409581
mov esi, eax
jmp 0x40966d
mov esi, 0x80004005
jmp 0x40966d
mov byte [esi + 0x3c], 1
jmp 0x40971f
cmp eax, 4
jne 0x409608
push edi
lea ecx, [ebp - 0x18]
call fcn.004026bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00406b0b
test al, al
jne 0x4095c2
push edi
mov ecx, esi
push dword [0x42cc24]
call fcn.00408ef2
jmp 0x4095e8
mov ecx, dword [edi]
mov edx, dword [ebp - 0x18]
call fcn.00403ba5
test al, al
jne 0x4095fb
call fcn.00404a50
lea ecx, [ebp - 0x18]
push edi
push ecx
mov ecx, esi
push dword [0x42cc28]
push eax
call fcn.00409018
test eax, eax
mov esi, eax
jne 0x4095f3
mov esi, 0x80004005
push dword [ebp - 0x18]
jmp 0x409513
push dword [ebp - 0x18]
call fcn.00402099
jmp 0x40971e
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi]
shr eax, 4
test al, 1
je 0x40962a
call fcn.00403b98
test al, al
jne 0x40971f
push edi
push dword [0x42cc30]
jmp 0x40965c
call fcn.0040477b
test al, al
je 0x40971f
mov ecx, dword [edi]
call fcn.00403d84
test al, al
jne 0x40971f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40971f
push edi
push dword [0x42cc2c]
mov ecx, esi
call fcn.00408ffc
test eax, eax
jne 0x40957a
xor esi, esi
push dword [ebp - 0x34]
call fcn.00402099
pop ecx
mov eax, esi
jmp 0x409730
mov ecx, dword [edi]
call fcn.004051b7
mov ebx, eax
test ebx, ebx
jl 0x40971f
mov eax, dword [edi]
cmp word [eax + ebx*2 + 2], 0
je 0x40971f
push edi
lea ecx, [ebp - 0x18]
call fcn.004026bc
cmp ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
jae 0x4096b9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
and word [eax + ebx*2], 0
lea ecx, [ebp - 0xa0]
call fcn.00403f40
lea ecx, [ebp - 0x78]
call fcn.004025e9
push 0
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004042bb
test al, al
je 0x40970d
test byte [ebp - 0x80], 1
je 0x40970d
lea eax, [ebp - 0x18]
lea ecx, [esi + 0xf0]
push eax
call fcn.0040278c
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0xec], edx
and edx, 0xfffffffe
call fcn.00403b77
push dword [ebp - 0x78]
call fcn.00402099
push dword [ebp - 0x18]
call fcn.00402099
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x34]
and byte [eax], 0
call fcn.00402099
pop ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8