Function at 0x140139fd0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r8
movzx r15d, dl
lea rdx, [rsp + 0x20]
call fcn.140134ee0
nop
mov edi, 0xffffffff
cmp qword [rsp + 0x30], 0
jne 0x14013a064
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea rax, str.default
mov qword [rsp + 0x50], rax
lea rdx, str.Empty_filename_passed_to_function
lea rcx, [rsp + 0x38]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor bl, bl
jmp 0x14013a204
xor esi, esi
lea r9d, [rsi + 1]
xor r8d, r8d
movzx edx, si
lea rcx, [rsp + 0x20]
call fcn.14008e8f0
cmp rax, 0xffffffffffffffff
je 0x14013a0c1
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
lea rax, str.default
mov qword [rsp + 0x50], rax
lea rdx, str.Broken_filename_passed_to_function
lea rcx, [rsp + 0x38]
call fcn.14010f290
call fcn.1402273d8
mov dword [rax], 0x16
xor bl, bl
jmp 0x14013a204
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x78]
call fcn.1400a7630
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400ab250
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov qword [rax], rdx
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
mov qword [rax + 8], rdx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x10], rdx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14013a131
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013a131
mov rcx, qword [rsp + 0x70]
call fcn.14021b7f0
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14013a14e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013a14e
mov rcx, qword [rbp - 0x78]
call fcn.14021b7f0
mov r8b, 1
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140139220
cmp byte [rbp - 0x60], 0
jne 0x14013a16a
xor bl, bl
jmp 0x14013a204
lea r14, [rbp - 0x58]
cmp byte [rbp - 0x5f], 0
cmovne r14, rsi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.140149a60
nop
lea rcx, [rsp + 0x58]
call fcn.140094f20
mov rcx, rax
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14013a1c5
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013a1c5
mov rcx, qword [rsp + 0x58]
call fcn.14021b7f0
test esi, esi
je 0x14013a1cd
mov bl, 1
jmp 0x14013a204
test r15b, r15b
jne 0x14013a1d6
xor bl, bl
jmp 0x14013a204
cmp ebx, 0xb7
je 0x14013a1f5
cmp ebx, 5
je 0x14013a1f5
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14013a250
jmp 0x14013a201
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14013cb60
movzx ebx, al
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14013a221
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013a221
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
movzx eax, bl
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140214310
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret