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

Disassembly:
sub esp, 0x140
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebp
push esi
mov esi, dword [esp + 0x14c]
push edi
mov dword [esp + 0x14], 0
mov ebp, dword [esi + 4]
mov edi, dword [esi]
mov dword [esp + 0xc], edi
cmp dword [ebp + 0x84], 0
jne 0x44c6c5
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004ebadf
add esp, 0x140
ret
push ebx
lea ebx, [ebp + 0x88]
mov ebp, dword [ebp + 0x80]
add ebp, edi
test ebx, ebx
je 0x44c838
cmp dword [ebx + 4], 0
je 0x44c838
mov ebx, dword [ebx]
xor eax, eax
mov dword [esp + 0x34], eax
xorps xmm0, xmm0
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], 0
push eax
push 0x104
add ebx, edi
mov dword [esp + 0x30], 0x20
movups xmmword [esp + 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
movups xmm0, xmmword [str.AutoHotkey.MemoryModule.temp.manifest]
lea ecx, [esp + 0x48]
xor edx, edx
add ecx, eax
mov eax, dword [0x4fbad4]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4fbac4]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov ax, word [0x4fbad8]
mov word [ecx + 0x24], ax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], eax
cmp dword [0x622610], edx
je 0x44c838
movzx edi, word [ebx + 0xe]
movzx eax, word [ebx + 0xc]
add edi, eax
je 0x44c834
lea eax, [ebx + 0x10]
nop
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x44c77d
cmp word [eax], 0x18
je 0x44c78a
inc edx
add eax, 8
cmp edx, edi
jl 0x44c770
jmp 0x44c834
push 0
and ecx, 0x7fffffff
push 0x100
push 2
push 0
mov eax, dword [ecx + ebx + 0x14]
and eax, 0x7fffffff
push 0
push 0x40000000
mov edi, dword [eax + ebx + 0x14]
lea eax, [esp + 0x60]
push eax
add edi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44c834
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [edi + 4]
mov eax, dword [edi]
mov edi, dword [esp + 0x1c]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp dword [esp + 0x14], 0
je 0x44c838
mov eax, dword [0x622610]
lea ecx, [esp + 0x28]
push ecx
call eax
push 0
push 0x4000100
push 3
push 0
push 4
mov edi, eax
lea eax, [esp + 0x5c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call ebx
cmp edi, 0xffffffff
je 0x44c834
lea eax, [esp + 0x18]
push eax
push edi
call dword [0x622618]
mov edi, dword [esp + 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x14
push ebp
mov dword [esp + 0x2c], eax
call eax
test eax, eax
jne 0x44c96c
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44c96c
push dword [esi + 0x38]
mov ecx, dword [esi + 0x28]
add eax, edi
push eax
call ecx
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x44c960
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
test eax, eax
jne 0x44c89b
push 4
push eax
push ecx
call dword [esp + 0x28]
jmp 0x44c8ad
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
push 0
push ecx
call dword [esp + 0x30]
mov ecx, eax
test ecx, ecx
je 0x44c948
mov eax, dword [esi + 0x10]
mov dword [esi + 8], ecx
mov dword [ecx + eax*4], ebx
inc dword [esi + 0x10]
mov eax, dword [ebp]
test eax, eax
je 0x44c8cf
mov ecx, dword [ebp + 0x10]
jmp 0x44c8d4
mov eax, dword [ebp + 0x10]
mov ecx, eax
lea ebx, [ecx + edi]
add edi, eax
mov eax, dword [edi]
test eax, eax
je 0x44c916
nop
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x2c]
push ecx
test eax, eax
jns 0x44c8f0
movzx eax, ax
jmp 0x44c8f9
mov ecx, dword [esp + 0x14]
add ecx, 2
add eax, ecx
push eax
push dword [esp + 0x1c]
call edx
add esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x44c92d
mov eax, dword [edi + 4]
add edi, 4
add ebx, 4
test eax, eax
jne 0x44c8e0
push 0x14
add ebp, 0x14
push ebp
call dword [esp + 0x2c]
test eax, eax
jne 0x44c96c
mov edi, dword [esp + 0x10]
jmp 0x44c860
push dword [esi + 0x38]
mov eax, dword [esi + 0x30]
xor ebx, ebx
push dword [esp + 0x18]
call eax
add esp, 8
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x44c971
push dword [esi + 0x38]
mov eax, dword [esi + 0x30]
push ebx
call eax
add esp, 8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x44c971
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x44c971
mov ebx, 1
mov ecx, dword [0x622614]
test ecx, ecx
je 0x44c988
mov edx, dword [esp + 0x18]
test edx, edx
je 0x44c988
push edx
push 0
call ecx
mov ecx, dword [esp + 0x14c]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004ebadf
add esp, 0x140
ret