Function at 0x401c50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ab79
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x40e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
call fcn.00401a20
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00401a20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00402a50
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
add ecx, 0xc
call fcn.00402a50
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00401670
add esp, 8
mov byte [ebp - 4], 4
push 0x40b30c
lea ecx, [ebp - 0x1c]
call fcn.00402b10
mov byte [ebp - 4], 5
push 4
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402e00
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3c]
call fcn.004031d0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c40
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x1d], al
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.00402b90
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x401d7f
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x18]
call fcn.00402be0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00402b90
lea ecx, [ebp - 0x18]
call fcn.004031d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401d7f
push 0
lea ecx, [ebp - 0x18]
call fcn.004031d0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.00402be0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00402b90
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0xc
call fcn.00402be0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00402b90
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x34]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00402120
cmp eax, dword [ebp + 0x10]
jbe 0x401e1b
mov dword [ebp - 0x10], 2
jmp 0x401e22
mov dword [ebp - 0x10], 4
push 0
push 0
push 0x80
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x34]
add ecx, 8
call fcn.004031d0
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00401a70
mov dword [ebp - 0x14], eax
push 0
push 0
push 0x80
mov eax, dword [ebp - 0x10]
push eax
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x34]
add ecx, 0xc
call fcn.004031d0
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 4
call fcn.00401a70
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402b90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc