Function at 0x42be29
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 0x42be3d
sub eax, edx
cmp eax, 0x104
jb 0x42be54
xor al, al
jmp 0x42c053
cmp byte [ebp + 8], 0
je 0x42be75
push esi
lea eax, [esp + 0x14c]
call fcn.0042bcef
lea edi, [esp + 0x14c]
pop ecx
mov dword [esp + 0xc], edi
jmp 0x42be7b
mov dword [esp + 0xc], esi
mov edi, esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004472e3
pop ecx
pop ecx
test eax, eax
jne 0x42bea3
test dword [esp + 0x16], 0x4000
je 0x42bea3
push esi
call fcn.0042bdce
mov al, 1
jmp 0x42c052
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 0x42beab
push 0x5c
pop ebx
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.004445b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42bfd9
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bed2
sub eax, edx
cmp eax, 3
jbe 0x42bf13
cmp byte [esi + 1], bl
jne 0x42bf13
push ebx
add esi, 2
push esi
call fcn.004445b0
pop ecx
pop ecx
test eax, eax
je 0x42bfd9
inc eax
push ebx
push eax
call fcn.004445b0
pop ecx
pop ecx
test eax, eax
je 0x42bfd9
push ebx
inc eax
push eax
jmp 0x42bfc8
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bf18
sub eax, edx
mov edi, eax
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42bf2a
sub eax, ecx
cmp edi, eax
je 0x42bf4e
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x42bf42
cmp al, bl
jne 0x42bf4e
inc esi
push ebx
push esi
call fcn.004445b0
pop ecx
pop ecx
mov esi, eax
mov edi, dword [esp + 0xc]
jmp 0x42bfd1
lea eax, [esp + 0x40]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bf5e
sub eax, edx
je 0x42bfc3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004472e3
pop ecx
pop ecx
test eax, eax
jne 0x42bfa9
test dword [esp + 0x16], 0x4000
jne 0x42bfc3
lea eax, [esp + 0x40]
push eax
push edi
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.00445765
add eax, 0x40
push eax
call fcn.00445cb2
add esp, 0x10
jmp 0x42be4d
lea eax, [esp + 0x40]
push eax
call fcn.00446e73
test eax, eax
pop ecx
lea eax, [esp + 0x40]
push eax
jne 0x42bff1
call fcn.0042bdce
pop ecx
mov byte [esi], bl
push ebx
inc esi
push esi
call fcn.004445b0
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x42bf54
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x42c024
test al, 0x10
je 0x42c024
push edi
jmp 0x42be97
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c004
test al, 0x10
jne 0x42be4d
lea eax, [esp + 0x40]
push eax
push str.Cant_create_dir__s:_mkdir_fails
call fcn.00445765
add eax, 0x40
push eax
call fcn.00445cb2
add esp, 0xc
jmp 0x42be4d
push edi
call fcn.00446e73
pop ecx
push edi
test eax, eax
je 0x42be97
call esi
cmp eax, 0xffffffff
je 0x42c03f
test al, 0x10
jne 0x42c047
push edi
push str.Unable_to_create_dir__s
jmp 0x42c00e
push edi
call fcn.0042bdce
test al, al
setne al
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret