Function at 0x586009
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x114
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
and eax, 0xf000
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 0x61d2e4
mov dword [ebp - 0x40], 0
mov eax, dword [ebp + 8]
lea edx, [eax + 0x40]
mov eax, dword [ebp + 0x14]
add eax, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0xec]
mov dword [esp], eax
call fcn.004eef0b
cmp dword [ebp - 0x14], 0x8000
jne 0x5860dd
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004eeda1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5860dd
lea eax, [ebp - 0xa0]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00585b0f
test eax, eax
je 0x5864a9
cmp dword [ebp - 0x14], 0xe000
je 0x5863dc
cmp dword [ebp - 0x14], 0xe000
ja 0x58648c
cmp dword [ebp - 0x14], 0x8000
je 0x5861bc
cmp dword [ebp - 0x14], 0xa000
jne 0x58648c
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00585a23
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x58615e
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp], eax
call fcn.00431daa
mov edx, dword [ebp + 8]
add edx, 0x64
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.unable_to_read_sha1_file_of__s___s_
call fcn.004b5782
call fcn.005854e8
jmp 0x586525
mov eax, dword [0x599360]
test eax, eax
je 0x586310
cmp dword [ebp + 0x18], 0
jne 0x586310
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_symlink
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
cmp dword [ebp - 0xc], 0
je 0x5864ac
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_create_symlink__s
call fcn.004b572d
call fcn.005854e8
jmp 0x586525
cmp dword [ebp - 0x18], 0
je 0x5861dc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 2
jne 0x5861dc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
jmp 0x586229
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00585a23
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x586229
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp], eax
call fcn.00431daa
mov edx, dword [ebp + 8]
add edx, 0x64
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], str.unable_to_read_sha1_file_of__s___s_
call fcn.004b5782
call fcn.005854e8
jmp 0x586525
cmp dword [ebp - 0x18], 0
je 0x5862a8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x5862a8
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
lea ecx, [edx + 0x64]
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x18], edx
lea edx, [ebp - 0xec]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004ee2be
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5862e1
mov eax, dword [ebp + 8]
lea edx, [eax + 0x64]
mov eax, dword [ebp - 0x18]
add eax, 0x18
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004958ca
test eax, eax
je 0x5862e1
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x586520
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
lea ecx, [edx + 0x64]
lea edx, [ebp - 0xec]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004ee303
mov dword [ebp - 0xc], eax
jmp 0x5862e2
nop
cmp dword [ebp - 0xc], 0
je 0x586313
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00491d0b
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
jmp 0x586314
nop
jmp 0x586314
nop
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00585a7e
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jns 0x58635e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_create_file__s
call fcn.004b572d
call fcn.005854e8
jmp 0x586525
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.004bae1c
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x18], 0
jne 0x58639f
lea eax, [ebp - 0xa0]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00585b05
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.cygwin1.dll_close
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
cmp dword [ebp - 0x28], 0
jns 0x5864af
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x5d3ef5
call fcn.004b5782
call fcn.005854e8
jmp 0x586525
cmp dword [ebp + 0x18], 0
je 0x586402
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], str.cannot_create_temporary_submodule__s
call fcn.004b5782
call fcn.005854e8
jmp 0x586525
mov dword [esp + 4], 0x1ff
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_mkdir
test eax, eax
jns 0x586436
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.cannot_create_submodule_directory__s
call fcn.004b5782
call fcn.005854e8
jmp 0x586525
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0049a179
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5864b2
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0x5c]
movzx eax, al
add eax, eax
and eax, 2
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp], eax
call fcn.00431daa
mov edx, dword [ebp + 8]
add edx, 0x64
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call fcn.0049c944
jmp 0x586525
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], str.unknown_file_mode_for__s_in_index
call fcn.004b5782
call fcn.005854e8
jmp 0x586525
nop
jmp 0x5864b3
nop
jmp 0x5864b3
nop
jmp 0x5864b3
nop
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0x5c]
and eax, 0x10
test al, al
je 0x58651f
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x586501
mov eax, dword [ebp + 8]
lea edx, [eax + 0x64]
lea eax, [ebp - 0xa0]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.cygwin1.dll__lstat64
test eax, eax
jns 0x586501
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], 0x5d3f84
call fcn.004b572d
call fcn.005854e8
jmp 0x586525
lea eax, [ebp - 0xa0]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.00585f6c
jmp 0x586520
nop
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret