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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
push edi
push 0x4c3490
push dword [ebp + 8]
call fcn.0046f500
mov edi, eax
mov dword [esp + 0x1c], edi
mov esi, dword [edi + 0xc4]
mov ecx, esi
shr ecx, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ecx*8 + 0x4c0ec0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
call fcn.004b63f1
xor edx, edx
mov dword [esp + 0x24], 0
lea ecx, [eax + 1]
mov eax, dword [edi + 0x4c]
div ecx
xor edx, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x50]
div ecx
xor ecx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
test esi, esi
je 0x45cd5d
xor esi, esi
nop word [eax + eax]
mov ebx, dword [edi + 0xbc]
cmp dword [esi + ebx + 0x64], 0
je 0x45cd12
mov eax, dword [esi + ebx + 0x74]
test eax, eax
je 0x45cd12
push eax
call fcn.0046e3b0
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [esi + ebx + 0x74], 0
inc ecx
mov dword [esi + ebx + 0x3c], 0
mov dword [esi + ebx + 0x40], 0
mov dword [esi + ebx + 0x44], 0
mov dword [esi + ebx + 0x48], 0
mov dword [esi + ebx + 0x4c], 0
mov dword [esi + ebx + 0x64], 0
add esi, 0xc8
mov dword [esp + 0x20], ecx
cmp ecx, dword [edi + 0xc4]
jb 0x45ccf0
cmp dword [edi + 0xa8], 0
je 0x45cd79
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x45cd79
push eax
call fcn.0046e3b0
add esp, 4
mov dword [edi + 0xb8], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0xa8], 0
mov eax, dword [edi + 0x44]
mov dword [edi + 0x80], eax
mov eax, dword [edi + 0x48]
mov dword [edi + 0x84], eax
mov edx, dword [edi + 0x4c]
mov dword [edi + 0x88], edx
mov ecx, dword [edi + 0x50]
mov dword [edi + 0x8c], ecx
mov eax, dword [edi + 0x54]
imul ecx, edx
mov dword [edi + 0x90], eax
shl ecx, 2
push ecx
call fcn.0046e570
mov edx, edi
add esp, 4
xor esi, esi
mov dword [edx + 0xb8], eax
mov eax, dword [edx + 0x8c]
imul eax, dword [edx + 0x88]
test eax, eax
jle 0x45ce41
nop word [eax + eax]
mov eax, dword [edx + 0x7c]
mov ecx, dword [edx + 0xb8]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [edx + 0x8c]
imul eax, dword [edx + 0x88]
cmp esi, eax
jl 0x45ce20
movsd xmm1, qword [ebp + 0xc]
movsd xmm0, qword [0x4e5e50]
comisd xmm0, xmm1
mov dword [edx + 0xac], 0
mov dword [edx + 0xb0], 0
mov dword [edx + 0x94], 0
mov dword [edx + 0x98], 0
mov dword [edx + 0x9c], 0
mov dword [edx + 0xa0], 0
mov dword [edx + 0xa4], 0
mov eax, dword [edx + 0x78]
mov dword [edx + 0xb4], eax
mov dword [edx + 0xa8], 1
movsd qword [edx + 0x20], xmm1
ja 0x45cebc
comisd xmm1, xmmword [0x4e5e58]
jbe 0x45cf18
mov ebx, dword [edx + 0x8c]
xor edi, edi
imul ebx, dword [edx + 0x88]
test ebx, ebx
jle 0x45cf18
nop
mov esi, dword [edx + 0xb8]
mov eax, dword [esi + edi*4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c0ec0]
divsd xmm0, qword [0x4c0eb0]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mulsd xmm0, qword [0x4c0eb0]
call fcn.004b63f1
movsd xmm1, qword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov dword [esi + edi*4], eax
inc edi
cmp edi, ebx
jl 0x45ced0
mov ebx, dword [esp + 0x34]
test ebx, ebx
je 0x45d038
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], eax
xor esi, esi
mov dword [esp + 0x30], ebx
xor eax, eax
mov dword [esp + 0x2c], ebx
imul ecx, esi, 0xc8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
nop dword [eax + eax]
cmp esi, dword [edx + 0xc4]
jae 0x45d00a
mov ebx, dword [edx + 0xbc]
mov eax, dword [edx + 0x44]
mov dword [ebx + ecx + 0x3c], eax
mov eax, dword [edx + 0x48]
mov dword [ebx + ecx + 0x40], eax
mov edi, dword [edx + 0x4c]
mov dword [ebx + ecx + 0x44], edi
mov esi, dword [edx + 0x50]
mov dword [ebx + ecx + 0x48], esi
mov eax, dword [edx + 0x54]
mov dword [ebx + ecx + 0x4c], eax
mov eax, dword [edx + 0x7c]
mov edx, dword [esp + 0x20]
mov dword [ebx + ecx + 0x74], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + ecx + 0x6c], eax
mov eax, edx
mov dword [ebx + ecx + 0x68], edx
cdq
idiv edi
mov eax, dword [esp + 0x18]
mov dword [ebx + ecx + 0x50], 0
mov ecx, edx
mov dword [ebx + eax + 0x54], ecx
mov dword [ebx + eax + 0x58], 0
mov eax, dword [esp + 0x1c]
cdq
idiv esi
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
imul edx, edi
inc esi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x24], esi
mov dword [ebx + eax + 0x5c], edx
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [ebx + ecx + 0x60], eax
mov eax, dword [edx + 0x78]
mov dword [ebx + ecx + 0x70], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + ecx + 0x64], 0
add ecx, 0xc8
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
add eax, edi
sub ebx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebx
jne 0x45cf50
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x38]
sub dword [esp + 0x30], 1
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
jne 0x45cf34
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret