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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434880
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4430a4]
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
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x420dea
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x420c9f
xor bl, bl
jmp 0x420dec
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push 0x43855c
cmovae ecx, dword [ebp + 8]
lea eax, [ebp - 0x29]
push eax
mov byte [ebp - 0x29], 0x2f
lea ecx, [ecx + esi*2]
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
push ecx
push esi
call fcn.00411880
mov edi, dword [ebp + 0x18]
add esp, 0x10
xor esi, esi
cmp dword [ebp + 0x1c], 8
lea ebx, [ebp + 8]
cmovae ebx, dword [ebp + 8]
cmp esi, edi
jae 0x420d0e
mov ecx, edi
lea edx, [ebx + esi*2]
sub ecx, esi
mov esi, 0
je 0x420d04
cmp word [edx], 0x5c
je 0x420d02
cmp ecx, 1
je 0x420d04
add edx, 2
dec ecx
cmp word [edx], 0x5c
jne 0x420cf3
mov esi, edx
test esi, esi
je 0x420d0e
sub esi, ebx
sar esi, 1
jmp 0x420d11
or esi, 0xffffffff
cmp esi, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
cmove esi, edi
xor eax, eax
cmp edi, esi
mov word [ebp - 0x28], ax
mov ecx, esi
lea eax, [ebp + 8]
cmovb ecx, edi
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.00420080
cmp dword [ebp - 0x18], 0
je 0x420d89
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 4], 4
cmp eax, 0xffffffff
jne 0x420d89
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
test eax, eax
jne 0x420e29
inc esi
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x420dc8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420dbe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420e59
push edx
push ecx
call fcn.0042d3d2
add esp, 8
mov edi, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp esi, edi
jb 0x420cd0
mov bl, 1
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 4], 9
cmp edx, 8
jb 0x420e8e
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420e84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420e84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x420e69
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420e5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x420e5f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d3d2
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
xor bl, bl
mov word [ebp - 0x28], ax
jmp 0x420dec
push edx
push ecx
call fcn.0042d3d2
add esp, 8
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.0042d3e0
mov esp, ebp
pop ebp
ret