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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r13
push r14
sub rsp, 0x1a8
mov rax, qword [rcx]
xor esi, esi
mov r13, qword [rcx + 8]
mov rdi, rcx
mov qword [r11 + 0x10], rsi
lea r14d, [rsi + 1]
cmp dword [rax + 0x94], esi
je 0x14001dad8
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x30], r12
mov r12d, dword [rax + 0x90]
add r12, r13
mov qword [r11 - 0x38], r15
cmp dword [rax + 0x9c], esi
je 0x14001d8e1
mov ebx, dword [rax + 0x98]
lea rdx, [r11 - 0x148]
xorps xmm0, xmm0
mov qword [rsp + 0x40], gethostname
xorps xmm1, xmm1
mov qword [rsp + 0x48], rsi
mov ecx, 0x104
mov dword [rsp + 0x50], esi
add rbx, r13
movdqu xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp qword [0x14013a3d0], rsi
movups xmm0, xmmword [str.AutoHotkey.MemoryModule.temp.manifest]
mov ecx, eax
mov eax, dword [0x14010d0a8]
movups xmm1, xmmword [0x14010d098]
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 0x14001d8e1
movzx edx, word [rbx + 0xe]
mov ecx, esi
movzx eax, word [rbx + 0xc]
add edx, eax
je 0x14001d8e1
lea rax, [rbx + 0x10]
nop dword [rax]
cmp dword [rax + 4], 0x80000000
jb 0x14001d7df
cmp word [rax], 0x18
je 0x14001d7f0
inc rcx
add rax, 8
cmp rcx, rdx
jl 0x14001d7d0
jmp 0x14001d8e1
mov eax, dword [rax + 4]
lea rcx, [rsp + 0x80]
btr eax, 0x1f
xor r15d, r15d
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov eax, dword [rax + rbx + 0x14]
btr eax, 0x1f
mov esi, dword [rax + rbx + 0x14]
add rsi, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d8df
mov dword [rsp + 0x1d0], r15d
lea r9, [rsp + 0x1d0]
mov edx, dword [rsi]
mov rcx, rax
mov r8d, dword [rsi + 4]
add rdx, r13
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x1d0], r15d
je 0x14001d8df
lea rcx, [rsp + 0x40]
call qword [0x14013a3d0]
xor esi, esi
lea r8d, [r15 + 4]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 0x4000100
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, 0xffffffffffffffff
je 0x14001d8e1
lea rdx, [rsp + 0x1d8]
mov rcx, rbx
call qword [0x14013a3e0]
jmp 0x14001d8e1
xor esi, esi
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14001daa2
mov r15, qword [rsp + 0x1d0]
mov qword [rsp + 0x1a0], rbp
nop word [rax + rax]
mov eax, dword [r12 + 0xc]
test eax, eax
je 0x14001da94
cmp qword [0x140135370], 0
mov r14, rsi
je 0x14001d96c
lea rcx, [rax + r13]
lea rdx, str.MSVCR100.dll
call fcn.1400c6b9c
mov r14, rax
test rax, rax
je 0x14001d96c
mov rbp, qword [0x140135370]
test r15, r15
jne 0x14001d963
lea ecx, [r15 + 8]
call fcn.1400c86f8
mov r15, rax
test rax, rax
je 0x14001da58
mov qword [rdi + 0x10], r15
mov qword [r15], rbp
jmp 0x14001d97e
mov ecx, dword [r12 + 0xc]
mov rdx, qword [rdi + 0x40]
add rcx, r13
call qword [rdi + 0x28]
mov rbp, rax
test rbp, rbp
je 0x14001da84
test r14, r14
jne 0x14001d9c9
mov ecx, dword [rdi + 0x18]
inc ecx
movsxd rdx, ecx
mov rcx, qword [rdi + 0x10]
shl rdx, 3
call fcn.1400cc45c
mov r15, rax
test rax, rax
je 0x14001da4e
cmp dword [rdi + 0x18], 1
mov qword [rdi + 0x10], rax
jne 0x14001d9ba
mov qword [rax], rsi
movsxd rcx, dword [rdi + 0x18]
mov rax, qword [rdi + 0x10]
mov qword [rax + rcx*8], rbp
inc dword [rdi + 0x18]
mov ecx, dword [r12]
test ecx, ecx
jne 0x14001d9d6
mov ecx, dword [r12 + 0x10]
mov ebx, dword [r12 + 0x10]
mov esi, ecx
add rbx, r13
add rsi, r13
cmp qword [rsi], 0
je 0x14001da31
nop dword [rax]
mov rax, qword [rsi]
test rax, rax
jns 0x14001da0c
movzx edx, ax
mov rcx, rbp
test r14, r14
jne 0x14001da16
mov r8, qword [rdi + 0x40]
call qword [rdi + 0x30]
jmp 0x14001da1b
lea rdx, [rax + r13]
add rdx, 2
jmp 0x14001d9fb
call fcn.14001df60
mov qword [rbx], rax
test rax, rax
je 0x14001da68
add rsi, 8
add rbx, 8
cmp qword [rsi], 0
jne 0x14001d9f0
add r12, 0x14
mov edx, reloc.OLEAUT32.dll_SafeArrayLock
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14001da94
xor esi, esi
jmp 0x14001d910
mov rdx, qword [rdi + 0x40]
mov rcx, rbp
call qword [rdi + gethostname]
mov ecx, SafeArrayGetUBound
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14d, esi
jmp 0x14001da9a
mov rdx, qword [rdi + 0x40]
xor r15d, r15d
mov rcx, rbp
mov r14d, r15d
call qword [rdi + gethostname]
lea ecx, [r15 + 0x7f]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001da9a
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14d, esi
jmp 0x14001da9a
mov r14d, 1
mov rbp, qword [rsp + 0x1a0]
mov r8, qword [0x14013a3d8]
mov r15, qword [rsp + 0x190]
mov r12, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x1e0]
test r8, r8
je 0x14001dad8
mov rdx, qword [rsp + 0x1d8]
test rdx, rdx
je 0x14001dad8
xor ecx, ecx
call r8
mov eax, r14d
add rsp, 0x1a8
pop r14
pop r13
pop rdi
pop rsi
ret