Function at 0x180041250
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 [0x180149040]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor edi, edi
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800f7ed8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
lea r8d, [rdi + 6]
lea rdx, str.Carbon
lea rcx, [rbp - 0x68]
call fcn.18002ba50
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
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800412d5
lea rcx, [rsp + 0x30]
call fcn.18002ba50
nop
mov r8d, 1
lea rdx, [0x1801152b4]
lea rcx, [rsp + 0x30]
call fcn.18002b7b0
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.180007e00
nop
lea rcx, [rsp + 0x58]
call fcn.18002d140
nop
lea rcx, [rsp + 0x30]
call fcn.18002d140
nop
lea rcx, [rbp - 0x68]
call fcn.18002d140
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.180045c70
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.18002ba50
nop
lea rcx, [rsp + 0x30]
call fcn.18002d6c0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.18002d140
test bl, bl
jne 0x1800413ce
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.180011fa0
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.180007470
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.18002a300
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.180007470
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.18002a300
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.180007470
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.18002a300
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
lea ecx, [rax + 0x20]
call fcn.1800ed34c
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, [0x180121280]
mov rcx, rbx
call fcn.180016150
nop
mov qword [rsp + 0x38], rbx
lea rdx, str.BackendURL
lea rcx, [rbp - 0x78]
call fcn.180007470
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.18002a300
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.180042990
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x78]
call fcn.180042c60
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1800415c8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp]
call fcn.180036f40
nop
lea rcx, [rsp + 0x58]
call fcn.18002d3d0
lea rcx, [rbp + 8]
call fcn.180035890
test rax, rax
jne 0x18004160a
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 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.180035380
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.18002a300
nop
lea rcx, [rbp - 0x28]
call fcn.18002d140
nop
lea rcx, [rbp - 0x48]
call fcn.18002d140
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1800ed2f0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret