Function at 0x427447
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 0x42745b
sub eax, edx
cmp eax, 0x104
jb 0x427472
xor al, al
jmp 0x427671
cmp byte [ebp + 8], 0
je 0x427493
push esi
lea eax, [esp + 0x14c]
call fcn.0042730d
lea edi, [esp + 0x14c]
pop ecx
mov dword [esp + 0xc], edi
jmp 0x427499
mov dword [esp + 0xc], esi
mov edi, esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00442433
pop ecx
pop ecx
test eax, eax
jne 0x4274c1
test dword [esp + 0x16], 0x4000
je 0x4274c1
push esi
call fcn.004273ec
mov al, 1
jmp 0x427670
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 0x4274c9
push 0x5c
pop ebx
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.0043f640
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4275f7
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4274f0
sub eax, edx
cmp eax, 3
jbe 0x427531
cmp byte [esi + 1], bl
jne 0x427531
push ebx
add esi, 2
push esi
call fcn.0043f640
pop ecx
pop ecx
test eax, eax
je 0x4275f7
inc eax
push ebx
push eax
call fcn.0043f640
pop ecx
pop ecx
test eax, eax
je 0x4275f7
push ebx
inc eax
push eax
jmp 0x4275e6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427536
sub eax, edx
mov edi, eax
lea eax, [esp + 0x40]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x427548
sub eax, ecx
cmp edi, eax
je 0x42756c
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x427560
cmp al, bl
jne 0x42756c
inc esi
push ebx
push esi
call fcn.0043f640
pop ecx
pop ecx
mov esi, eax
mov edi, dword [esp + 0xc]
jmp 0x4275ef
lea eax, [esp + 0x40]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42757c
sub eax, edx
je 0x4275e1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00442433
pop ecx
pop ecx
test eax, eax
jne 0x4275c7
test dword [esp + 0x16], 0x4000
jne 0x4275e1
lea eax, [esp + 0x40]
push eax
push edi
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0x10
jmp 0x42746b
lea eax, [esp + 0x40]
push eax
call fcn.00441fc3
test eax, eax
pop ecx
lea eax, [esp + 0x40]
push eax
jne 0x42760f
call fcn.004273ec
pop ecx
mov byte [esi], bl
push ebx
inc esi
push esi
call fcn.0043f640
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x427572
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x427642
test al, 0x10
je 0x427642
push edi
jmp 0x4274b5
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x427622
test al, 0x10
jne 0x42746b
lea eax, [esp + 0x40]
push eax
push str.Cant_create_dir__s:_mkdir_fails
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0xc
jmp 0x42746b
push edi
call fcn.00441fc3
pop ecx
push edi
test eax, eax
je 0x4274b5
call esi
cmp eax, 0xffffffff
je 0x42765d
test al, 0x10
jne 0x427665
push edi
push str.Unable_to_create_dir__s
jmp 0x42762c
push edi
call fcn.004273ec
test al, al
setne al
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret