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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41df77
sub esp, 0x74
lea eax, [0x52caa0]
mov dword [esp], eax
call fcn.0040a0a0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test ecx, ecx
jl 0x41da8d
mov dword [esp + 0x68], ecx
mov edx, dword [eax + 0x40]
mov dword [esp + 0x64], edx
mov ebx, eax
mov eax, edx
mov ebp, eax
mul ecx
mov dword [esp + 0x60], edx
mov esi, eax
shr eax, 1
mov edi, 0xa3d70a3e
mul edi
shr edx, 5
mov eax, edx
add edx, 0
mov dword [esp + 0x5c], edx
mov ebx, dword [ebx + 0x44]
mov dword [esp + 0x58], ebx
imul ebx, ecx
sar ecx, 0x1f
imul ecx, ebp
mov ebp, dword [esp + 0x60]
add ecx, ebp
add ecx, ebx
mov ebx, ecx
shr ecx, 1
mov ebp, eax
mov eax, ecx
mov ecx, edx
mul edi
shr edx, 5
mov dword [esp + 0x60], edx
imul edx, edx, 0x64
sub ebx, edx
mov eax, ebx
mov edx, 0x28f5c28
mul edx
mov dword [esp + 0x54], edx
add ecx, eax
imul edx, ebp, 0x64
sub esi, edx
lea edx, [ebx + ebx*2]
shl edx, 5
add edx, esi
shr edx, 1
mov ebx, eax
mov eax, edx
mul edi
shr edx, 5
mov esi, edx
add edx, ecx
mov edi, dword [esp + 0x64]
mov eax, edi
add edi, edx
mov dword [esp + 0x38], edi
add ebp, 0
mov ebp, dword [esp + 0x60]
adc ebp, 0
mov edi, dword [esp + 0x5c]
add edi, ebx
mov ebx, dword [esp + 0x54]
adc ebp, ebx
add esi, ecx
adc ebp, 0
add eax, edx
mov ecx, dword [esp + 0x58]
adc ebp, ecx
mov ecx, dword [esp + 0x68]
test ecx, ecx
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
jmp 0x41da97
mov ebp, 0xffffffff
mov edx, 0xffffffff
jl 0x41dadd
cvtsi2sd xmm0, ecx
movsd xmm1, qword [0x4bda2c]
divsd xmm0, xmm1
movsd xmm1, qword [0x4bd9f4]
mulsd xmm1, xmm0
movsd xmm2, qword [esp + 0x7c]
ucomisd xmm2, xmm1
ja 0x41dac5
movsd xmm1, xmm2
movsd xmm2, qword [0x4bd9e4]
mulsd xmm2, xmm0
ucomisd xmm2, xmm1
ja 0x41daf3
movsd xmm2, xmm1
jmp 0x41daf3
xorps xmm0, xmm0
movsd xmm1, qword [esp + 0x7c]
ucomisd xmm0, xmm1
jbe 0x41daef
xorps xmm1, xmm1
movsd xmm2, xmm1
movsd qword [eax + 0x10], xmm2
mov ecx, dword [eax]
test ecx, ecx
jge 0x41db0d
mov ecx, 0xffffffff
mov ebx, 0xffffffff
jmp 0x41dc4e
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], edx
movsd qword [esp + 0x6c], xmm2
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00458fd0
movsd xmm0, qword [0x4bd9fc]
movsd xmm1, qword [esp + 0x6c]
addsd xmm0, xmm1
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.00458f00
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x10], ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x14], ebp
call fcn.00420e50
movzx eax, byte [esp]
test al, al
je 0x41db88
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jmp 0x41dbd0
mov eax, dword [esp + 0x78]
lea ecx, [eax + 0x30]
mov dword [esp], ecx
call fcn.004024e0
mov eax, dword [esp + 4]
add eax, 0x100000
mov ecx, dword [esp + 8]
adc ecx, 0
mov edx, dword [esp + 0x24]
cmp edx, ecx
setb bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x20]
cmp eax, esi
xchg edi, ebx
seta bl
xchg edi, ebx
and edi, ebp
or ebx, edi
test bl, bl
jne 0x41dbd0
mov eax, esi
mov ecx, edx
mov edx, dword [esp + 0x14]
cmp ecx, edx
seta bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x10]
cmp eax, esi
xchg edi, ebx
seta bl
xchg edi, ebx
and edi, ebp
or ebx, edi
test bl, bl
je 0x41dbfb
mov edx, ecx
mov ebx, eax
jmp 0x41dc05
mov edx, ecx
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov eax, esi
test ecx, ecx
jl 0x41de0f
mov edx, dword [esp + 0x3c]
cmp edx, ecx
setb bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
mov esi, dword [esp + 0x50]
cmp esi, eax
xchg edi, ebx
setb bl
xchg edi, ebx
and edi, ebp
or edi, ebx
xchg edi, eax
test al, al
xchg edi, eax
je 0x41dc3a
mov edx, eax
mov ebx, ecx
jmp 0x41dc44
mov edx, eax
mov ebx, ecx
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov ebp, ecx
mov ecx, edx
mov edx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
lea esi, [eax + 0x20]
mov dword [esp], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], edx
call fcn.00402500
movzx eax, byte [0x5310c8]
test al, al
je 0x41dc7f
call fcn.00452da0
mov eax, dword [0x54ca94]
test eax, eax
je 0x41dc95
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0041ce70
call fcn.00420e50
movzx eax, byte [esp]
test al, al
je 0x41dcb2
xorps xmm0, xmm0
movsd qword [0x52cb68], xmm0
jmp 0x41de06
mov eax, dword [esp + 0x78]
add eax, 0x30
mov dword [esp], eax
call fcn.004024e0
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov edx, ecx
sub ecx, eax
mov ebx, ecx
add ecx, 0xfff00000
mov ebp, dword [esp + 8]
mov dword [esp + 0x2c], ebp
sub edx, eax
mov edx, dword [esp + 0x14]
sbb edx, ebp
add ebx, 0xfff00000
adc edx, 0xffffffff
test edx, edx
setl bl
xchg esi, ebx
sete bl
xchg esi, ebx
cmp ecx, 0x2000
xchg edi, ebx
setb bl
xchg edi, ebx
and edi, esi
or edi, ebx
xchg edi, eax
test al, al
xchg edi, eax
je 0x41dd1c
xor edx, edx
mov ecx, 0x2000
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea eax, [0x52cb50]
mov dword [esp], eax
call fcn.004024e0
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
lea edx, [0x52cb48]
mov dword [esp], edx
call fcn.004024e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
sub eax, ecx
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0x1c]
sbb edx, ebx
test edx, edx
xchg ebp, ebx
setl bl
xchg ebp, ebx
xchg esi, ebx
sete bl
xchg esi, ebx
test eax, eax
xchg edi, ebx
setbe bl
xchg edi, ebx
and edi, esi
or edi, ebp
xchg edi, eax
test al, al
xchg edi, eax
je 0x41dd94
xorps xmm0, xmm0
movsd qword [0x52cb68], xmm0
jmp 0x41de06
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00458f50
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x6c], xmm0
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00458f50
movsd xmm0, qword [esp + 0x6c]
divsd xmm0, qword [esp + 8]
movsd qword [0x52cb68], xmm0
mov eax, dword [esp + 0x2c]
mov dword [0x52cb64], eax
mov eax, dword [esp + 0x28]
mov dword [0x52cb60], eax
lea eax, [0x52cb58]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.00402500
call fcn.0041e250
add esp, 0x74
ret
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x58], edx
mov ebx, dword [eax + 0x40]
mov dword [esp + 0x54], ebx
mov ebp, dword [eax + 0x44]
mov dword [esp + 0x50], ebp
mov esi, dword [eax + 0x30]
mov dword [esp + 0x4c], esi
mov eax, dword [eax + 0x34]
mov dword [esp + 0x48], eax
mov edi, dword [0x54d4cc]
mov dword [esp + 0x44], edi
mov edi, dword [0x54d4d0]
mov dword [esp + 0x40], edi
call fcn.004360d0
lea eax, [0x4b3713]
mov dword [esp], eax
mov dword [esp + 4], 0x12
call fcn.004369a0
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b206a]
mov dword [esp], eax
mov dword [esp + 4], 0xc
call fcn.004369a0
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b4afe]
mov dword [esp], eax
mov dword [esp + 4], 0x17
call fcn.004369a0
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b30cf]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call fcn.004369a0
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b2649]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004369a0
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp], xmm0
call fcn.00436380
lea eax, [0x4b2082]
mov dword [esp], eax
mov dword [esp + 4], 0xc
call fcn.004369a0
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00436640
call fcn.004362e0
call fcn.00436130
lea eax, [0x4b33ee]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call fcn.00434a60
nop
call fcn.0045c4a0
jmp fcn.0041d990