Function at 0x405b80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444bc5
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], ecx
mov ecx, dword [ebp + 8]
call fcn.00408740
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x184], 0
mov ecx, dword [ebp + 8]
call fcn.00408720
mov dword [ebp - 0x194], eax
lea ecx, [ebp - 0x28]
call fcn.00408ea0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0xffffffff
je 0x405c3b
mov ecx, dword [ebp - 0x190]
and ecx, 0x10
je 0x405c3b
mov dword [ebp - 0x198], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408c50
mov eax, dword [ebp - 0x198]
jmp 0x405dfa
mov dword [ebp - 0x184], 0
jmp 0x405c56
mov edx, dword [ebp - 0x184]
add edx, 1
mov dword [ebp - 0x184], edx
mov eax, dword [ebp - 0x184]
cmp eax, dword [ebp - 0x194]
jae 0x405ddb
jmp 0x405c79
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x184]
cmp edx, dword [ebp - 0x194]
jae 0x405ca2
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408850
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x405ca0
jmp 0x405ca2
jmp 0x405c6a
cmp dword [ebp - 0x184], 0
jbe 0x405dd6
mov edx, dword [ebp - 0x184]
sub edx, 1
push edx
mov ecx, dword [ebp + 8]
call fcn.00408850
movsx eax, byte [eax]
cmp eax, 0x3a
je 0x405dd6
mov ecx, dword [ebp - 0x184]
push ecx
push 0
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.004085f0
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408cb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408c50
lea ecx, [ebp - 0x28]
call fcn.00408740
mov dword [ebp - 0x188], eax
lea edx, [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0xffffffff
jne 0x405d9d
mov dword [ebp - 0x1b8], 0xc
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0
lea ecx, [ebp - 0x1b8]
push ecx
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405d9b
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408c50
mov eax, dword [ebp - 0x1a4]
jmp 0x405dfa
jmp 0x405dd6
mov eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x180]
and ecx, 0x10
jne 0x405dd6
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408c50
mov eax, dword [ebp - 0x1a8]
jmp 0x405dfa
jmp 0x405c47
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408c50
mov eax, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret 4