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

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
push 0x3a
push ebx
call fcn.00444fd0
add esp, 8
test eax, eax
je 0x40608f
push 0x4b3e14
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.004139c0
add esp, 8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062d4
mov eax, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [eax], 0x13b4518
mov eax, 1
pop ebx
add esp, 0x108
ret
mov al, byte [0x13b4b38]
test al, al
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x4060e7
push 0x13b4b38
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.004139c0
add esp, 8
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
je 0x4060e7
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [ecx], 0x13b4b38
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [0x13b4d40]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x406161
mov ebp, 0xbccf04
push ebp
lea edx, [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004139c0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call edi
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
jne 0x40613a
mov ecx, dword [0x13b4d40]
inc eax
add ebp, 0x104
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x406161
jmp 0x4060fd
mov ecx, dword [esp + 0x11c]
mov edx, eax
pop edi
shl edx, 6
add edx, eax
pop esi
lea eax, [edx*4 + 0xbccf04]
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x108
ret
mov al, byte [0x13b4518]
test al, al
je 0x4061ad
push 0x13b4518
lea edx, [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004139c0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call edi
cmp eax, 0xffffffff
je 0x4061ad
mov edx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [edx], 0x13b4518
mov eax, 1
pop ebx
add esp, 0x108
ret
mov al, byte [0x13b4824]
test al, al
je 0x4061f9
push 0x13b4824
lea eax, [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.004139c0
add esp, 8
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x4061f9
mov eax, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [eax], 0x13b4824
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0x13b461c
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.004139c0
add esp, 8
lea eax, [esp + 0x14]
push eax
call edi
cmp eax, 0xffffffff
je 0x40623c
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [ecx], 0x13b461c
mov eax, 1
pop ebx
add esp, 0x108
ret
mov al, byte [0x13b4720]
test al, al
je 0x406288
push 0x13b4720
lea edx, [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004139c0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call edi
cmp eax, 0xffffffff
je 0x406288
mov edx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [edx], 0x13b4720
mov eax, 1
pop ebx
add esp, 0x108
ret
mov al, byte [0x13b492c]
test al, al
je 0x4062d4
push 0x13b492c
lea eax, [esp + 0x18]
push eax
call esi
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.004139c0
add esp, 8
lea edx, [esp + 0x14]
push edx
call edi
cmp eax, 0xffffffff
je 0x4062d4
mov eax, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
mov dword [eax], 0x13b492c
mov eax, 1
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret