Function at 0x41c840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41cbf4
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.0041d460
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x128f0cc], eax
mov dword [0x128f0c8], ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc8]
mov edx, dword [eax + 0xcc]
mov ebx, dword [esp + 0x6c]
sub ebx, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x70]
sbb ecx, edx
mov dword [esp + 0x2c], ecx
test ecx, ecx
sete dl
xchg ebp, ebx
setg bl
xchg ebp, ebx
test ebx, ebx
xchg esi, ebx
seta bl
xchg esi, ebx
and esi, edx
or ebp, esi
xchg ebp, eax
mov byte [esp + 0x17], al
xchg ebp, eax
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x41c8cf
movsd xmm1, qword [0xf90adc]
jmp 0x41c958
mov ecx, eax
mov eax, ebx
mov edx, dword [esp + 0x74]
mul edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
lea esi, [ecx + 0xa8]
mov dword [esp], esi
call fcn.00402090
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00451970
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x4c], xmm0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x74]
imul ecx, edx
mov ebp, dword [esp + 0x38]
add ecx, ebp
sar edx, 0x1f
mov esi, dword [esp + 0x28]
imul edx, esi
add ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.00451970
movsd xmm0, qword [esp + 0x4c]
divsd xmm0, qword [esp + 8]
movsd xmm1, qword [0xf90adc]
addsd xmm1, xmm0
mov eax, dword [esp + 0x68]
movsd qword [esp + 0x3c], xmm1
lea ecx, [eax + 0x50]
mov dword [esp + 0x60], ecx
mov dword [esp], ecx
call fcn.00402210
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 0x40], eax
setae al
mov edx, dword [esp + 8]
mov ebx, dword [ecx + 0x44]
cmp edx, ebx
sete dl
setb bl
and edx, eax
or ebx, edx
test bl, bl
jne 0x41cbf0
movzx edx, byte [esp + 0x17]
test dl, dl
jne 0x41c9a4
xorps xmm0, xmm0
jmp 0x41ca21
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x74]
mul edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], eax
lea esi, [ecx + 0xc0]
mov dword [esp], esi
call fcn.00402090
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00451970
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x4c], xmm0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x74]
imul ecx, edx
mov ebx, dword [esp + 0x38]
add ecx, ebx
sar edx, 0x1f
mov ebx, dword [esp + 0x28]
imul ebx, edx
add ecx, ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
call fcn.00451970
movsd xmm0, qword [esp + 0x4c]
divsd xmm0, qword [esp + 8]
mov ecx, dword [esp + 0x68]
movsd qword [esp + 0x44], xmm0
lea eax, [ecx + 0x88]
mov dword [esp + 0x5c], eax
mov dword [esp], eax
call fcn.00402090
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x68]
lea ebx, [edx + 0x90]
mov dword [esp + 0x58], ebx
mov dword [esp], ebx
call fcn.00402090
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x1c]
adc eax, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x68]
lea ebx, [ecx + 0x98]
mov dword [esp + 0x54], ebx
mov dword [esp], ebx
call fcn.00402090
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x38]
add eax, edx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x30]
adc edx, ecx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
call fcn.00402210
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x40]
mov ebp, dword [edx + 0x44]
sub eax, ebx
sbb ecx, ebp
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00451a40
movsd xmm0, qword [esp + 0x3c]
movsd xmm1, qword [esp + 0x44]
addsd xmm1, xmm0
mulsd xmm1, qword [esp + 8]
movsd qword [esp + 0x4c], xmm1
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00451970
movsd xmm0, qword [0xf90b44]
movsd xmm1, qword [esp + 0x3c]
subsd xmm0, xmm1
mulsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x4c]
divsd xmm1, xmm0
mov eax, dword [esp + 0x68]
movsd xmm0, qword [eax + 0x28]
addsd xmm0, xmm1
movsd xmm2, qword [0xf90b0c]
mulsd xmm2, xmm0
movsd qword [eax + 0x20], xmm2
movsd qword [eax + 0x28], xmm1
mov ecx, dword [0x128e590]
test ecx, ecx
jle 0x41cbec
call fcn.00432d70
nop
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00402090
nop
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.00402090
nop
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00402090
nop
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x68]
mov dword [esp], ecx
call fcn.00402210
nop
mov eax, dword [esp + 0x68]
add eax, 0x78
mov dword [esp], eax
call fcn.00402210
nop
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00402210
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
nop
movzx ecx, byte [eax + 0x8b]
lea edx, [ecx - 1]
mov byte [eax + 0x8b], dl
cmp cl, 1
jne 0x41cbec
nop
lea eax, [0x128dafc]
mov dword [esp], eax
call fcn.00409150
add esp, 0x64
ret
add esp, 0x64
ret
call fcn.00457160
jmp fcn.0041c840