Function at 0x404720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x430878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov eax, dword [esi + 0x2c]
mov ecx, edi
add eax, 0x14
mov dword [esp + 0xc], ebx
push eax
call fcn.0041db34
push edi
mov ecx, esi
call fcn.00404970
test eax, eax
je 0x404948
mov ecx, dword [0x43f524]
push ebp
mov dword [esp + 0x2c], ecx
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
mov dword [esp + 0x28], ebx
call ebp
mov edx, dword [esi + 0x2c]
mov dword [edx + 0x54], eax
mov ecx, dword [esi + 0x2c]
cmp dword [ecx + 0x54], 0xffffffff
jne 0x40486d
lea eax, [esp + 0x14]
push edi
push eax
mov ecx, esi
call fcn.00406480
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.0041db34
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.0041da47
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x40482e
mov bl, 2
push eax
call ebp
mov ecx, dword [esi + 0x2c]
mov dword [ecx + 0x54], eax
mov edx, dword [esi + 0x2c]
cmp dword [edx + 0x54], 0xffffffff
jne 0x404864
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, esi
call fcn.00406480
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x30], bl
call fcn.0041dc2a
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.0041db34
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.0041da47
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.0041da47
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4047c4
push 0x194
mov ecx, esi
call fcn.00405010
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041da47
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esi + 0x2c]
test byte [ecx + 0x54], 0x10
jne 0x40482e
mov eax, dword [edi]
mov dword [esp + 0x10], 1
mov ebp, dword [eax - 8]
mov dl, byte [eax + ebp - 1]
cmp dl, 0x5c
jne 0x4048b4
mov eax, ebp
mov ecx, edi
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00416f59
mov ecx, dword [esi + 0x2c]
push eax
add ecx, 0x50
mov byte [esp + 0x28], 4
call fcn.0041db34
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.0041da47
jmp 0x4048bd
push edi
add ecx, 0x50
call fcn.0041db34
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4048f8
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x2c]
push edx
add ecx, 8
call fcn.0041db34
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00404970
test eax, eax
je 0x4048f8
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x2c]
add ecx, 4
call fcn.0041db34
mov eax, dword [esi + 0x2c]
test byte [eax + 0x54], 0x10
je 0x404924
push 0
push 0x73
mov ecx, esi
call fcn.00406560
test eax, eax
jne 0x40483a
push 1
push 0x75
mov ecx, esi
call fcn.00406560
jmp 0x40483a
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x40483a
mov ecx, esi
call fcn.00406740
test eax, eax
jne 0x40483a
push 0x190
jmp 0x404833
push 0x190
mov ecx, esi
call fcn.00405010
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4