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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x28
mov esi, dword [ebx + 4]
call fcn.0046ed00
lea ecx, [esi + 7]
mov edi, eax
and ecx, 0xfffffff8
mov dword [esp + 0x10], edi
add esp, 4
cmp dword [ebx + 0xc4], 0
lea eax, [ecx*4 + 0x100]
mov dword [esp + 0x10], eax
jbe 0x41d31d
xor esi, esi
xor edi, edi
mov eax, dword [ebx + 0xbc]
push 4
mov dword [eax + esi + 0x34], 1
call fcn.0046ed00
mov ecx, dword [ebx + 0xbc]
push dword [esp + 0x14]
mov dword [ecx + esi + 0x38], eax
call fcn.0046ed00
mov ecx, dword [ebx + 0xbc]
lea esi, [esi + 0xc8]
inc edi
add esp, 8
mov ecx, dword [ecx + esi - 0x90]
mov dword [ecx], eax
cmp edi, dword [ebx + 0xc4]
jb 0x41d2d0
mov edi, dword [esp + 0xc]
test byte [ebx + 0x10], 0x40
je 0x41d379
push 0xc8
call fcn.0046ed00
mov esi, eax
push 0
push 0
lea ecx, [esi + 0x78]
push ecx
lea ecx, [ebx + 0x44]
push ecx
call fcn.0045c7c0
push 0
push 0
lea eax, [esi + 0x3c]
push eax
lea eax, [ebx + 0x80]
push eax
call fcn.0045c7c0
push 4
mov dword [esi + 0x34], 1
call fcn.0046ed00
push dword [esp + 0x38]
mov dword [esi + 0x38], eax
call fcn.0046ed00
mov ecx, dword [esi + 0x38]
add esp, 0x2c
mov dword [ecx], eax
mov dword [edi + 0x24], esi
mov eax, dword [ebx + 0x18]
cdq
idiv dword [ebx + 0x1c]
mov ecx, dword [esp + 0xc]
mov edi, eax
movsd xmm0, qword [0x4c1050]
test edi, edi
mov eax, 1
cmove edi, eax
mov eax, edi
imul eax, edi
mov dword [ecx + 8], eax
add eax, eax
mov dword [ecx], eax
mov eax, dword [ebx + 0x1c]
cdq
idiv dword [ebx + 0x18]
mov esi, eax
mov eax, 1
test esi, esi
cmove esi, eax
mov eax, dword [esp + 0xc]
mov ecx, esi
imul ecx, esi
mov dword [eax + 0xc], ecx
add ecx, ecx
mov dword [eax + 4], ecx
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
imul esi, edi
movaps xmm1, xmm0
mulsd xmm1, qword [0x4c34a0]
mov dword [esp + 0x10], 0
mulsd xmm0, qword [0x4c34a8]
mulsd xmm1, qword [0x4c09d0]
mulsd xmm0, qword [0x4c09d0]
movd xmm3, esi
cvtdq2pd xmm3, xmm3
mov esi, dword [esp + 0xc]
mov dword [esi + 0x10], 0
divsd xmm1, xmm3
divsd xmm0, xmm3
cvttsd2si eax, xmm1
mov dword [esi + 0x14], eax
cvttsd2si eax, xmm0
mov dword [esi + 0x18], eax
cmp dword [ebx + 0xc4], 0
jbe 0x41d4f2
movsd xmm0, qword [0x4c3498]
xor edi, edi
mov dword [esp + 0x14], edi
movsd qword [esp + 0x18], xmm0
push 0x2c
call fcn.0046ed00
movq xmm0, qword [esi + 8]
mov dword [esp + 0x10], eax
movq qword [eax], xmm0
mov ecx, dword [esi + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 4]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
call fcn.0046e570
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0xbc]
movsd xmm0, qword [eax + edi + 0x10]
xor eax, eax
comisd xmm0, xmmword [esp + 0x18]
seta al
xor edi, edi
mov dword [ecx + 0x28], eax
cmp dword [ebx + 4], edi
jle 0x41d4c2
xor edx, edx
nop dword [eax + eax]
mov ecx, dword [ecx + 0xc]
lea edx, [edx + 0xc]
movq xmm0, qword [esi + 8]
inc edi
movq qword [ecx + edx - 0xc], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx + edx - 4], eax
mov ecx, dword [esp + 0xc]
cmp edi, dword [ebx + 4]
jl 0x41d4a0
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0xbc]
mov dword [eax + edi + 0xc0], ecx
add edi, 0xc8
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 0xc4]
jb 0x41d445
cmp dword [esi + 0x24], 0
je 0x41d55f
push 0x2c
call fcn.0046ed00
movq xmm0, qword [esi + 8]
mov dword [esp + 0x10], eax
movq qword [eax], xmm0
mov ecx, dword [esi + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 4]
lea ecx, [ecx + ecx*2]
shl ecx, 2
push ecx
call fcn.0046e570
mov ecx, dword [esp + 0x14]
xor edi, edi
add esp, 8
mov dword [ecx + 0xc], eax
cmp dword [ebx + 4], edi
jle 0x41d556
xor edx, edx
mov ecx, dword [ecx + 0xc]
lea edx, [edx + 0xc]
movq xmm0, qword [esi + 8]
inc edi
movq qword [ecx + edx - 0xc], xmm0
mov eax, dword [esi + 0x10]
mov dword [ecx + edx - 4], eax
mov ecx, dword [esp + 0xc]
cmp edi, dword [ebx + 4]
jl 0x41d534
mov eax, dword [esi + 0x24]
mov dword [eax + 0xc0], ecx
mov eax, dword [ebx + 0x1c]
cdq
idiv dword [ebx + 0x18]
cmp eax, 4
jl 0x41d579
mov dword [esi + 0x1c], 4
mov eax, 0x20
jmp 0x41d598
cmp eax, 2
jl 0x41d58c
mov dword [esi + 0x1c], 2
mov eax, 0x10
jmp 0x41d598
mov dword [esi + 0x1c], 1
mov eax, 0xa
mov dword [esi + 0x20], eax
pop edi
mov dword [ebx + 0xd4], esi
pop esi
mov dword [ebx + 0xd8], 0x41d660
pop ebx
mov esp, ebp
pop ebp
ret