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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cca76
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x64dff0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401cd0
mov bl, 1
jmp 0x401ec4
xor eax, eax
mov dword [ebp - 0x2c], 7
push eax
push 0x61b534
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00402c10
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x61b534
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402c10
mov byte [ebp - 4], 2
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push esi
push ecx
lea ecx, [ebp + 8]
call fcn.00402360
mov edi, eax
lea ecx, [ebp + 8]
test edi, edi
js 0x401dc6
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.004022c0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00402690
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x401d68
mov eax, dword [eax]
push 0
push eax
call ebx
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x401d82
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402e30
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402580
push 1
push 0x61b530
lea ecx, [ebp - 0x40]
call fcn.00402450
mov byte [ebp - 4], 2
lea esi, [edi + 1]
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x401d24
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402e30
jmp 0x401d24
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.004022c0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x401e0d
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x401df0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402e30
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402d10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x401e26
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402e30
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.00402690
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x401e40
mov eax, dword [eax]
push 0
push eax
call ebx
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x401e5a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402e30
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x14]
setne bl
cmp eax, 8
jb 0x401e87
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402e30
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x401eb0
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402e30
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x401ed9
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00402e30
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a3521
mov esp, ebp
pop ebp
ret