Function at 0x180041560
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x180148040]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor edi, edi
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800f6eb8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov r8d, 6
lea rdx, str.Carbon
lea rcx, [rbp - 0x68]
call fcn.18002bd50
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800415f0
lea rcx, [rsp + 0x30]
call fcn.18002bd50
nop
mov r8d, 1
lea rdx, [0x1801142d4]
lea rcx, [rsp + 0x30]
call fcn.18002bab0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r9, [rbp - 0x68]
lea r8, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.180008020
nop
lea rcx, [rsp + 0x58]
call fcn.18002d480
nop
lea rcx, [rsp + 0x30]
call fcn.18002d480
nop
lea rcx, [rbp - 0x68]
call fcn.18002d480
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.180045f70
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rdx, qword [rbp - 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov r8, qword [rbp - 0x38]
lea rcx, [rsp + 0x30]
call fcn.18002bd50
nop
lea rcx, [rsp + 0x30]
call fcn.18002da00
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.18002d480
test bl, bl
jne 0x1800416e9
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova rcx, qword [rbp - 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
mov byte [rbp - 0x78], 0
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.1800122b0
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 4
mov byte [rbp - 0x68], 1
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.bIsHookingEnabled
lea rcx, [rbp - 0x78]
call fcn.180007690
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18002a5c0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xor eax, eax
mov byte [rsp + 0x30], 4
mov byte [rbp - 0x68], al
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x38], rax
lea rdx, str.bEnableGUI
lea rcx, [rbp - 0x78]
call fcn.180007690
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18002a5c0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x30], 5
mov qword [rsp + 0x38], 0x15db
lea rdx, str.ListenToPort
lea rcx, [rbp - 0x78]
call fcn.180007690
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18002a5c0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 3
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov ecx, 0x20
call fcn.1800ec3bc
mov rbx, rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rbx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 9
lea rdx, [0x180120300]
mov rcx, rbx
call fcn.180016750
nop
mov qword [rsp + 0x38], rbx
lea rdx, str.BackendURL
lea rcx, [rbp - 0x78]
call fcn.180007690
nop
movzx edx, byte [rax]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov byte [rsp + 0x30], dl
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 8], rdx
mov qword [rsp + 0x38], rcx
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18002a5c0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.180042c90
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x78]
call fcn.180042f60
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1800418e5
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp]
call fcn.1800371b0
nop
lea rcx, [rsp + 0x58]
call fcn.18002d710
lea rcx, [rbp + 8]
call fcn.180035af0
test rax, rax
jne 0x180041928
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 8]
call fcn.1800355e0
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xa8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
movzx edx, byte [rbp - 0x78]
lea rcx, [rbp - 0x70]
call fcn.18002a5c0
nop
lea rcx, [rbp - 0x28]
call fcn.18002d480
nop
lea rcx, [rbp - 0x48]
call fcn.18002d480
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1800ec360
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret