Function at 0x428cac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x428cb4
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004082dc
xor eax, eax
push ebp
push 0x428f2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4448c4]
cmp byte [eax + 0xa4], 0
je 0x428d12
push 0x428f3c
push dword [ebp - 4]
push 0x428f84
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00408da4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00408fd8
mov eax, dword [ebp - 0x14]
mov dl, 1
call fcn.00427c54
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x1c]
mov ecx, 0x428f84
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x1c]
call fcn.00408ca0
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x428d75
mov eax, dword [0x4448c4]
cmp byte [eax + 0xa4], 0
je 0x428ef0
mov dl, 1
mov eax, 0x428fb8
call fcn.00427c54
xor eax, eax
call fcn.00427e54
jmp 0x428ef0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointerEx
test eax, eax
jne 0x428dad
mov eax, dword [0x4448c4]
cmp byte [eax + 0xa4], 0
je 0x428dfe
mov dl, 1
mov eax, 0x429014
call fcn.00427c54
xor eax, eax
call fcn.00427e54
jmp 0x428dfe
mov eax, dword [0x4448c4]
mov eax, dword [eax + 0x50]
mov ebx, eax
test ebx, ebx
je 0x428dc0
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [0x4448c4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x428dfe
mov eax, dword [0x4448c4]
cmp byte [eax + 0xa4], 0
je 0x428dfe
mov dl, 1
mov eax, 0x42906c
call fcn.00427c54
xor eax, eax
call fcn.00427e54
mov eax, dword [0x4448c4]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x428e0f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
cmp edx, eax
je 0x428ecd
mov eax, dword [0x4448c4]
cmp byte [eax + 0xa4], 0
je 0x428ecd
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x428ebf
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4290b4
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00418c38
push dword [ebp - 0x20]
push 0x4290ec
lea eax, [ebp - 8]
mov edx, 3
call fcn.00409168
mov eax, dword [0x4448c4]
mov eax, dword [eax + 0x50]
mov ebx, eax
test ebx, ebx
je 0x428e7b
sub ebx, 4
mov ebx, dword [ebx]
push dword [ebp - 8]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00418c1c
push dword [ebp - 0x28]
push 0x429108
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00409168
mov eax, dword [ebp - 0x24]
mov dl, 1
call fcn.00427c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428ec6
lea eax, [ebp - 8]
call fcn.004081c8
pop eax
jmp eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x4448c4]
cmp byte [eax + 0xa4], 0
je 0x428ef0
mov dl, 1
mov eax, 0x429124
call fcn.00427c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428f31
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00408228
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00408298
lea eax, [ebp - 0x14]
call fcn.004081c8
lea eax, [ebp - 4]
call fcn.00408210
pop eax
jmp eax