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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x5b8584]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
cmp dword [ebp + 8], 0
je 0x40b096
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b096
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x40b0a5
jmp 0x40b283
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b0f7
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x40b0dd
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40b0e6
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x40b0b4
mov edx, dword [ebp - 4]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x40b152
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00503b70
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
mov byte [ebp + ecx - 0x220], 0
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040b060
add esp, 8
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x110], 0
cmp dword [ebp + 8], 0
je 0x40b1c3
mov edx, dword [ebp + 8]
mov dword [ebp - 0x224], edx
lea eax, [ebp - 0x110]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x224]
mov al, byte [edx]
mov byte [ebp - 0x22d], al
mov ecx, dword [ebp - 0x228]
mov dl, byte [ebp - 0x22d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x224]
add eax, 1
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
cmp byte [ebp - 0x22d], 0
jne 0x40b180
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x234]
mov dl, byte [ecx]
mov byte [ebp - 0x239], dl
add dword [ebp - 0x234], 1
cmp byte [ebp - 0x239], 0
jne 0x40b1d8
mov eax, dword [ebp - 0x234]
sub eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x244], eax
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x248]
mov cl, byte [eax + 1]
mov byte [ebp - 0x249], cl
add dword [ebp - 0x248], 1
cmp byte [ebp - 0x249], 0
jne 0x40b223
mov edi, dword [ebp - 0x248]
mov esi, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b283
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050342b
mov esp, ebp
pop ebp
ret