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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x1b0], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x68
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
push edi
fld qword [eax + ecx + 8]
fstp qword [esp + 0x50]
fld qword [eax + ecx + 0x10]
fstp qword [esp + 0x58]
fld qword [eax + ecx + 0x18]
mov ecx, dword [esi + 0x31c]
mov eax, dword [esi + 0x320]
fstp qword [esp + 0x68]
mov dword [esp + 0x74], ecx
cmp eax, ecx
jge 0x440a41
mov dword [esp + 0x3c], eax
mov edx, dword [esi + 0x314]
fld qword [0x57c3d0]
mov eax, dword [esp + 0x3c]
mov ebx, dword [edx + eax*4]
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x38]
lea ecx, [ebx + ebx*2]
shl ecx, 4
mov edx, dword [ecx + edx]
lea edi, [edx + edx*2]
add edi, edi
fcom qword [eax + edi*8 + 0x10]
mov dword [esp + 0x4c], ebx
fnstsw ax
test ah, 0x41
je 0x4409cb
lea edx, [edx + edx*2]
shl edx, 4
add edx, dword [esi + 0x38]
fcomp qword [edx + 0x10]
fnstsw ax
test ah, 0x41
je 0x4409cd
mov eax, dword [esi + 0x38]
cmp dword [eax + edi*8 + 0x1c], 2
jne 0x4409ba
cmp dword [edx + 0x1c], 2
jne 0x4409ba
mov eax, dword [esi + 0x48]
mov edi, dword [eax + ecx + 0xc]
mov ebx, dword [eax + ecx + 8]
mov edx, dword [eax + ecx + 0x10]
add eax, ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x54]
push ecx
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x50], edx
call fcn.004403c0
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0xb0]
push edx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x54]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004403c0
fld qword [esp + 0x90]
fld qword [esp + 0x50]
fsub st(1), st(0)
fld qword [esp + 0x98]
fld qword [esp + 0x58]
fsub st(1), st(0)
fld qword [esp + 0xb0]
fsubrp st(3)
fxch st(2)
fstp qword [esp + 0x78]
fld qword [esp + 0xb8]
fsubrp st(2)
fxch st(1)
fstp qword [esp + 0xf0]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call sub.MSVCR100.dll__CIsqrt
fsub qword [esp + 0x68]
fabs
fstp qword [esp + 0x60]
fld qword [esp + 0xf0]
fmul st(0), st(0)
fld qword [esp + 0x78]
fmul st(0), st(0)
faddp st(1)
call sub.MSVCR100.dll__CIsqrt
fsub qword [esp + 0x68]
fabs
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x44077d
fld qword [esp + 0x90]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
fst qword [esp + 0x80]
fld qword [esp + 0x98]
jmp 0x440792
fld qword [esp + 0xb0]
fst qword [esp + 0x80]
fld qword [esp + 0xb8]
fst qword [esp + 0x88]
fxch st(1)
fsub qword [esp + 0x50]
fst qword [esp + 0x60]
fxch st(1)
fsub qword [esp + 0x58]
fst qword [esp + 0x78]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call sub.MSVCR100.dll__CIsqrt
fld qword [esi + 0xb8]
fmul qword [0x57b6c0]
fcompp
fnstsw ax
test ah, 5
jnp 0x4409cd
fld qword [esp + 0x60]
fst qword [esp + 0xd0]
fld qword [esp + 0x78]
fst qword [esp + 0xd8]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call sub.MSVCR100.dll__CIsqrt
fld1
fdivrp st(1)
fld qword [esp + 0xd0]
fmul st(1)
fld qword [esp + 0xd8]
fmulp st(2)
fstp qword [esp + 0xe0]
fstp qword [esp + 0xe8]
cmp ebx, 2
je 0x44088f
cmp ebx, 1
je 0x440899
mov ecx, dword [esi + 0x18]
lea eax, [edi + edi*2]
add eax, eax
fld qword [ecx + eax*8 + 8]
sub esp, 0x10
fld qword [ecx + eax*8 + 0x10]
lea edx, [esp + 0x108]
fld qword [ecx + eax*8 + 0x18]
lea eax, [esp + 0x148]
fmul qword [0x57b8f8]
lea ecx, [esp + 0xf0]
fld qword [esi + 0xf8]
fstp qword [esp + 8]
fld qword [esi + 0xf0]
fstp qword [esp]
push edx
push eax
sub esp, 0x18
fstp qword [esp + 0x10]
lea edx, [esp + 0xb0]
fstp qword [esp + 8]
fstp qword [esp]
push ecx
push edx
call fcn.0043c480
add esp, 0x38
jmp 0x44092b
mov eax, edi
shl eax, 5
add eax, dword [esi + 4]
jmp 0x4408a5
mov ecx, dword [esi + 0x28]
mov eax, edi
imul eax, eax, 0x68
lea eax, [eax + ecx + 8]
mov edx, dword [eax]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0xc4], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0xc8], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0xcc], eax
cmp ebx, 2
jne 0x4408d5
fldz
jmp 0x4408df
mov ecx, dword [esi + 0x28]
imul edi, edi, 0x68
fld qword [edi + ecx + 0x18]
fld qword [esi + 0xf8]
sub esp, 0x10
fstp qword [esp + 8]
lea edx, [esp + 0x108]
fld qword [esi + 0xf0]
lea eax, [esp + 0x148]
fstp qword [esp]
push edx
push eax
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x104]
push edx
lea eax, [esp + 0xa8]
push eax
call fcn.0043c0d0
add esp, 0x2c
xor edi, edi
mov dword [esp + 0x38], eax
cmp eax, edi
jle 0x4409cd
lea ebx, [esp + 0x138]
fld qword [ebx]
fst qword [esp + 0xa0]
fld qword [ebx + 8]
fst qword [esp + 0xa8]
fld qword [esp + edi*8 + 0xf8]
fstp qword [esp + 0x40]
fxch st(1)
fsub qword [esp + 0x50]
fxch st(1)
fsub qword [esp + 0x58]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
call sub.MSVCR100.dll__CIsqrt
fsub qword [esp + 0x68]
fabs
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
jne 0x4409ae
fld qword [esi + 0x2e8]
mov edx, dword [esp + 0x4c]
sub esp, 8
fstp qword [esp]
push 0
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, esi
call fcn.00437520
test al, al
jne 0x4409f9
inc edi
add ebx, 0x10
cmp edi, dword [esp + 0x38]
jl 0x440940
jmp 0x4409cd
push ebx
push 0x57c418
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
jmp 0x4409cd
fstp st(0)
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x74]
jl 0x44062c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret 4
fld qword [esp + 0x40]
sub esp, 0x18
fstp qword [esp + 0x10]
mov ecx, esi
fld qword [esp + 0xc0]
fstp qword [esp + 8]
fld qword [esp + 0xb8]
fstp qword [esp]
call fcn.00432e40
mov edi, eax
mov eax, dword [esp + 0x4c]
push 1
push edi
push eax
mov ecx, esi
call fcn.00433b30
mov edx, dword [esi + 0x38]
lea ecx, [edi + edi*2]
add ecx, ecx
mov dword [edx + ecx*8 + 0x1c], 4
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00551a8e
mov esp, ebp
pop ebp
ret 4