Function at 0x4258a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50aec8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x54112c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x4258dc
xor eax, eax
jmp 0x425a7c
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x425907
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x425907
lea eax, [esi - 1]
mov dword [edx], eax
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov byte [edx], bl
jmp 0x425a7a
cmp dword [edi + 0x4c], 0
jne 0x425915
or eax, 0xffffffff
jmp 0x425a7c
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x425933
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
cmp dword [edi + 0x38], 0
jne 0x425958
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.004d9e87
add esp, 8
cmp eax, 0xffffffff
jne 0x425a7a
or ebx, eax
jmp 0x425a7a
push 0
push 8
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x29], bl
call fcn.004079d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x30], edx
cmp eax, 0x10
jb 0x425982
mov dword [ebp - 0x30], ecx
lea esi, [ebp - 0x28]
jb 0x425989
mov esi, ecx
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov edx, dword [ecx]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
lea eax, [edi + 0x40]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x425a45
cmp eax, 1
jg 0x425a21
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x4259cd
mov edx, ecx
mov esi, dword [ebp - 0x34]
sub esi, edx
je 0x4259f7
lea edx, [ebp - 0x28]
cmp eax, 0x10
jb 0x4259de
mov edx, ecx
push dword [edi + 0x4c]
push esi
push 1
push edx
call fcn.004da26c
mov ecx, dword [ebp - 0x28]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x14]
jne 0x425a4b
lea edx, [ebp - 0x29]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x38], edx
jne 0x425a4e
test esi, esi
jne 0x425974
cmp dword [ebp - 0x18], 0x20
jae 0x425a4b
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004234e0
jmp 0x42596e
cmp eax, 3
jne 0x425a45
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x29]
push eax
call fcn.004d9e87
add esp, 8
cmp eax, 0xffffffff
jne 0x425a3d
or ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x425a4e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
or ebx, 0xffffffff
cmp eax, 0x10
jb 0x425a7a
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x425a70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x425a9a
push edx
push ecx
call fcn.0048bf7f
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bf8d
mov esp, ebp
pop ebp
ret 4
call fcn.004bce09
int3