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

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x20], 0
push edi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x20], edi
cmp dword [ebx + 0x84], 0
jne 0x424876
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea ebp, [ebx + 0x88]
mov ebx, dword [ebx + 0x80]
add ebx, edi
mov dword [esp + 0x1c], ebx
test ebp, ebp
je 0x4249fd
cmp dword [ebp + 4], 0
je 0x4249fd
mov ebp, dword [ebp]
xor eax, eax
mov dword [esp + 0x34], eax
xorps xmm0, xmm0
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], 0
push eax
add ebp, edi
mov dword [esp + 0x2c], 0x20
push 0x104
mov dword [esp + 0x1c], ebp
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 [0x4cfbec]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x4cfbdc]
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], eax
mov ax, word [0x4cfbf0]
mov word [ecx + 0x24], ax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], eax
cmp dword [0x4e7a34], edx
je 0x4249fd
movzx ecx, word [ebp + 0xe]
movzx ebp, word [ebp + 0xc]
add ebp, ecx
je 0x4249fd
mov eax, dword [esp + 0x14]
add eax, 0x10
nop dword [eax + eax]
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x42493d
cmp word [eax], 0x18
je 0x42494a
inc edx
add eax, 8
cmp edx, ebp
jl 0x424930
jmp 0x4249fd
mov edx, dword [esp + 0x14]
and ecx, 0x7fffffff
push 0
push 0x100
push 2
mov eax, dword [ecx + edx + 0x14]
and eax, 0x7fffffff
push 0
push 0
push 0x40000000
mov ebp, dword [eax + edx + 0x14]
lea eax, [esp + 0x60]
push eax
add ebp, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0xffffffff
je 0x4249fd
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 4]
mov eax, dword [ebp]
add eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], 0
je 0x4249fd
lea eax, [esp + 0x28]
push eax
call dword [0x4e7a34]
push 0
push 0x4000100
push 3
push 0
push 4
mov ebp, eax
lea eax, [esp + 0x5c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
je 0x4249fd
lea eax, [esp + 0x24]
push eax
push ebp
call dword [0x4e7a3c]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x14
push ebx
mov dword [esp + 0x1c], eax
call eax
test eax, eax
jne 0x424b26
mov eax, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov dword [esp + 0x18], eax
nop dword [eax]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x424b26
push dword [esi + 0x28]
add eax, edi
push eax
mov eax, dword [esi + 0x1c]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x424b1a
mov ecx, dword [esi + 0xc]
lea ecx, [ecx*4 + 4]
push ecx
push dword [esi + 8]
call dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x424b02
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], eax
cmp ecx, 1
jne 0x424a77
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], ebp
inc dword [esi + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x424a88
mov ecx, dword [ebx + 0x10]
jmp 0x424a8d
mov eax, dword [ebx + 0x10]
mov ecx, eax
lea ebx, [ecx + edi]
add edi, eax
mov eax, dword [edi]
test eax, eax
je 0x424acb
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x20]
push ecx
test eax, eax
jns 0x424aa8
movzx eax, ax
jmp 0x424ab1
mov ecx, dword [esp + 0x24]
add ecx, 2
add eax, ecx
push eax
push ebp
call edx
add esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x424aea
mov eax, dword [edi + 4]
add edi, 4
add ebx, 4
test eax, eax
jne 0x424a98
mov ebx, dword [esp + 0x1c]
add ebx, 0x14
push 0x14
push ebx
mov dword [esp + 0x24], ebx
call dword [esp + 0x1c]
test eax, eax
jne 0x424b26
mov edi, dword [esp + 0x20]
jmp 0x424a20
push dword [esi + 0x28]
mov eax, dword [esi + 0x24]
xor ebx, ebx
push ebp
call eax
add esp, 8
push 0x7f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x424b2b
push dword [esi + 0x28]
mov eax, dword [esi + 0x24]
push ebp
call eax
add esp, 8
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x424b2b
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x424b2b
mov ebx, 1
mov ecx, dword [0x4e7a38]
test ecx, ecx
je 0x424b42
mov edx, dword [esp + 0x24]
test edx, edx
je 0x424b42
push edx
push 0
call ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x144
ret