Function at 0x1401397b0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x140713740]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
xorps xmm0, xmm0
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], r14
mov qword [rcx + 0x38], 7
mov word [rcx + 0x20], r14w
lea rbx, [rcx + 0x40]
mov qword [rsp + 0x20], rbx
mov dword [rbx], r14d
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov ecx, reloc.WS2_32.dll_getservbyport
call fcn.1403e515c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov qword [rbx + 0x30], 7
mov qword [rbx + 0x38], 8
mov dword [rbx], 0x3f800000
mov r8, qword [rbx + 8]
mov edx, reloc.WS2_32.dll_recv
call fcn.1400fdf60
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x80]
call fcn.14041cf40
mov r8d, 0x104
lea rdx, [rbp + 0x80]
lea rcx, str._NT_SYMBOL_PATH
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140139a1c
lea rdx, [rbp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140139a1c
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.14041cf40
lea rcx, [rbp - 0x80]
call fcn.14013ab20
nop
lea rdx, str.srv
lea rcx, [rbp - 0x70]
call fcn.14013b430
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.14013b430
mov rcx, rax
lea rdx, str.Symbolshttp:__msdl.microsoft.com_download_symbols
call fcn.14013b430
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov dword [rsp + 0x20], 2
mov rcx, qword [rbp + 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140139965
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
test rdx, rdx
je 0x140139965
mov rax, qword [rbp - 0x48]
mov r9, qword [rax]
cmp rdx, qword [rbp]
cmovb rdx, qword [rbp]
sub rdx, r9
jmp 0x14013998d
test cl, 4
jne 0x1401399c5
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x1401399c5
mov rax, qword [rbp - 0x50]
mov r9, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, rcx
mov rax, r9
sar rdx, 1
test rax, rax
je 0x1401399c5
lea rcx, [rsp + 0x28]
cmp rdx, 7
ja 0x1401399bf
mov qword [rsp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14041c8a0
mov word [rsp + rbx + 0x28], r14w
jmp 0x1401399c5
call fcn.1400fe6b0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rdi + 0x20]
call fcn.1400fecf0
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x140139a12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140139a0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140139a46
call fcn.1403e5198
nop
lea rcx, [rbp - 0x80]
call fcn.140139a80
nop
mov rax, rdi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1403e5550
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1403eb834
nop
int3