Function at 0x1400809a0
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401d3050]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
call fcn.140080778
xor esi, esi
test al, al
jne 0x140080a00
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400809f4
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov byte [rax], sil
jmp 0x140080d4a
lea rcx, [rbp - 0x11]
call fcn.140080860
mov r8d, 0xa
lea rdx, [0x14015c8a8]
lea rcx, [rbp - 0x11]
call fcn.14001df04
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140080aaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140080aaa
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140080a5e
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov byte [rax], sil
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140080d4a
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140080d43
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140080d43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, 7
lea rdx, str.Office
lea rcx, [rbp - 0x11]
call fcn.14001df04
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140080b4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140080b4b
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140080aff
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov byte [rax], sil
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140080d4a
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140080d43
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140080d43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, 4
lea rdx, str.SDX
lea rcx, [rbp - 0x11]
call fcn.14001df04
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop word [rax + rax]
test eax, eax
jne 0x140080bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140080bf5
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140080ba9
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov byte [rax], sil
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140080d4a
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140080d43
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140080d43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 1]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0xf]
call fcn.14002e8dc
cmp byte [rbp + 0xf], sil
jne 0x140080c9b
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140080c3a
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov byte [rax], sil
cmp byte [rbp + 0xf], sil
je 0x140080c56
xor edx, edx
lea rcx, [rbp + 0x17]
call fcn.14002ea58
mov byte [rbp + 0xf], sil
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140080d4a
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140080d43
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140080d43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, 1
lea rdx, [0x14015c8dc]
lea rcx, [rbp + 0x17]
call fcn.140005c30
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140080cbf
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp + 0x17]
call fcn.140005c30
mov r8d, 9
lea rdx, str..bytecode
lea rcx, [rbp + 0x17]
call fcn.140005c30
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.14001f984
cmp byte [rbp + 0xf], sil
je 0x140080d0a
xor edx, edx
lea rcx, [rbp + 0x17]
call fcn.14002ea58
mov byte [rbp + 0xf], sil
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140080d4a
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x140080d43
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140080d43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140118d00
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret