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

Disassembly:
mov r11, rsp
push rbx
push r12
push r13
push r15
sub rsp, 0x1a8
mov rax, qword [rcx + 8]
xor r13d, r13d
mov r15, qword [rcx]
mov rbx, rcx
mov qword [r11 + 0x10], r13
lea r12d, [r13 + 1]
cmp dword [rax + 0x94], r13d
je 0x14002d0bb
mov qword [r11 - 0x28], rsi
lea rcx, [rax + 0x98]
mov qword [r11 - 0x30], rdi
mov qword [r11 - 0x38], r14
mov r14d, dword [rax + 0x90]
add r14, r15
test rcx, rcx
je 0x14002cf43
cmp dword [rcx + 4], r13d
je 0x14002cf43
mov edi, dword [rcx]
lea rdx, [r11 - 0x148]
xorps xmm0, xmm0
mov qword [rsp + 0x40], reloc.WSOCK32.dll_getservbyport
xorps xmm1, xmm1
mov dword [rsp + 0x50], r13d
mov ecx, 0x104
add rdi, r15
movdqu xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp qword [0x140146b00], r13
movups xmm0, xmmword [str.AutoHotkey.MemoryModule.temp.manifest]
mov ecx, eax
mov eax, dword [0x14011aee8]
movups xmm1, xmmword [0x14011aed8]
movups xmmword [rsp + rcx + 0x80], xmm0
movups xmmword [rsp + rcx + 0x90], xmm1
mov dword [rsp + rcx + 0xa0], eax
movzx eax, word [reloc.WSOCK32.dll_WSACleanup]
mov word [rsp + rcx + 0xa4], ax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
je 0x14002cf43
movzx r8d, word [rdi + 0xe]
movzx eax, word [rdi + 0xc]
add r8, rax
je 0x14002cf43
mov ecx, r13d
lea rax, [rdi + 0x10]
nop dword [rax]
mov edx, dword [rax + 4]
test edx, edx
jns 0x14002ce4d
cmp word [rax], 0x18
je 0x14002ce5e
inc rcx
add rax, 8
cmp rcx, r8
jl 0x14002ce40
jmp 0x14002cf43
btr edx, 0x1f
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x100
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov eax, dword [rdx + rdi + 0x14]
mov edx, 0x40000000
btr eax, 0x1f
mov esi, dword [rax + rdi + 0x14]
add rsi, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002cf43
mov dword [rsp + 0x1d0], r13d
lea r9, [rsp + 0x1d0]
mov edx, dword [rsi]
mov rcx, rax
mov r8d, dword [rsi + 4]
add rdx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x1d0], r13d
je 0x14002cf43
lea rcx, [rsp + 0x40]
call qword [0x140146b00]
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x4000100
lea rcx, [rsp + 0x80]
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rdi, rax
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x14002cf43
lea rdx, [rsp + 0x1d8]
mov rcx, rdi
call qword [0x140146b10]
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14002d085
mov qword [rsp + 0x1e0], rbp
mov eax, dword [r14 + 0xc]
test eax, eax
je 0x14002d07d
mov rdx, qword [rbx + 0x60]
lea rcx, [r15 + rax]
call qword [rbx + 0x40]
mov rbp, rax
test rax, rax
je 0x14002d06f
mov eax, dword [rbx + 0x20]
xor edx, edx
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x14002cf9d
lea r8d, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x14002cfb0
mov r8, qword [rbx + 0x10]
inc eax
movsxd r9, eax
shl r9, 3
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, rax
test rax, rax
je 0x14002d05e
mov qword [rbx + 0x10], rax
movsxd rax, dword [rbx + 0x20]
mov qword [rcx + rax*8], rbp
inc dword [rbx + 0x20]
mov ecx, dword [r14]
test ecx, ecx
je 0x14002cfd8
mov eax, dword [r14 + 0x10]
jmp 0x14002cfde
mov ecx, dword [r14 + 0x10]
mov eax, ecx
mov esi, eax
mov edi, ecx
add rsi, r15
add rdi, r15
mov rax, qword [rdi]
test rax, rax
je 0x14002d028
mov r8, qword [rbx + 0x60]
mov rcx, rbp
mov r9, qword [rbx + 0x48]
test rax, rax
jns 0x14002d005
movzx edx, ax
jmp 0x14002d00c
lea rdx, [r15 + 2]
add rdx, rax
call r9
mov qword [rsi], rax
test rax, rax
je 0x14002d044
mov rax, qword [rdi + 8]
add rdi, 8
add rsi, 8
test rax, rax
jne 0x14002cff0
add r14, 0x14
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x14002cf61
jmp 0x14002d07d
mov rdx, qword [rbx + 0x60]
mov rcx, rbp
mov r12d, r13d
call qword [rbx + 0x50]
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002d07d
mov rdx, qword [rbx + 0x60]
mov rcx, rbp
call qword [rbx + 0x50]
mov ecx, ntohs
jmp 0x14002d074
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12d, r13d
mov rbp, qword [rsp + 0x1e0]
mov r8, qword [0x140146b08]
mov r14, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x1a0]
test r8, r8
je 0x14002d0bb
mov rdx, qword [rsp + 0x1d8]
test rdx, rdx
je 0x14002d0bb
xor ecx, ecx
call r8
mov eax, r12d
add rsp, 0x1a8
pop r15
pop r13
pop r12
pop rbx
ret