Function at 0x41c0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
fldz
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], 0x4000
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x30], 0
mov edx, eax
and edx, 1
fstp qword [ebp - 0x38]
test al, 2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
je 0x41c47a
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x4389e0]
test eax, eax
je 0x41c15f
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, ecx
adc edx, ebx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov esi, edx
or esi, eax
je 0x41c145
xor ecx, ecx
xor ebx, ebx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00418f70
mov dword [ebp - 0x3c], eax
mov dword [esp], eax
call fcn.00418ff0
mov dword [ebp - 0x40], eax
mov ebx, dword [0x438afc]
mov ecx, dword [0x438af8]
mov eax, ebx
or eax, ecx
je 0x41c18d
xor eax, eax
fldz
mov dword [0x4386f0], eax
xor eax, eax
mov dword [0x4386f4], eax
fst qword [0x4386f8]
fstp qword [0x438700]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41c658
call fcn.0041a650
mov dword [ebp - 0x30], eax
fldz
mov ecx, dword [0x438af8]
mov ebx, dword [0x438afc]
fstp qword [ebp - 0x38]
mov eax, ebx
or eax, ecx
je 0x41c1c0
cmp ebx, 0
jle 0x41c67d
xor eax, eax
cmp dword [ebp - 0x44], 0
mov ecx, dword [ebp + 0x14]
mov edx, 1
sete al
cmp dword [ebp - 0x4c], ecx
jl 0x41c1f0
jg 0x41c367
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0x50], esi
jae 0x41c367
nop
lea esi, [esi]
or eax, edx
je 0x41c371
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x2c]
test eax, eax
je 0x41c232
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov esi, ebx
sub eax, dword [ebp - 0x50]
mov ecx, ebx
mov edx, dword [ebp + 0x14]
sbb edx, dword [ebp - 0x4c]
sar edi, 0x1f
cmp edx, edi
jl 0x41c230
jg 0x41c360
cmp eax, esi
ja 0x41c360
lea esi, [esi]
mov ebx, eax
fld qword [0x438ac0]
mov edi, dword [ebp - 0x40]
fld st(0)
test edi, edi
je 0x41c4a0
fstp st(1)
fld qword [str.ffffff]
fldz
fxch st(2)
fucomp st(2)
fnstsw ax
fstp st(1)
sahf
jp 0x41c560
jne 0x41c560
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov esi, 0x4342d0
fstp qword [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00401900
mov ebx, dword [ebp - 0x40]
mov edi, eax
test ebx, ebx
setne dl
shr eax, 0x1f
test edx, eax
jne 0x41c4c1
test edi, edi
jle 0x41c371
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x41c4a7
mov esi, dword [ebp - 0x30]
mov dword [esp], esi
call fcn.0041a6f0
fstp st(0)
test edi, edi
jle 0x41c310
mov dword [esp], esi
call fcn.0041a780
fstp qword [ebp - 0x38]
test edi, edi
jle 0x41c310
mov dword [ebp - 0x54], 0x4342d0
mov ebx, edi
mov edx, dword [ebp + 0xc]
sar ebx, 0x1f
add dword [ebp - 0x50], edi
mov ecx, edi
mov esi, edi
adc dword [ebp - 0x4c], ebx
test edx, edx
je 0x41c310
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp edx, ebx
jl 0x41c400
jg 0x41c2fd
cmp eax, edi
jbe 0x41c400
sub eax, ecx
sbb edx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov esi, esi
lea edi, [edi]
mov edx, dword [0x438afc]
mov eax, dword [0x438af8]
mov ecx, edx
or ecx, eax
jne 0x41c4d6
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41c1c0
mov ecx, dword [ebp - 0x30]
mov esi, edi
sar esi, 0x1f
mov dword [esp], ecx
call fcn.0041a780
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x3c]
fstp qword [esp + 0xc]
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.00419000
jmp 0x41c1c0
mov eax, ecx
jmp 0x41c230
xor edx, edx
or eax, edx
jne 0x41c1f8
cmp edi, 0xffffffff
jl 0x41c5b1
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x41c39b
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0041a780
mov edx, dword [ebp - 0x3c]
fstp qword [esp + 4]
mov dword [esp], edx
call fcn.00419010
mov ebx, dword [ebp + 0x28]
test ebx, ebx
je 0x41c3b2
mov ecx, dword [ebp - 0x30]
mov dword [esp], ecx
call fcn.0041a780
mov esi, dword [ebp + 0x28]
fstp qword [esi]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x41c3c4
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0041a6e0
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x41c3d9
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add dword [esi], edx
adc dword [esi + 4], ecx
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x41c3ee
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add dword [ecx], eax
adc dword [ecx + 4], edx
add esp, 0x8c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, edx
or ecx, eax
je 0x41c430
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
lea esi, [eax + 0x4342d0]
mov dword [ebp - 0x54], esi
mov esi, edi
sub esi, eax
je 0x41c310
mov dword [esp + 8], esi
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.cygwin1.dll_fwrite
mov eax, esi
mov ecx, dword [ebp + 0xc]
cdq
add dword [ebp - 0x28], esi
mov dword [esp], ecx
adc dword [ebp - 0x24], edx
call sub.cygwin1.dll_fflush
mov esi, dword [ebp + 0xc]
test byte [esi + 0xc], 0x40
je 0x41c310
mov edi, 0xfffffffe
jmp 0x41c37a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x41c11a
fstp st(0)
lea esi, [esi]
lea edi, [edi]
fstp st(0)
jmp 0x41c264
mov edx, dword [0x438afc]
mov eax, dword [0x438af8]
mov ecx, edx
or ecx, eax
je 0x41c2c4
jmp 0x41c2a8
call sub.cygwin1.dll___errno
cmp dword [eax], 0x74
jne 0x41c295
xor edi, edi
jmp 0x41c29d
mov eax, dword [ebp - 0x30]
mov esi, edi
sar esi, 0x1f
mov ebx, esi
mov dword [esp], eax
call fcn.0041a780
mov ecx, edi
add ecx, dword [0x4386f0]
fild qword [0x438af8]
fxch st(1)
fsub qword [0x4386f8]
adc ebx, dword [0x4386f4]
push ebx
push ecx
fild qword [esp]
add esp, 8
fmul dword [0x42ec80]
fdivrp st(2)
fxch st(1)
fucom st(1)
fnstsw ax
sahf
jbe 0x41c64e
fld dword [0x42ec84]
fxch st(1)
mov dword [0x4386f0], ecx
fsub st(2)
mov dword [0x4386f4], ebx
fadd qword [0x438700]
fxch st(1)
fucomp st(1)
fnstsw ax
fstp qword [ebp - 0x60]
sahf
jbe 0x41c5bb
mov eax, dword [0x438b14]
test eax, eax
jne 0x41c699
fstp st(0)
jmp 0x41c325
fstp qword [ebp - 0x78]
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0041a780
fld qword [ebp - 0x78]
fxch st(1)
fsub qword [ebp - 0x38]
fld qword [0x438ac0]
fxch st(1)
fdiv dword [0x42ec80]
fld st(0)
fadd st(3)
fucomp st(2)
fnstsw ax
sahf
jbe 0x41c490
fstp st(2)
fsubrp st(1)
fldz
fucomp st(1)
fnstsw ax
sahf
jbe 0x41c264
fstp st(0)
call sub.cygwin1.dll___errno
mov dword [eax], 0x74
mov edi, 0xffffffff
jmp 0x41c37a
fstp st(0)
mov eax, dword [0x438b14]
test eax, eax
jne 0x41c6cd
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.0041a780
fstp qword [ebp - 0x68]
fld qword [ebp - 0x60]
fdiv dword [0x42ec80]
fstp qword [esp]
call fcn.00422200
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
call fcn.0041a6f0
fsub qword [ebp - 0x68]
fld dword [0x42ec88]
fxch st(1)
fsubr qword [ebp - 0x60]
fucom st(1)
fnstsw ax
sahf
ja 0x41c654
fstp st(1)
fld dword [0x42ec8c]
fxch st(1)
fst qword [0x438700]
fxch st(1)
fucom st(1)
fnstsw ax
fstp st(1)
sahf
jbe 0x41c650
fstp qword [0x438700]
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [0x4386f0], eax
xor eax, eax
mov dword [0x4386f4], eax
mov dword [esp], edx
call fcn.0041a780
fstp qword [0x4386f8]
jmp 0x41c325
fstp st(0)
fstp st(0)
jmp 0x41c62a
fstp st(0)
jmp 0x41c624
mov eax, dword [0x438afc]
or eax, dword [0x438af8]
mov eax, dword [ebp + 0x28]
setne dl
test eax, eax
setne al
or eax, edx
test al, 1
je 0x41c1b1
jmp 0x41c198
jl 0x41c68b
cmp ecx, 0x4000
jae 0x41c1c0
mov edx, dword [0x438af8]
mov dword [ebp - 0x2c], edx
jmp 0x41c1c0
fstp qword [ebp - 0x78]
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.00421ea0
fld qword [ebp - 0x78]
fld qword [ebp - 0x60]
fxch st(1)
mov dword [esp + 0xc], eax
mov dword [esp], str.deferring_a__.2f_ms_sleep___s__.2f_._n
fstp qword [esp + 0x10]
fstp qword [esp + 4]
call fcn.004174e0
jmp 0x41c325
mov edx, dword [0x4386f4]
mov eax, dword [0x4386f0]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00421ea0
fld qword [0x438700]
fld qword [ebp - 0x60]
fxch st(1)
mov dword [esp + 0xc], eax
mov dword [esp], str._nsleeping__.2f_ms_for__s_bytes__adjust__.2f_ms_n
fstp qword [esp + 0x10]
fstp qword [esp + 4]
call fcn.004174e0
jmp 0x41c5ca