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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415bdd
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x2c], xmm3
movss dword [ebp - 0x30], xmm2
mov esi, ecx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x34], ebx
mov dword [esi + 0x88], 0
call fcn.004072d0
cmp dword [esi + 0x84], 0
je 0x401c51
movss xmm0, dword [ebp - 0x30]
movss dword [ebp - 0x90], xmm0
movss xmm0, dword [ebp - 0x2c]
movss dword [ebp - 0x8c], xmm0
movss xmm0, dword [ebp + 0xc]
movss dword [ebp - 0x88], xmm0
movss xmm0, dword [ebp + 0x10]
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp + 0x14]
mov dword [ebp - 0x84], 0x3f800000
movss dword [ebp - 0x74], xmm0
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
dec ecx
and ecx, dword [esi + 0x80]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x28]
call fcn.00401ce0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.00401ce0
mov eax, dword [esi + 0x18]
lea edi, [ebp - 0x58]
mov ebx, dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x58]
xorps xmm1, xmm1
movss xmm4, dword [esi + 0x88]
xorps xmm5, xmm5
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movss dword [ebp - 0x2c], xmm1
addsd xmm0, qword [eax*8 + 0x41e280]
mov eax, dword [esi + 0x1c]
mulsd xmm0, qword [0x41dfc8]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
shr eax, 0x1f
cmp ebx, 0xf
cvtdq2pd xmm0, xmm0
cmova edi, edx
movss dword [ebp - 0x40], xmm3
addsd xmm0, qword [eax*8 + 0x41e280]
seta al
test al, al
mov eax, dword [ebp - 0x48]
cmovne ecx, edx
mulsd xmm0, qword [0x41dfc8]
add eax, ecx
cvtpd2ps xmm2, xmm0
movss dword [ebp - 0x30], xmm2
cmp edi, eax
je 0x401a60
movaps xmm0, xmm3
movss dword [ebp - 0x7c], xmm4
mulss xmm0, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp - 0x60], 0
movss dword [ebp - 0x68], xmm3
movss dword [ebp - 0x64], xmm2
mov dword [ebp - 0x5c], 0
movss dword [ebp - 0x3c], xmm0
mov cl, byte [edi]
addss xmm1, xmm5
mov al, cl
sar cl, 4
and al, 0xf
movzx eax, al
movss dword [ebp - 0x80], xmm1
movd xmm1, eax
movsx eax, cl
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x90]
push eax
push ecx
mov dword [esp], 0
lea eax, [ebp - 0x60]
push eax
cvtdq2ps xmm0, xmm0
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
mulss xmm1, xmm3
push eax
mulss xmm0, xmm2
lea eax, [ebp - 0x80]
push eax
movss dword [ebp - 0x70], xmm1
movss dword [ebp - 0x6c], xmm0
call fcn.004073b0
movss xmm1, dword [ebp - 0x3c]
inc edi
movss xmm2, dword [ebp - 0x30]
xorps xmm5, xmm5
movss xmm3, dword [ebp - 0x40]
addss xmm1, dword [ebp - 0x2c]
movss dword [ebp - 0x2c], xmm1
cmp edi, ebx
jne 0x4019d3
mov ebx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
cmp ebx, 0xf
jbe 0x401a90
lea ecx, [ebx + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c3e
push ecx
push edx
call fcn.0040acc9
add esp, 8
movss xmm0, dword [ebp - 0x30]
mulss xmm0, dword [ebp + 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
addss xmm0, dword [esi + 0x88]
movss dword [esi + 0x88], xmm0
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
dec ecx
and ecx, dword [esi + 0x80]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x401aff
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x401af5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c3e
mov eax, edx
push ecx
push eax
call fcn.0040acc9
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [esi + 0x84]
sub ecx, 1
mov dword [esi + 0x84], ecx
jne 0x401b2f
mov dword [esi + 0x80], 0
xor eax, eax
jmp 0x401b3b
inc dword [esi + 0x80]
mov eax, dword [esi + 0x80]
movd xmm1, dword [esi + 0x8c]
movss xmm0, dword [esi + 0x88]
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
ja 0x401ba0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x401b8e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b84
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c3e
push ecx
push edx
call fcn.0040acc9
add esp, 8
cmp dword [esi + 0x84], 0
jne 0x4018f2
jmp 0x401c4e
test ecx, ecx
je 0x401c11
mov ecx, dword [esi + 0x7c]
dec ecx
and ecx, eax
mov eax, dword [esi + 0x78]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x14]
cmp ecx, 0xf
jbe 0x401bdf
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x401bd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c3e
mov eax, edx
push ecx
push eax
call fcn.0040acc9
add esp, 8
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
add dword [esi + 0x84], 0xffffffff
je 0x401c07
inc dword [esi + 0x80]
mov eax, dword [esi + 0x80]
jmp 0x401ba4
mov dword [esi + 0x80], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x401c4e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401c44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c44
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040acc9
add esp, 8
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
push 0
push dword [esi + 0x50]
push ebx
call dword [eax + 0x3c]
mov eax, dword [ebx]
push 0
push 0
push dword [esi + 0x6c]
push 4
push ebx
call dword [eax + 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ac8b
mov esp, ebp
pop ebp
ret 0x10