Function at 0x51f9da
Capabilities:
Create directory

Disassembly:
push 0x6a4
mov eax, 0x5defc7
call fcn.0056d43d
mov esi, ecx
lea edi, [esi + 0x10]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x51f9fb
xor al, al
jmp 0x51ff67
push esi
lea ecx, [ebp - 0x678]
mov dword [ebp - 0x678], ebx
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x664], ebx
call fcn.0040850d
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x51fa24
mov esi, dword [esi]
mov eax, dword [edi]
xor ebx, ebx
push 0x5c
pop ecx
inc ebx
mov edi, 0x1000
cmp word [esi + eax*2 - 2], cx
je 0x51faec
and dword [ebp - 0x630], 0
lea ecx, [ebp - 0x630]
and dword [ebp - 0x620], 0
xor eax, eax
push 0x60db0c
mov dword [ebp - 0x61c], 7
mov word [ebp - 0x630], ax
call fcn.00408fe7
mov byte [ebp - 4], bl
lea eax, [ebp - 0x630]
cmp dword [ebp - 0x61c], 8
lea ecx, [ebp - 0x678]
push dword [ebp - 0x620]
cmovae eax, dword [ebp - 0x630]
push eax
call fcn.0040993b
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x61c]
cmp eax, 8
jb 0x51faec
mov ecx, dword [ebp - 0x630]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x6b0], eax
mov dword [ebp - 0x6ac], ecx
cmp eax, edi
jb 0x51fae3
lea eax, [ebp - 0x6b0]
push eax
lea eax, [ebp - 0x6ac]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x6b0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6ac]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
cmp dword [ebp - 0x664], 8
lea ecx, [ebp - 0x418]
mov edx, 0x100
lea eax, [ebp - 0x678]
cmovae eax, dword [ebp - 0x678]
push edx
push ecx
push edx
lea ecx, [ebp - 0x618]
push ecx
push edx
lea ecx, [ebp - 0x218]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00593400
and dword [ebp - 0x660], 0
lea ecx, [ebp - 0x660]
and dword [ebp - 0x650], 0
add esp, 0x24
xor eax, eax
mov word [ebp - 0x660], ax
push 7
pop esi
push 0x60db0c
mov dword [ebp - 0x64c], esi
call fcn.00408fe7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x630]
and dword [ebp - 0x630], 0
xor eax, eax
and dword [ebp - 0x620], 0
mov word [ebp - 0x630], ax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x61c], esi
call fcn.00408fe7
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x6ac]
lea ecx, [ebp - 0x690]
call fcn.004f0d40
mov eax, dword [ebp - 0x61c]
cmp eax, 8
jb 0x51fc01
mov ecx, dword [ebp - 0x630]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b0], ecx
cmp eax, edi
jb 0x51fbf8
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x6ac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6b0]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
and dword [ebp - 0x620], 0
xor eax, eax
push 7
pop ecx
mov dword [ebp - 0x61c], ecx
mov word [ebp - 0x630], ax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x64c]
cmp eax, 8
jb 0x51fc73
mov ecx, dword [ebp - 0x660]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b0], ecx
cmp eax, edi
jb 0x51fc67
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x6ac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6b0]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
push 7
pop ecx
and dword [ebp - 0x650], 0
xor eax, eax
and dword [ebp - 0x648], eax
and dword [ebp - 0x638], eax
mov word [ebp - 0x660], ax
mov word [ebp - 0x648], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x64c], ecx
mov dword [ebp - 0x634], ecx
lea ecx, [ebp - 0x648]
push eax
call fcn.00408fe7
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 7
call fcn.0051f8ee
test al, al
je 0x51fe9a
cmp dword [ebp - 0x638], 0
je 0x51fe9a
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
push 0x5c
cmovae eax, dword [ebp - 0x648]
pop ecx
cmp word [eax], cx
jne 0x51fd1b
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
lea ecx, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push eax
lea eax, [ebp - 0x6ac]
push eax
call fcn.0051ffed
push ecx
push ecx
lea ecx, [ebp - 0x648]
call fcn.0051ffc3
mov esi, eax
jmp 0x51fe84
push esi
push 0
lea eax, [ebp - 0x6a8]
push eax
lea ecx, [ebp - 0x648]
call fcn.0043e28c
lea eax, [esi + 1]
mov byte [ebp - 4], 8
push eax
push 0
lea ecx, [ebp - 0x648]
call fcn.0043e4c3
and dword [ebp - 0x660], 0
lea ecx, [ebp - 0x660]
and dword [ebp - 0x650], 0
xor eax, eax
push 0x60db0c
mov dword [ebp - 0x64c], 7
mov word [ebp - 0x660], ax
call fcn.00408fe7
lea eax, [ebp - 0x6a8]
mov byte [ebp - 4], 9
push eax
push ecx
lea ecx, [ebp - 0x660]
call fcn.004ba233
push eax
lea ecx, [ebp - 0x630]
call fcn.00444c51
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x630]
cmp dword [ebp - 0x61c], 8
lea ecx, [ebp - 0x690]
push dword [ebp - 0x620]
cmovae eax, dword [ebp - 0x630]
push eax
call fcn.0040993b
lea ecx, [ebp - 0x630]
call fcn.00403d40
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x64c]
cmp eax, 8
jb 0x51fe38
mov ecx, dword [ebp - 0x660]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b0], ecx
cmp eax, edi
jb 0x51fe2f
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x6ac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6b0]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
lea ecx, [ebp - 0x690]
call fcn.0051f8ee
test al, al
jne 0x51fe66
cmp dword [ebp - 0x67c], 8
lea eax, [ebp - 0x690]
cmovae eax, dword [ebp - 0x690]
push eax
call fcn.005ac0e5
pop ecx
test eax, eax
jne 0x51fe8f
push ecx
push ecx
lea ecx, [ebp - 0x648]
call fcn.0051ffc3
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.00403d40
cmp esi, 0xffffffff
jne 0x51fd2f
jmp 0x51fe9c
lea ecx, [ebp - 0x6a8]
call fcn.00403d40
xor bl, bl
mov eax, dword [ebp - 0x634]
cmp eax, 8
jb 0x51feee
mov ecx, dword [ebp - 0x648]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b0], ecx
cmp eax, edi
jb 0x51fee5
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x6ac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6b0]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
and dword [ebp - 0x638], 0
lea ecx, [ebp - 0x690]
xor eax, eax
mov dword [ebp - 0x634], 7
mov word [ebp - 0x648], ax
call fcn.00403d40
mov eax, dword [ebp - 0x664]
cmp eax, 8
jb 0x51ff65
mov ecx, dword [ebp - 0x678]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x6ac], eax
mov dword [ebp - 0x6b0], ecx
cmp eax, edi
jb 0x51ff5c
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x6b0]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x6ac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6b0]
push eax
push ecx
call fcn.0056c61e
pop ecx
pop ecx
mov al, bl
call fcn.0056d3ec
ret