Function at 0x14005b410
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
movzx ebx, dl
mov rdi, rcx
lea rdx, [rbp - 0x59]
call fcn.140057dd0
nop
test bl, bl
je 0x14005b6bf
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.1400211e0
nop
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.140022ea0
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rax]
mov qword [rbp - 0x59], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x19]
mov eax, dword [rcx]
mov r15d, 2
or esi, 0xffffffff
test eax, eax
je 0x14005b48f
cmp eax, esi
je 0x14005b49e
lock dec dword [rcx]
jne 0x14005b49e
mov rcx, qword [rbp - 0x19]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x14005b4b6
cmp eax, 0xffffffff
je 0x14005b4c4
lock dec dword [rcx]
jne 0x14005b4c4
mov rcx, qword [rbp - 0x29]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
mov r14d, esi
mov dword [rbp - 9], r15d
lea rax, [0x14138ba38]
mov qword [rbp - 1], rax
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp + 0x17], xmm0
mov r8d, 1
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.1400190e0
test al, al
mov rax, qword [rbp - 0x59]
je 0x14005b565
xor edi, edi
cmp dword [rax + 4], edi
jle 0x14005b580
mov r12d, edi
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rax + 0x10]
add rdx, r12
movzx ebx, word [rdx + rax]
lea rcx, [rbp + 0x77]
call fcn.140022970
cmp bx, word [rax]
jne 0x14005b53a
inc edi
add r12, 2
mov rax, qword [rbp - 0x59]
cmp edi, dword [rax + 4]
jl 0x14005b510
jmp 0x14005b580
mov r14d, edi
cmp edi, 0xffffffff
je 0x14005b580
lea rcx, [rbp + 0x7f]
call fcn.140022970
mov r9d, 1
mov r8d, edi
movzx edx, word [rax]
lea rcx, [rbp - 0x59]
call fcn.140015020
mov r14d, eax
jmp 0x14005b580
cmp dword [rax + 4], 2
jle 0x14005b580
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
cmove r14d, r15d
nop dword [rax]
lea rcx, [rbp - 0x31]
call fcn.140022970
lea r8d, [r14 + 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp - 0x59]
call fcn.140015020
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14005b5b6
mov rax, qword [rbp - 0x59]
mov ebx, dword [rax + 4]
cmp r14d, ebx
je 0x14005b6b8
test ebx, ebx
je 0x14005b67e
mov r8d, ebx
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x59]
call fcn.140015530
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.140069bc0
nop
lea rcx, [rbp - 0x39]
call fcn.14001a740
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rbp - 0x49], eax
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
test eax, eax
je 0x14005b61d
cmp eax, 0xffffffff
je 0x14005b62b
lock dec dword [rcx]
mov edi, dword [rbp - 0x49]
jne 0x14005b62b
mov rcx, qword [rbp - 0x39]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
test r14b, r14b
jne 0x14005b658
cmp edi, 0xb7
je 0x14005b63d
cmp edi, 5
jne 0x14005b68b
mov byte [rbp + 0x6f], 0
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x51]
call fcn.14005d1f0
test al, al
je 0x14005b68b
cmp byte [rbp + 0x6f], 0
je 0x14005b68b
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x14005b670
cmp eax, 0xffffffff
je 0x14005b67e
lock dec dword [rcx]
jne 0x14005b67e
mov rcx, qword [rbp - 0x51]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
mov r14d, ebx
cmp ebx, 0xffffffff
je 0x14005b6b8
jmp 0x14005b580
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x14005b6a3
cmp eax, 0xffffffff
je 0x14005b6b1
lock dec dword [rcx]
jne 0x14005b6b1
mov rcx, qword [rbp - 0x51]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
xor bl, bl
jmp 0x14005b748
mov bl, 1
jmp 0x14005b748
lea rdx, [rbp - 0x21]
mov rcx, rdi
call fcn.140057dd0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140069bc0
nop
lea rcx, [rbp - 0x41]
call fcn.14001a740
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov rcx, qword [rbp - 0x41]
mov eax, dword [rcx]
mov r15d, 2
or esi, 0xffffffff
test eax, eax
je 0x14005b712
cmp eax, esi
je 0x14005b721
lock dec dword [rcx]
jne 0x14005b721
mov rcx, qword [rbp - 0x41]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
nop
mov rcx, qword [rbp - 0x21]
mov eax, dword [rcx]
test eax, eax
je 0x14005b739
cmp eax, 0xffffffff
je 0x14005b748
lock dec dword [rcx]
jne 0x14005b748
mov rcx, qword [rbp - 0x21]
mov r8d, 8
mov rdx, r15
call fcn.1400112a0
nop
mov rcx, qword [rbp - 0x59]
mov eax, dword [rcx]
test eax, eax
je 0x14005b75f
cmp eax, 0xffffffff
je 0x14005b771
lock xadd dword [rcx], esi
dec esi
jne 0x14005b771
mov r8d, 8
mov rdx, r15
mov rcx, qword [rbp - 0x59]
call fcn.1400112a0
movzx eax, bl
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret