Function at 0x416360
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
setne al
xor edx, edx
cmp dword [ebp + 0x10], 0
setne dl
test edx, eax
jne 0x41639c
cmp byte [edi], 0
mov eax, edi
jmp 0x41638c
inc eax
cmp byte [eax], 0
jne 0x416388
mov ebx, dword [ebp + 0x14]
mov esi, eax
sub esi, ebx
lea ebx, [esi - 1]
cmp ebx, edi
jae 0x4163b3
call sub.msys_1.0.dll___errno
mov dword [eax], 0x16
xor edx, edx
add esp, 0x7c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msys_1.0.dll_getpid
cmp byte [esi - 1], 0x58
mov ecx, eax
sete al
test ecx, ecx
setne dl
movzx edx, dl
test edx, eax
je 0x416410
lea esi, [esi]
mov eax, 0x66666667
imul ecx
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, ecx
sar eax, 0x1f
sar edx, 2
sub edx, eax
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov al, cl
add al, 0x30
mov ecx, edx
mov byte [ebx], al
dec ebx
cmp ebx, edi
jb 0x41641d
cmp byte [ebx], 0x58
sete al
test edx, edx
setne dl
movzx edx, dl
test edx, eax
jne 0x4163d0
cmp ebx, edi
jb 0x41641d
cmp byte [ebx], 0x58
je 0x416516
mov eax, dword [ebp + 0xc]
lea edx, [ebx + 1]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x5c], edx
test eax, eax
setne al
test ecx, ecx
setne dl
or eax, edx
test al, 1
je 0x41644e
jmp 0x41644a
cmp byte [ebx], 0x2f
je 0x416569
dec ebx
cmp ebx, edi
ja 0x416440
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4164b1
mov dword [esp], edi
mov ecx, 0xa02
mov ebx, 0x180
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.00415a10
mov edx, dword [ebp + 0xc]
test eax, eax
mov dword [edx], eax
jns 0x4164cd
call sub.msys_1.0.dll___errno
cmp dword [eax], 0x11
jne 0x4163a7
mov ecx, dword [ebp - 0x5c]
jmp 0x4164a5
cmp bl, 0x5a
jne 0x416544
cmp ecx, esi
je 0x4163a7
mov byte [ecx], 0x61
inc ecx
movzx ebx, byte [ecx]
test bl, bl
jne 0x416490
jmp 0x4163a7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4164d7
mov dword [esp], edi
mov edx, 0x1c0
mov dword [esp + 4], edx
call sub.msys_1.0.dll_mkdir
test eax, eax
jne 0x416478
mov edx, 1
jmp 0x4163a9
mov dword [esp], edi
lea ecx, [ebp - 0x58]
mov dword [esp + 4], ecx
call sub.msys_1.0.dll_lstat
test eax, eax
je 0x416486
call sub.msys_1.0.dll___errno
xor edx, edx
cmp dword [eax], 2
sete dl
jmp 0x4163a9
add al, 0x41
mov byte [ebx], al
dec ebx
cmp ebx, edi
jb 0x41641d
cmp byte [ebx], 0x58
jne 0x41641d
call fcn.00415630
and eax, 0xffff
mov ecx, 0x4ec4ec4f
mov dword [ebp - 0x70], eax
mul ecx
shr edx, 4
lea eax, [edx + edx*2]
lea ecx, [edx + eax*4]
mov eax, dword [ebp - 0x70]
shl ecx, 2
sub eax, ecx
cmp eax, 0x19
jle 0x416500
add al, 0x47
jmp 0x416502
mov eax, dword [sym.imp.msys_1.0.dll__ctype_]
movsx edx, bl
test byte [eax + edx + 1], 4
jne 0x4165ad
cmp bl, 0x7a
je 0x4165b5
cmp ecx, esi
je 0x4163a7
inc bl
mov byte [ecx], bl
jmp 0x41644e
mov byte [ebx], 0
lea ecx, [ebp - 0x58]
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.msys_1.0.dll_stat
mov byte [ebx], 0x2f
xor edx, edx
test eax, eax
jne 0x4163a9
mov ebx, dword [ebp - 0x50]
and ebx, 0xf000
cmp ebx, 0x4000
je 0x41644e
call sub.msys_1.0.dll___errno
mov dword [eax], 0x14
jmp 0x4163a7
mov byte [ecx], 0x61
jmp 0x41644e
mov byte [ecx], 0x41
jmp 0x41644e