Function at 0x140087010
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor edi, edi
mov dword [r8], edi
lea r12, [0x1400f9178]
mov qword [r8 + 8], r12
mov dword [rbp - 0x29], edi
mov qword [rbp - 0x21], r12
cmp qword [rcx + 0x18], 7
jbe 0x140087058
mov rcx, qword [rcx]
lea r8, [rbp - 0x19]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x140087086
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], r12
movaps xmm0, xmmword [rbp - 0x29]
movaps xmmword [rbp - 0x29], xmm0
movd ecx, xmm0
jmp 0x140087146
test dword [rbp - 0x19], 0x400
je 0x140087143
lea r8, [rbp - 0x29]
mov rdx, rsi
lea rcx, [rbp + 0x77]
call fcn.140083f60
mov rbx, qword [rbp + 0x77]
mov ecx, dword [rbp - 0x29]
test ecx, ecx
jne 0x140087135
test rbx, rbx
je 0x14008717a
mov eax, dword [rbx]
test eax, eax
jns 0x140087135
cmp eax, 0xa000000c
jne 0x140087135
lea r8, [rbp - 0x29]
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.140084080
cmp dword [rbp - 0x29], 0
jne 0x140087122
cmp qword [rbp + 0x1f], 0
je 0x140087122
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x67]
call fcn.1400845a0
lea rcx, [rbp + 0xf]
call fcn.140058840
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140087205
mov edi, 9
mov dword [rbp + 0x67], edi
mov eax, 0xffff
mov word [rbp + 0x6b], ax
jmp 0x14008710b
test rbx, rbx
je 0x140087146
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [rbp - 0x29]
test ecx, ecx
je 0x14008717a
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x140087165
cmp ecx, 0x7b
je 0x140087165
mov eax, 0xffff
mov word [rbp + 0x6b], ax
jmp 0x140087202
mov dword [rbp + 0x67], 1
mov eax, 0xffff
mov word [rbp + 0x6b], ax
jmp 0x140087205
mov edi, 9
test dword [rbp - 0x19], 0x400
je 0x1400871ca
lea r8, [rbp - 0x29]
mov rdx, rsi
lea rcx, [rbp + 0x77]
call fcn.140083f60
mov rcx, qword [rbp + 0x77]
cmp dword [rbp - 0x29], 0
jne 0x1400871ba
test rcx, rcx
je 0x1400871ca
mov eax, dword [rcx]
test eax, eax
jns 0x1400871ba
mov edx, 4
cmp eax, 0xa000000c
cmove edi, edx
test rcx, rcx
je 0x1400871c5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp edi, 9
jne 0x1400871d7
movzx edi, byte [rbp - 0x19]
and edi, 0x10
or edi, 0x20
shr edi, 4
test byte [rbp - 0x19], 1
mov ebx, 0x1b6
mov eax, 0x124
cmovne bx, ax
mov rcx, rsi
call fcn.140085c90
movzx ecx, bx
or cx, 0x49
test al, al
cmove cx, bx
mov word [rbp + 0x6b], cx
mov dword [rbp + 0x67], edi
cmp dword [rbp + 0x67], 3
je 0x140087251
mov rax, qword [rsi + 0x18]
cmp qword [r14 + 0x10], 0
je 0x140087255
cmp rax, 7
jbe 0x14008721f
mov rsi, qword [rsi]
cmp qword [r14 + 0x18], 7
jbe 0x140087229
mov r14, qword [r14]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x14008726b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 0x21], r12
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [r15], xmm0
xor al, al
jmp 0x14008726d
cmp rax, 7
jbe 0x14008725e
mov rsi, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x140087238
mov al, 1
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret