Function at 0x424fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov esi, edx
mov edi, eax
test edi, edi
je 0x42530f
mov eax, dword [edi + 0xa4]
movzx edx, byte [edi + 0x120]
mov dword [ebp - 0x10], eax
mov eax, edx
and eax, 0x20
shr eax, 5
mov dword [ebp - 0x14], eax
and edx, 0x40
shr edx, 6
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 0xf8]
test ebx, ebx
jne 0x42508b
test edi, edi
je 0x42521c
movzx edx, byte [edi + 0x11d]
test dl, 1
jne 0x425049
mov eax, 1
jmp 0x425201
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 0
mov ebx, dword [edi + 0x28]
mov ecx, dword [edi + 0x30]
push edx
sub ecx, ebx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42506c
mov eax, 0xffffffff
mov edx, dword [edi + 0x28]
add edx, dword [edi + 0xb0]
mov dword [edi + 0x34], edx
mov dword [edi + 0x30], 0
and byte [edi + 0x11d], 0xfe
jmp 0x425201
test edi, edi
je 0x4250cd
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x4250cd
cmp esi, ecx
je 0x4250cd
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x24], eax
sub ecx, eax
je 0x4250cd
lea eax, [ebp - 0x1c]
push 0
mov dword [ebp - 0x20], edx
push eax
mov eax, dword [ebp - 0x24]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x20]
test eax, eax
jne 0x4250cd
mov eax, 0xffffffff
jmp 0x425201
mov eax, dword [0x4a2400]
test eax, eax
je 0x4250f0
test edx, edx
jne 0x425276
mov eax, 0xffffffff
test edi, edi
jne 0x425201
jmp 0x42520f
test edi, edi
je 0x42516f
movzx eax, byte [edi + 0x121]
test al, 0x10
jne 0x425107
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x20], eax
jmp 0x425153
movzx eax, byte [edi + 0x11e]
test al, 0x20
je 0x42511a
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x20], eax
jmp 0x425153
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x24], eax
cmp esi, eax
je 0x425130
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x20], eax
cmp esi, eax
jne 0x425162
jmp 0x425136
mov eax, dword [edi + 0x30]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [edi + 0xac]
mov eax, dword [edi + 0xb0]
mov edx, dword [edi + 0x2c]
lea edx, [edx + eax*2]
cmp ecx, edx
ja 0x4251ed
mov eax, dword [ebp - 0x20]
cmp esi, eax
jne 0x425162
add ebx, dword [ebp - 0x20]
mov esi, dword [edi + 0x28]
sub ebx, esi
mov eax, dword [edi + 0xf4]
cmp eax, 0x40000
ja 0x425174
mov eax, 0x40000
cmp ebx, eax
jbe 0x4251bb
test edi, edi
je 0x425189
mov eax, dword [edi + 0xf4]
cmp eax, 0x40000
ja 0x42518e
mov eax, 0x40000
mov dword [ebp - 0x2c], ebx
mov ebx, eax
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push 0
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x425223
mov edi, dword [ebp - 0x28]
test eax, eax
jne 0x4251cd
mov eax, 0xffffffff
jmp 0x4251cd
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push 0
push eax
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x42520f
mov edx, dword [edi + 0x28]
add edx, dword [edi + 0xb0]
mov dword [edi + 0x34], edx
and byte [edi + 0x11d], 0xfe
mov dword [edi + 0x30], 0
jmp 0x425201
or byte [edi + 0x11d], 1
add esi, ebx
mov dword [edi + 0x30], esi
add dword [edi + 0x34], eax
mov eax, 1
xor edx, edx
mov dword [edi + 0x90], edx
mov dword [edi + 0x94], edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x42520f
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x2c]
add esi, ecx
sub edi, ecx
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x425248
mov edi, dword [edi + 0xf4]
mov dword [ebp - 0x24], edi
cmp edi, 0x40000
ja 0x425250
mov edi, 0x40000
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
cmp edi, edx
ja 0x425262
mov ebx, edi
test ebx, ebx
jne 0x425266
jmp 0x42526e
test edi, edi
je 0x42526e
test ecx, ecx
ja 0x425196
mov edi, dword [ebp - 0x28]
jmp 0x4251cd
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x425292
cmp edx, 0xfffffffa
jne 0x425292
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4252ab
cmp edx, 1
je 0x4252f4
cmp edx, 2
je 0x4252f4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4252c7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4252c7
mov eax, dword [ebp - 0x24]
push eax
call fcn.0044dd6c
mov eax, dword [ebp - 0x24]
push eax
call fcn.004508f0
add esp, 8
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4250f0
mov eax, dword [ebp - 0x24]
push 0
push eax
push ebx
push esi
call fcn.00453514
add esp, 0x10
cmp eax, ebx
je 0x4250e3
mov eax, 0xffffffff
jmp 0x4250e3
call fcn.0044df84
mov dword [ebp - 0x24], eax
mov eax, dword [0x4a2400]
test eax, eax
je 0x4252d2
mov eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4252a4
mov eax, dword [0x4a2400]
test eax, eax
jne 0x425338
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4a2400]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov edx, 1
jmp 0x425027
call fcn.0044df84
mov dword [ebp - 0x10], eax
jmp 0x425323