Function at 0x140140940
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 [0x14038d940]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r8
movzx r15d, dl
lea rdx, [rsp + 0x20]
call fcn.14013b6f0
nop
mov edi, 0xffffffff
cmp qword [rsp + 0x30], 0
jne 0x1401409d4
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor bl, bl
jmp 0x140140b74
xor esi, esi
lea r9d, [rsi + 1]
xor r8d, r8d
movzx edx, si
lea rcx, [rsp + 0x20]
call fcn.14008ddd0
cmp rax, 0xffffffffffffffff
je 0x140140a31
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.140110040
call fcn.1402334b8
mov dword [rax], 0x16
xor bl, bl
jmp 0x140140b74
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x78]
call fcn.1400a7330
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400aa730
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 0x140140aa1
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140140aa1
mov rcx, qword [rsp + 0x70]
call fcn.1402275a0
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140140abe
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140140abe
mov rcx, qword [rbp - 0x78]
call fcn.1402275a0
mov r8b, 1
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14013fb90
cmp byte [rbp - 0x60], 0
jne 0x140140ada
xor bl, bl
jmp 0x140140b74
lea r14, [rbp - 0x58]
cmp byte [rbp - 0x5f], 0
cmovne r14, rsi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.14014e870
nop
lea rcx, [rsp + 0x58]
call fcn.140094620
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 0x140140b35
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140140b35
mov rcx, qword [rsp + 0x58]
call fcn.1402275a0
test esi, esi
je 0x140140b3d
mov bl, 1
jmp 0x140140b74
test r15b, r15b
jne 0x140140b46
xor bl, bl
jmp 0x140140b74
cmp ebx, 0xb7
je 0x140140b65
cmp ebx, 5
je 0x140140b65
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140140bc0
jmp 0x140140b71
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140143780
movzx ebx, al
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140140b91
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140140b91
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
movzx eax, bl
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1402200b0
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