Function at 0x428e07
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
push ebx
push esi
push edi
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428e1b
sub eax, edx
cmp eax, 0x104
jb 0x428e32
xor al, al
jmp 0x429031
cmp byte [ebp + 8], 0
je 0x428e53
push esi
lea eax, [esp + 0x14c]
call fcn.00428ccd
lea edi, [esp + 0x14c]
pop ecx
mov dword [esp + 0xc], edi
jmp 0x428e59
mov dword [esp + 0xc], esi
mov edi, esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043ec3c
pop ecx
pop ecx
test eax, eax
jne 0x428e81
test dword [esp + 0x16], 0x4000
je 0x428e81
push esi
call fcn.00428dac
mov al, 1
jmp 0x429030
lea edx, [esp + 0x40]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x428e89
push 0x5c
pop ebx
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0043bbd0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x428fb7
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428eb0
sub eax, edx
cmp eax, 3
jbe 0x428ef1
cmp byte [esi + 1], bl
jne 0x428ef1
push ebx
add esi, 2
push esi
call fcn.0043bbd0
pop ecx
pop ecx
test eax, eax
je 0x428fb7
inc eax
push ebx
push eax
call fcn.0043bbd0
pop ecx
pop ecx
test eax, eax
je 0x428fb7
push ebx
inc eax
push eax
jmp 0x428fa6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428ef6
sub eax, edx
mov edi, eax
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x428f08
sub eax, ecx
cmp edi, eax
je 0x428f2c
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x428f20
cmp al, bl
jne 0x428f2c
inc esi
push ebx
push esi
call fcn.0043bbd0
pop ecx
pop ecx
mov esi, eax
mov edi, dword [esp + 0xc]
jmp 0x428faf
lea eax, [esp + 0x40]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428f3c
sub eax, edx
je 0x428fa1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0043ec3c
pop ecx
pop ecx
test eax, eax
jne 0x428f87
test dword [esp + 0x16], 0x4000
jne 0x428fa1
lea eax, [esp + 0x40]
push eax
push edi
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
add esp, 0x10
jmp 0x428e2b
lea eax, [esp + 0x40]
push eax
call fcn.0043e849
test eax, eax
pop ecx
lea eax, [esp + 0x40]
push eax
jne 0x428fcf
call fcn.00428dac
pop ecx
mov byte [esi], bl
push ebx
inc esi
push esi
call fcn.0043bbd0
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x428f32
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x429002
test al, 0x10
je 0x429002
push edi
jmp 0x428e75
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428fe2
test al, 0x10
jne 0x428e2b
lea eax, [esp + 0x40]
push eax
push str.Cant_create_dir__s:_mkdir_fails
call fcn.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
add esp, 0xc
jmp 0x428e2b
push edi
call fcn.0043e849
pop ecx
push edi
test eax, eax
je 0x428e75
call esi
cmp eax, 0xffffffff
je 0x42901d
test al, 0x10
jne 0x429025
push edi
push str.Unable_to_create_dir__s
jmp 0x428fec
push edi
call fcn.00428dac
test al, al
setne al
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret