Function at 0x439360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ad234]
mov ecx, dword [0x4ad100]
sub ecx, eax
mov eax, dword [0x4ad458]
imul eax, ecx
mov dword [0x4ad458], eax
dec dword [0x4ad234]
dec dword [0x4ad100]
movsd xmm0, qword [0x4ad4e0]
addsd xmm0, qword [0x49eff0]
movsd qword [0x4ad4e0], xmm0
movsd xmm1, qword [0x4ad4e0]
movsd xmm0, qword [0x4ad4e0]
mov eax, dword [0x4ad050]
subsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [0x4ad050], eax
movsd xmm0, qword [0x4ad4e0]
cmp dword [0x4aeab8], 0
addsd xmm0, qword [0x49eff0]
movsd qword [0x4ad4e0], xmm0
jne 0x439456
movsx eax, word [0x4ad45c]
dec word [0x4ad45c]
cmp eax, 0xf569e428
je 0x439410
mov eax, 0x8f2
mov word [0x4ad4c8], ax
call fcn.00445130
movsd xmm1, qword [0x4ad548]
subsd xmm1, qword [0x49f630]
movsd xmm0, qword [0x4ad128]
mov dword [0x4aeab8], eax
mulsd xmm0, xmm1
movsd qword [0x4ad128], xmm0
movsd xmm0, qword [0x4ad548]
subsd xmm0, qword [0x49eff0]
movsd qword [0x4ad548], xmm0
movss xmm0, dword [0x4ad078]
mulss xmm0, dword [0x4a279c]
push esi
push edi
push 3
push 0x36c5
movss dword [0x4ad078], xmm0
call fcn.0043d340
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.00459d92
movsd xmm0, qword [0x4ad2b0]
mov edi, eax
mulsd xmm0, qword [0x49f388]
push esi
push 3
movsd qword [0x4ad2b0], xmm0
call fcn.0041f300
movss xmm0, dword [0x4ad04c]
add esp, 0x18
mulss xmm0, dword [0x4a1808]
movss dword [0x4ad04c], xmm0
test edi, edi
jne 0x4395ce
movsx eax, word [0x4ad610]
movsd xmm0, qword [0x4ad290]
movsd xmm1, qword [0x4a2048]
subsd xmm1, xmm0
movd xmm2, eax
cvtdq2pd xmm2, xmm2
push 0x3e8
subsd xmm2, xmm1
cvttsd2si eax, xmm2
mov word [0x4ad610], ax
movsd xmm0, qword [0x4ad290]
addsd xmm0, qword [0x49eff0]
movsd qword [0x4ad290], xmm0
call dword [0x4ae36c]
movsd xmm1, qword [0x4ad190]
movsd xmm0, qword [0x4ad590]
movsx eax, word [0x4ad5b4]
addsd xmm1, xmm0
sub eax, 0x58c51559
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x439558
add dword [0x4ad40c], 0xf3a12174
push 3
push 0x36c5
call fcn.0043d340
movsd xmm0, qword [0x49f7b8]
mov esi, eax
push esi
push dword [ebp + 8]
movsd qword [0x4ad558], xmm0
call fcn.00459d92
mov edi, eax
mov eax, 0xffffd53a
push esi
push 3
mov word [0x4ad598], ax
call fcn.0041f300
movsd xmm0, qword [0x4ad178]
add esp, 0x18
movsd xmm2, qword [0x49eff0]
addsd xmm0, xmm2
movsd qword [0x4ad178], xmm0
movsd xmm0, qword [0x4ad178]
addsd xmm0, qword [0x4a07f8]
cvttsd2si eax, xmm0
mov dword [0x4ad68c], eax
jmp 0x4395d6
movsd xmm2, qword [0x49eff0]
movsd xmm0, qword [0x4ad3c8]
subsd xmm0, qword [0x4a1f50]
movsd qword [0x4ad3c8], xmm0
test edi, edi
je 0x4396ab
movss xmm0, dword [0x4ad314]
cvtps2pd xmm1, xmm0
push edi
push 1
push 4
push 0x4aeab8
movsd xmm0, qword [0x4ad3f8]
addsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [0x4ad264], eax
movss xmm0, dword [0x4ad314]
subss xmm0, dword [0x49efec]
movss dword [0x4ad314], xmm0
movsd xmm0, qword [0x4ad3f8]
subsd xmm0, xmm2
movsd qword [0x4ad3f8], xmm0
call fcn.0045a0be
movzx eax, word [0x4ad248]
add eax, 0x514ce19b
push edi
mov word [0x4ad248], ax
call fcn.004597a3
movzx eax, word [0x4ad434]
add esp, 0x14
mov ecx, dword [0x4ad2ac]
movss xmm1, dword [0x4ad500]
cwde
add ecx, eax
movsx eax, word [0x4ad62c]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov word [0x4ad62c], ax
imul eax, dword [0x4ad2ac], 0xd8bc37c9
pop edi
pop esi
mov dword [0x4ad2ac], eax
pop ebp
ret