Function at 0x42417f
Capabilities:
Write file on windows

Disassembly:
push 0x50
mov eax, 0x44802e
call fcn.00431d5d
mov eax, dword [ebp + 0x18]
mov byte [eax], 0
cmp dword [edi + 0x90], 0x10
jb 0x42419f
mov eax, dword [edi + 0x7c]
jmp 0x4241a2
lea eax, [edi + 0x7c]
push 0x4540a8
push eax
call fcn.004410b9
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
pop ecx
je 0x424508
push esi
push dword [ebp + 8]
push ebx
call fcn.0042f54a
add esp, 0xc
test eax, eax
je 0x4241f6
push str.fseeko_fail.
lea ecx, [ebp - 0x3c]
call fcn.00402e51
mov dword [ebp - 4], esi
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
xor ecx, ecx
lea eax, [ebp - 0x3c]
call fcn.0041ec8f
lea ecx, [ebp - 0x3c]
jmp 0x424531
mov esi, dword [edi + 0x48]
mov ecx, dword [edi + 0x4c]
mov eax, esi
and eax, ecx
cmp eax, 0xffffffff
je 0x424394
mov eax, dword [ebp + 0x10]
cdq
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
cmp edx, ecx
jg 0x424266
jl 0x42421d
cmp eax, esi
ja 0x424266
push ebx
push dword [ebp + 0x10]
xor esi, esi
inc esi
push esi
push dword [ebp + 0x14]
call fcn.0042d6f2
add esp, 0x10
cmp dword [ebp + 0x10], eax
je 0x424345
push str.fwrite_fail.
lea ecx, [ebp - 0x3c]
call fcn.00402e51
mov dword [ebp - 4], esi
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
xor ecx, ecx
lea eax, [ebp - 0x3c]
call fcn.0041ec8f
push 0
push esi
lea ecx, [ebp - 0x3c]
jmp 0x424534
sub esi, dword [ebp + 8]
sbb ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
js 0x42430f
jg 0x42427f
test esi, esi
jbe 0x42430f
push str.data_overload
lea ecx, [ebp - 0x3c]
call fcn.00402e51
mov dword [ebp - 4], 2
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
xor ecx, ecx
lea eax, [ebp - 0x3c]
call fcn.0041ec8f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402b4a
mov eax, dword [edi + 0x48]
sub eax, dword [ebp + 8]
push ebx
push eax
push 1
push dword [ebp + 0x14]
call fcn.0042d6f2
mov ecx, dword [edi + 0x48]
mov esi, dword [edi + 0x4c]
add esp, 0x10
sub ecx, dword [ebp + 8]
cdq
sbb esi, dword [ebp + 0xc]
cmp ecx, eax
jne 0x4242df
cmp esi, edx
je 0x424345
push str.fwrite_fail.
lea ecx, [ebp - 0x3c]
call fcn.00402e51
mov dword [ebp - 4], 3
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
xor ecx, ecx
lea eax, [ebp - 0x3c]
call fcn.0041ec8f
push 0
lea ecx, [ebp - 0x3c]
jmp 0x424532
push str.data_overload
lea ecx, [ebp - 0x3c]
call fcn.00402e51
mov dword [ebp - 4], 4
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
xor ecx, ecx
lea eax, [ebp - 0x3c]
call fcn.0041ec8f
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402b4a
push ebx
call fcn.0042d82b
lea esi, [edi + 0xe0]
xor ebx, ebx
pop ecx
mov eax, esi
mov dword [ebp + 0x14], ebx
call fcn.00425348
test eax, eax
jle 0x424387
push ebx
call fcn.0042535e
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x424378
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4243c3
inc ebx
mov eax, esi
mov dword [ebp + 0x14], ebx
call fcn.00425348
cmp ebx, eax
jl 0x424362
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
xor eax, eax
jmp 0x42453c
push ebx
push dword [ebp + 0x10]
push 1
push dword [ebp + 0x14]
call fcn.0042d6f2
add esp, 0x10
cmp dword [ebp + 0x10], eax
je 0x424345
push str.fwrite_fail.
lea ecx, [ebp - 0x3c]
call fcn.00402e51
mov dword [ebp - 4], 5
jmp 0x4242f3
mov eax, esi
call fcn.00425348
dec eax
cmp ebx, eax
jne 0x424475
push ebx
call fcn.0042535e
lea ecx, [eax + 8]
mov eax, dword [ebp + 0x10]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [edi + 0x48]
and eax, dword [edi + 0x4c]
cmp eax, 0xffffffff
je 0x42446d
push ebx
call fcn.0042535e
mov ecx, dword [eax + 0xc]
cmp ecx, dword [edi + 0x4c]
jl 0x424453
jg 0x424408
mov eax, dword [eax + 8]
cmp eax, dword [edi + 0x48]
jbe 0x424453
push str.Data_overload__maybe_file_invalid_
lea ecx, [ebp - 0x3c]
call fcn.00402e51
xor ecx, ecx
mov dword [ebp - 4], 6
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
inc ecx
lea eax, [ebp - 0x3c]
call fcn.0041ec8f
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402b4a
push ebx
call fcn.0042535e
mov ecx, dword [edi + 0x48]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x4c]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
push ebx
call fcn.0042535e
mov ecx, dword [eax + 8]
cmp ecx, dword [edi + 0x48]
jne 0x42446d
mov eax, dword [eax + 0xc]
cmp eax, dword [edi + 0x4c]
je 0x42438d
xor eax, eax
inc eax
jmp 0x42453c
lea eax, [ebx + 1]
push eax
call fcn.0042535e
mov ecx, eax
mov eax, dword [ebp + 0x10]
cdq
mov ebx, edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
adc ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
cmp edx, ebx
jg 0x4244ed
jl 0x4244a4
mov ecx, dword [ecx]
cmp ecx, eax
ja 0x4244ed
mov eax, dword [ebp + 0x14]
inc eax
push eax
call fcn.0042535e
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
jl 0x4244c3
jg 0x4244bf
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x20]
jbe 0x4244c3
xor ebx, ebx
jmp 0x4244c6
xor ebx, ebx
inc ebx
push dword [ebp + 0x14]
call fcn.0042535e
mov ecx, dword [ebp - 0x18]
add eax, 8
add dword [eax], ecx
mov ecx, dword [ebp - 0x14]
adc dword [eax + 4], ecx
mov eax, dword [ebp + 0x18]
mov ecx, edi
mov byte [eax], 1
call fcn.00423c73
mov eax, ebx
jmp 0x42453c
push dword [ebp + 0x14]
call fcn.0042535e
mov ecx, dword [ebp - 0x18]
add eax, 8
add dword [eax], ecx
mov ecx, dword [ebp - 0x14]
adc dword [eax + 4], ecx
jmp 0x42446d
push str.open_datafile_error_when_write___
lea ecx, [ebp - 0x58]
call fcn.00402e51
mov dword [ebp - 4], 7
mov edx, dword [edi + 0xf4]
push 0xfffffffffffffffe
xor ecx, ecx
lea eax, [ebp - 0x58]
call fcn.0041ec8f
lea ecx, [ebp - 0x58]
push esi
push 1
call fcn.00402b4a
or eax, 0xffffffff
call fcn.00431e35
ret 0x14