Function at 0x428bcb
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 0x428bdf
sub eax, edx
cmp eax, 0x104
jb 0x428bf6
xor al, al
jmp 0x428df5
cmp byte [ebp + 8], 0
je 0x428c17
push esi
lea eax, [esp + 0x14c]
call fcn.00428a91
lea edi, [esp + 0x14c]
pop ecx
mov dword [esp + 0xc], edi
jmp 0x428c1d
mov dword [esp + 0xc], esi
mov edi, esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043e98c
pop ecx
pop ecx
test eax, eax
jne 0x428c45
test dword [esp + 0x16], 0x4000
je 0x428c45
push esi
call fcn.00428b70
mov al, 1
jmp 0x428df4
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 0x428c4d
push 0x5c
pop ebx
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0043b920
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x428d7b
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428c74
sub eax, edx
cmp eax, 3
jbe 0x428cb5
cmp byte [esi + 1], bl
jne 0x428cb5
push ebx
add esi, 2
push esi
call fcn.0043b920
pop ecx
pop ecx
test eax, eax
je 0x428d7b
inc eax
push ebx
push eax
call fcn.0043b920
pop ecx
pop ecx
test eax, eax
je 0x428d7b
push ebx
inc eax
push eax
jmp 0x428d6a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428cba
sub eax, edx
mov edi, eax
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x428ccc
sub eax, ecx
cmp edi, eax
je 0x428cf0
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x428ce4
cmp al, bl
jne 0x428cf0
inc esi
push ebx
push esi
call fcn.0043b920
pop ecx
pop ecx
mov esi, eax
mov edi, dword [esp + 0xc]
jmp 0x428d73
lea eax, [esp + 0x40]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428d00
sub eax, edx
je 0x428d65
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0043e98c
pop ecx
pop ecx
test eax, eax
jne 0x428d4b
test dword [esp + 0x16], 0x4000
jne 0x428d65
lea eax, [esp + 0x40]
push eax
push edi
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0x10
jmp 0x428bef
lea eax, [esp + 0x40]
push eax
call fcn.0043e599
test eax, eax
pop ecx
lea eax, [esp + 0x40]
push eax
jne 0x428d93
call fcn.00428b70
pop ecx
mov byte [esi], bl
push ebx
inc esi
push esi
call fcn.0043b920
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x428cf6
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x428dc6
test al, 0x10
je 0x428dc6
push edi
jmp 0x428c39
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428da6
test al, 0x10
jne 0x428bef
lea eax, [esp + 0x40]
push eax
push str.Cant_create_dir__s:_mkdir_fails
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0xc
jmp 0x428bef
push edi
call fcn.0043e599
pop ecx
push edi
test eax, eax
je 0x428c39
call esi
cmp eax, 0xffffffff
je 0x428de1
test al, 0x10
jne 0x428de9
push edi
push str.Unable_to_create_dir__s
jmp 0x428db0
push edi
call fcn.00428b70
test al, al
setne al
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret