Function at 0x416190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push esi
push edi
movsx eax, word [0x44f09c]
mov dword [ebp - 0x444], eax
fild dword [ebp - 0x444]
mov ecx, dword [0x44f0e8]
mov dword [ebp - 0x448], ecx
fild dword [ebp - 0x448]
fadd qword [0x44f510]
fsubrp st(1)
fld qword [0x44f3b8]
fsubr qword [0x44f208]
mov dx, word [0x44f09c]
add dx, 1
mov word [0x44f09c], dx
fld qword [0x44f208]
fadd qword [0x4492e8]
fstp qword [0x44f208]
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x416218
movsx eax, word [0x44f4bc]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd qword [0x44f110], xmm0
mov ecx, dword [ebp + 8]
call fcn.0041c9d0
cmp eax, 0x8000
jbe 0x41657e
fld dword [0x44f424]
fadd dword [0x44f364]
fstp dword [0x44f424]
fld dword [0x44f228]
fmul qword [0x449a98]
fstp dword [0x44f228]
lea ecx, [ebp - 0x130]
push ecx
call fcn.0041c3f0
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [0x44f414]
sub edx, 0x7763160e
mov dword [0x44f414], edx
call fcn.0041c4a0
movzx eax, al
and eax, 0x80000003
jns 0x416287
dec eax
or eax, 0xfffffffc
inc eax
add eax, 7
push eax
mov ecx, dword [ebp - 0x10]
lea edx, [ebp + ecx - 0x130]
push edx
call fcn.004088e0
add esp, 8
push 5
push 0x89a
call fcn.0041a2a0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], ecx
mov edx, dword [ebp - 0x44c]
mov al, byte [edx]
mov byte [ebp - 0x451], al
add dword [ebp - 0x44c], 1
cmp byte [ebp - 0x451], 0
jne 0x4162c5
mov ecx, dword [ebp - 0x44c]
sub ecx, dword [ebp - 0x450]
mov edx, dword [ebp - 0x450]
mov dword [ebp - 0x458], edx
mov dword [ebp - 0x45c], ecx
lea eax, [ebp - 0x130]
add eax, 0xffffffff
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x460]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x461], dl
add dword [ebp - 0x460], 1
cmp byte [ebp - 0x461], 0
jne 0x416310
mov edi, dword [ebp - 0x460]
mov esi, dword [ebp - 0x458]
mov eax, dword [ebp - 0x45c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 3
push 0x311c
call fcn.0041a2a0
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 5
call fcn.00404630
add esp, 8
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x130]
push eax
call fcn.0041ec3c
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
push 3
call fcn.00404630
add esp, 8
cmp dword [ebp - 0x14], 0
je 0x416568
mov edx, dword [ebp - 0x14]
push edx
push 1
mov ecx, dword [ebp + 8]
call fcn.0041c9d0
push eax
mov ecx, dword [ebp + 8]
call fcn.00402e40
push eax
call fcn.0041f84f
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041f684
add esp, 4
mov ecx, dword [ebp + 8]
call fcn.004086e0
fld qword [0x44f3e0]
fadd qword [0x449a90]
fstp qword [0x44f3e0]
mov byte [ebp - 0x33c], 0
push 0x104
lea ecx, [ebp - 0x440]
push ecx
push 0
call dword [0x450b8c]
mov byte [ebp - 0x131], 0
push 0x15
push 0x26ae
call fcn.0041a2a0
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [0x450f40]
push edx
mov eax, dword [0x450f9c]
push eax
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0x207
lea eax, [ebp - 0x338]
push eax
call fcn.0041e50a
add esp, 0x18
mov ecx, dword [ebp - 8]
push ecx
push 0x15
call fcn.00404630
add esp, 8
mov edx, dword [0x450f40]
push edx
call fcn.0040a700
add esp, 4
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.00409a80
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x338]
push edx
call fcn.0041e280
add esp, 0xc
movsx eax, word [0x44f394]
mov dword [ebp - 0x468], eax
fild dword [ebp - 0x468]
fld qword [0x44f2a0]
fsubr qword [0x449a88]
fsubrp st(1)
fld dword [0x44f02c]
movsx ecx, word [0x44f1c0]
mov dword [ebp - 0x46c], ecx
fiadd dword [ebp - 0x46c]
fadd qword [0x449a80]
mov dx, word [0x44f394]
add dx, 1
mov word [0x44f394], dx
fld qword [0x44f2a0]
fsub qword [0x4492e8]
fstp qword [0x44f2a0]
mov ax, word [0x44f1c0]
add ax, 1
mov word [0x44f1c0], ax
fcompi st(1)
fstp st(0)
jb 0x41653a
mov ecx, dword [0x44f128]
mov dword [ebp - 0x470], ecx
fild dword [ebp - 0x470]
fadd qword [0x44f2e0]
call fcn.0041e330
mov dword [0x44f128], eax
fld qword [0x44f2e0]
fadd qword [0x4492e8]
fstp qword [0x44f2e0]
push 0x105
push 0
lea edx, [ebp - 0x440]
push edx
call fcn.0041e280
add esp, 0xc
push 0x15f90
call dword [0x450ba0]
lea eax, [ebp - 0x130]
push eax
call dword [0x4511f0]
push 0x118
push 0
lea ecx, [ebp - 0x130]
push ecx
call fcn.0041e280
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret