Function at 0x140085ed4
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140198190]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.140112010
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], gethostname
lea r13d, [rax + 1]
mov r8d, r13d
lea eax, [r13 + 1]
mov dword [rsp + 0x78], eax
mov edx, eax
mov rcx, rsi
call fcn.140085d08
mov rdx, rax
xor ebx, ebx
test rax, rax
jne 0x140085f8e
mov dword [rsi + 0x60], ebx
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14010f620
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, reloc.WS2_32.dll_recv
mov r10d, ebx
movzx r14d, word [rax + 0xe]
movzx eax, word [rax + 0xc]
add r14d, eax
je 0x140085f62
mov eax, dword [rdx + r8 + 4]
test eax, eax
jns 0x140085ffa
cmp word [rdx + r8], 0x18
jne 0x140085ffa
btr eax, 0x1f
lea r9, [rax + 0x10]
mov r11d, ebx
movzx r12d, word [rax + rdx + 0xe]
movzx eax, word [rax + rdx + 0xc]
add r12d, eax
je 0x140085ffa
mov ecx, dword [rdx + r9 + 4]
test ecx, ecx
jns 0x140085fee
movzx r15d, word [rdx + r9]
movzx eax, r15w
sub ax, r13w
cmp ax, word [rsp + 0x78]
jbe 0x14008600c
add r11d, r13d
add r9, 8
cmp r11d, r12d
jl 0x140085fd1
add r10d, r13d
add r8, 8
cmp r10d, r14d
jge 0x140085f62
jmp 0x140085fa5
btr ecx, 0x1f
mov ecx, dword [rdx + rcx + 0x14]
mov dword [rsi + 0x60], r15d
mov r12d, dword [rcx + rdx + 4]
mov edx, dword [rcx + rdx]
mov r8d, r13d
mov rcx, rsi
call fcn.140085d50
mov r15, rax
test rax, rax
je 0x140085f62
test rdi, rdi
jne 0x140086135
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.140112010
lea rdx, [rbp + 0x190]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.ImageManifest
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14008608f
mov eax, 0xc0150002
jmp 0x140085f64
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
setg r14b
test rax, rax
jle 0x140086121
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov r8d, r12d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r14b, r14b
je 0x1400860ef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140086104
lea rcx, [rsi + 0x128]
lea rdx, [rbp - 0x70]
call fcn.140008ce0
nop
jmp 0x140086171
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140085f64
mov dword [rsp + 0x44], 8
movzx eax, word [rsi + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
lea rdx, [rsi + 0x108]
lea rcx, [rsi + 0x128]
cmp rcx, rdx
je 0x140086171
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x14008616c
mov rdx, qword [rdx]
call fcn.140008ce0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
mov rcx, qword [rsi + 0x58]
cmp rax, rcx
je 0x14008619a
test rcx, rcx
jle 0x140086193
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rsi + 0x58], rdi
mov rcx, rdi
test rcx, rcx
jg 0x140085f62
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0xc0000022
je 0x140085f5f
mov rax, qword gs:[0x30]
jmp 0x14008612a