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

Disassembly:
sub esp, 0x14c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0
mov ebp, dword [edi + 4]
mov esi, dword [edi]
mov dword [esp + 0x14], esi
cmp dword [ebp + 0x84], 0
jne 0x428cc6
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
lea ebx, [ebp + 0x88]
mov ebp, dword [ebp + 0x80]
add ebp, esi
test ebx, ebx
je 0x428e37
cmp dword [ebx + 4], 0
je 0x428e37
mov ebx, dword [ebx]
xor eax, eax
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
push 0x104
add ebx, esi
mov dword [esp + 0x38], 0x20
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
movups xmm0, xmmword [str.AutoHotkey.MemoryModule.temp.manifest]
lea ecx, [esp + 0x50]
xor edx, edx
add ecx, eax
mov eax, dword [0x4e6f60]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4e6f50]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov ax, word [0x4e6f64]
mov word [ecx + 0x24], ax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], eax
cmp dword [0x4fe870], edx
je 0x428e37
movzx esi, word [ebx + 0xe]
movzx eax, word [ebx + 0xc]
add esi, eax
je 0x428e33
lea eax, [ebx + 0x10]
nop
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x428d7d
cmp word [eax], 0x18
je 0x428d8a
inc edx
add eax, 8
cmp edx, esi
jl 0x428d70
jmp 0x428e33
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 esi, dword [eax + ebx + 0x14]
lea eax, [esp + 0x68]
push eax
add esi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x428e33
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [esi + 4]
mov eax, dword [esi]
mov esi, dword [esp + 0x20]
add eax, esi
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 + 0x18], 0
je 0x428e37
lea eax, [esp + 0x30]
push eax
call dword [0x4fe870]
push 0
push 0x4000100
push 3
push 0
push 4
mov esi, eax
lea eax, [esp + 0x64]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call ebx
cmp esi, 0xffffffff
je 0x428e33
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x4fe878]
mov esi, dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x14
push ebp
mov dword [esp + 0x34], eax
call eax
test eax, eax
jne 0x428f80
mov ecx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea eax, [edi + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x428f80
push dword [edi + 0x38]
add eax, esi
push eax
mov eax, dword [edi + 0x28]
call eax
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x428f74
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
test eax, eax
jne 0x428ea7
push 4
push eax
push ecx
call dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
jmp 0x428ebc
mov esi, dword [esp + 0x1c]
lea eax, [eax*4 + 4]
push eax
push dword [esi]
push 0
push ecx
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x428f5c
mov eax, dword [edi + 0x10]
mov dword [esi], ecx
mov dword [ecx + eax*4], ebx
inc dword [edi + 0x10]
mov eax, dword [ebp]
test eax, eax
jne 0x428edb
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp + 0x10]
add esi, ecx
lea ebx, [eax + ecx]
mov eax, dword [ebx]
test eax, eax
je 0x428f26
nop dword [eax]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x2c]
push ecx
test eax, eax
jns 0x428f00
movzx eax, ax
jmp 0x428f09
mov ecx, dword [esp + 0x18]
add ecx, 2
add eax, ecx
push eax
push dword [esp + 0x20]
call edx
add esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x428f41
mov eax, dword [ebx + 4]
add ebx, 4
add esi, 4
test eax, eax
jne 0x428ef0
push 0x14
add ebp, 0x14
push ebp
call dword [esp + 0x34]
test eax, eax
jne 0x428f80
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
jmp 0x428e64
push dword [edi + 0x38]
mov eax, dword [edi + 0x30]
xor ebx, ebx
push dword [esp + 0x1c]
call eax
add esp, 8
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x428f85
push dword [edi + 0x38]
mov eax, dword [edi + 0x30]
push ebx
call eax
add esp, 8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x428f85
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x428f85
mov ebx, 1
mov ecx, dword [0x4fe874]
test ecx, ecx
je 0x428f9c
mov edx, dword [esp + 0x20]
test edx, edx
je 0x428f9c
push edx
push 0
call ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14c
ret