Function at 0x5862e5
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], 0x62f624
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.004ecd27
cmp dword [ebp - 0x14], 0x8000
jne 0x5863b9
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004ecbbd
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5863b9
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.00585deb
test eax, eax
je 0x586785
cmp dword [ebp - 0x14], 0xe000
je 0x5866b8
cmp dword [ebp - 0x14], 0xe000
ja 0x586768
cmp dword [ebp - 0x14], 0x8000
je 0x586498
cmp dword [ebp - 0x14], 0xa000
jne 0x586768
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00585cff
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x58643a
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp], eax
call fcn.0042bbe2
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.004ae2ca
call fcn.005857c4
jmp 0x586801
mov eax, dword [0x59b3e0]
test eax, eax
je 0x5865ec
cmp dword [ebp + 0x18], 0
jne 0x5865ec
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 0x586788
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.unable_to_create_symlink__s
call fcn.004ae275
call fcn.005857c4
jmp 0x586801
cmp dword [ebp - 0x18], 0
je 0x5864b8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 2
jne 0x5864b8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
jmp 0x586505
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00585cff
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x586505
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [esp], eax
call fcn.0042bbe2
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.004ae2ca
call fcn.005857c4
jmp 0x586801
cmp dword [ebp - 0x18], 0
je 0x586584
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x586584
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.004ec0da
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5865bd
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.0048e412
test eax, eax
je 0x5865bd
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_free
jmp 0x5867fc
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.004ec11f
mov dword [ebp - 0xc], eax
jmp 0x5865be
nop
cmp dword [ebp - 0xc], 0
je 0x5865ef
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.0048a853
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
jmp 0x5865f0
nop
jmp 0x5865f0
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.00585d5a
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jns 0x58663a
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.004ae275
call fcn.005857c4
jmp 0x586801
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.004b4880
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x18], 0
jne 0x58667b
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.00585de1
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 0x58678b
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x5d5d75
call fcn.004ae2ca
call fcn.005857c4
jmp 0x586801
cmp dword [ebp + 0x18], 0
je 0x5866de
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], str.cannot_create_temporary_submodule__s
call fcn.004ae2ca
call fcn.005857c4
jmp 0x586801
mov dword [esp + 4], 0x1ff
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_mkdir
test eax, eax
jns 0x586712
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.cannot_create_submodule_directory__s
call fcn.004ae2ca
call fcn.005857c4
jmp 0x586801
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00492cc1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x58678e
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.0042bbe2
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.0049548c
jmp 0x586801
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.004ae2ca
call fcn.005857c4
jmp 0x586801
nop
jmp 0x58678f
nop
jmp 0x58678f
nop
jmp 0x58678f
nop
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0x5c]
and eax, 0x10
test al, al
je 0x5867fb
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x5867dd
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 0x5867dd
mov eax, dword [ebp + 8]
add eax, 0x64
mov dword [esp + 4], eax
mov dword [esp], 0x5d5e04
call fcn.004ae275
call fcn.005857c4
jmp 0x586801
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.00586248
jmp 0x5867fc
nop
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret