Function at 0x140057510
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push r14
mov rbp, rsp
sub rsp, 0x50
movzx ebx, dl
mov qword [rsp + 0x48], rdi
lea rdx, [rbp + 0x38]
mov rdi, rcx
call fcn.140055010
test bl, bl
je 0x1400577b4
lea rdx, [rbp + 0x38]
mov qword [rsp + 0x70], rsi
lea rcx, [rbp - 0x20]
call fcn.140035d20
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140037510
mov rdx, qword [rbp + 0x38]
mov r14d, 2
mov rcx, qword [rax]
mov qword [rbp + 0x38], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140057584
cmp eax, 0xffffffff
je 0x140057592
sub eax, 1
mov dword [rcx], eax
jne 0x140057592
mov rcx, qword [rbp + 0x30]
mov r8d, 8
mov rdx, r14
call fcn.140014460
mov rcx, qword [rbp - 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400575ac
cmp eax, 0xffffffff
je 0x1400575ba
sub eax, 1
mov dword [rcx], eax
jne 0x1400575ba
mov rcx, qword [rbp - 0x20]
mov r8d, 8
mov rdx, r14
call fcn.140014460
mov dword [rbp - 0x20], r14d
lea rax, [0x14009365c]
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
movaps xmm0, xmmword [rbp - 0x20]
lea rcx, [rbp + 0x38]
mov esi, 0xffffffff
mov qword [rsp + 0x40], r15
movdqa xmmword [rbp - 0x20], xmm0
lea r8d, [rsi + 2]
call fcn.14001e0c0
test al, al
mov rax, qword [rbp + 0x38]
je 0x140057652
xor edi, edi
cmp dword [rax + 4], edi
jle 0x140057666
mov r15d, edi
nop
mov rdx, qword [rax + 0x10]
lea rcx, [rbp + 0x28]
add rdx, r15
movzx ebx, word [rdx + rax]
call fcn.140036c90
cmp bx, word [rax]
jne 0x140057629
mov rax, qword [rbp + 0x38]
inc edi
add r15, r14
cmp edi, dword [rax + 4]
jl 0x140057600
jmp 0x140057666
mov esi, edi
cmp edi, 0xffffffff
je 0x140057666
lea rcx, [rbp + 0x28]
call fcn.140036c90
mov r9d, 1
lea rcx, [rbp + 0x38]
mov r8d, edi
movzx edx, word [rax]
call fcn.14001a080
mov esi, eax
jmp 0x140057666
cmp dword [rax + 4], r14d
jle 0x140057666
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
cmove esi, r14d
mov r15, qword [rsp + 0x40]
nop dword [rax + rax]
lea rcx, [rbp + 0x30]
call fcn.140036c90
lea r8d, [rsi + 1]
mov r9d, 1
lea rcx, [rbp + 0x38]
movzx edx, word [rax]
call fcn.14001a080
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400576a5
mov rax, qword [rbp + 0x38]
mov ebx, dword [rax + 4]
cmp esi, ebx
je 0x140057774
test ebx, ebx
je 0x140057769
mov r8d, ebx
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x38]
call fcn.14001a530
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.14005b9a0
lea rcx, [rbp - 0x20]
call fcn.14001f0a0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
mov edi, eax
mov edx, dword [rcx]
test edx, edx
je 0x140057706
cmp edx, 0xffffffff
je 0x140057714
sub edx, 1
mov dword [rcx], edx
jne 0x140057714
mov rcx, qword [rbp - 0x20]
mov r8d, 8
mov rdx, r14
call fcn.140014460
test sil, sil
jne 0x140057741
cmp edi, 0xb7
je 0x140057726
cmp edi, 5
jne 0x140057780
lea rdx, [rbp + 0x28]
mov byte [rbp + 0x28], 0
lea rcx, [rbp - 0x30]
call fcn.140058d50
test al, al
je 0x140057780
cmp byte [rbp + 0x28], 0
je 0x140057780
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005775b
cmp eax, 0xffffffff
je 0x140057769
sub eax, 1
mov dword [rcx], eax
jne 0x140057769
mov rcx, qword [rbp - 0x30]
mov r8d, 8
mov rdx, r14
call fcn.140014460
mov esi, ebx
cmp ebx, 0xffffffff
jne 0x140057670
mov rsi, qword [rsp + 0x70]
mov bl, 1
jmp 0x14005783b
mov rcx, qword [rbp - 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14005779a
cmp eax, 0xffffffff
je 0x1400577a8
sub eax, 1
mov dword [rcx], eax
jne 0x1400577a8
mov rcx, qword [rbp - 0x30]
mov r8d, 8
mov rdx, r14
call fcn.140014460
mov rsi, qword [rsp + 0x70]
xor bl, bl
jmp 0x14005783b
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140055010
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14005b9a0
lea rcx, [rbp + 0x30]
call fcn.14001f0a0
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rbp + 0x30]
mov r14d, 2
test eax, eax
setne bl
mov eax, dword [rcx]
test eax, eax
je 0x140057805
cmp eax, 0xffffffff
je 0x140057813
sub eax, 1
mov dword [rcx], eax
jne 0x140057813
mov rcx, qword [rbp + 0x30]
mov r8d, 8
mov rdx, r14
call fcn.140014460
mov rcx, qword [rbp - 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005782d
cmp eax, 0xffffffff
je 0x14005783b
sub eax, 1
mov dword [rcx], eax
jne 0x14005783b
mov rcx, qword [rbp - 0x20]
mov r8d, 8
mov rdx, r14
call fcn.140014460
mov rcx, qword [rbp + 0x38]
mov rdi, qword [rsp + 0x48]
mov edx, dword [rcx]
test edx, edx
je 0x140057856
cmp edx, 0xffffffff
je 0x140057868
sub edx, 1
mov dword [rcx], edx
jne 0x140057868
mov rcx, qword [rbp + 0x38]
mov r8d, 8
mov rdx, r14
call fcn.140014460
movzx eax, bl
add rsp, 0x50
pop r14
pop rbx
pop rbp
ret