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

Disassembly:
sub esp, 0x70
push ebp
mov ebp, ecx
cmp byte [ebp + 0xac], 0
jne 0x413234
mov eax, dword [ebp + 0x50]
push ebx
push esi
mov esi, dword [eax]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x20]
mov ebx, dword [esi + 8]
push edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], edx
call fcn.00406350
fld dword [esp + 0x3c]
fld dword [esp + 0x38]
add esp, 0xc
fld dword [esp + 0x34]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
call sub.MSVCR90.dll__CIsqrt
fld qword [0x443870]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x41322f
sub esp, 8
lea ecx, [esp + 0x34]
fstp qword [esp]
call fcn.00411110
cmp dword [esp + 0x10], 0
jle 0x413099
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
add esi, 0xc
mov dword [esp + 0x10], edx
jmp 0x412fd0
fld dword [ecx + 4]
fmul dword [esp + 0x30]
fld dword [ecx]
fmul dword [esp + 0x2c]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [ecx + 8]
faddp st(1)
fcomp qword [0x442f18]
fnstsw ax
test ah, 5
jp 0x413000
mov dword [esi], 1
jmp 0x413080
cmp dword [esi], 0
je 0x413080
mov dword [esi], 0
inc dword [ebp + 0xa4]
mov eax, dword [ebp + 0xa4]
cdq
idiv dword [ebp + 0xa0]
mov eax, dword [ebp + 0x50]
cmp edx, dword [eax + 0x28]
jne 0x413080
mov eax, dword [esi - 4]
push ecx
lea ecx, [eax + eax*2]
push edi
lea edx, [ebx + ecx*4]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.004079a0
add esp, 0xc
push eax
mov eax, dword [esi - 8]
lea ecx, [eax + eax*2]
push edi
lea edx, [ebx + ecx*4]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.004079a0
add esp, 0xc
push eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax*2]
push edi
lea edx, [ebx + ecx*4]
push edx
lea eax, [esp + 0x70]
push eax
call fcn.004079a0
add esp, 0xc
push eax
mov ecx, ebp
call fcn.00411c60
mov ecx, dword [esp + 0x14]
add ecx, 0xc
add esi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x14], ecx
jne 0x412fd0
mov esi, dword [esp + 0x20]
fld qword [0x442ef8]
add esi, 0x28
push esi
sub esp, 8
lea ecx, [esp + 0x80]
fstp qword [esp]
push ecx
call fcn.004079d0
push eax
lea edx, [esp + 0x7c]
push edi
push edx
call fcn.004079a0
mov eax, dword [esp + 0x40]
add esp, 0x1c
test eax, eax
jle 0x413231
mov ecx, dword [esp + 0x28]
add ecx, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov esi, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 4]
shl esi, 4
mov esi, dword [esi + eax + 0xc]
shl edx, 4
cmp esi, dword [edx + eax + 0xc]
je 0x413213
inc dword [ebp + 0xa4]
mov eax, dword [ebp + 0xa4]
cdq
idiv dword [ebp + 0xa0]
mov eax, dword [ebp + 0x50]
cmp edx, dword [eax + 0x28]
jne 0x413213
mov eax, dword [ecx - 8]
mov esi, dword [ecx - 4]
lea ecx, [eax + eax*2]
lea eax, [ebx + ecx*4]
push edi
push eax
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x34], eax
call fcn.004079a0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.004079a0
lea eax, [esi + esi*2]
lea ebx, [ebx + eax*4]
push edi
lea ecx, [esp + 0x78]
push ebx
push ecx
call fcn.004079a0
mov edx, dword [esp + 0xac]
push edx
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.004079a0
fldz
lea ecx, [esp + 0x98]
fst dword [esp + 0x5c]
push ecx
fst dword [esp + 0x64]
lea edx, [esp + 0x90]
fstp dword [esp + 0x68]
push edx
lea esi, [esp + 0x64]
lea ebx, [esp + 0x7c]
lea edi, [esp + 0x88]
call fcn.00411210
add esp, 0x38
test eax, eax
je 0x413204
mov eax, esi
push eax
mov ecx, ebx
push ecx
lea edx, [esp + 0x64]
push edx
mov eax, edi
push eax
mov ecx, ebp
call fcn.00411c60
fldz
lea ecx, [esp + 0x68]
fst dword [esp + 0x38]
mov edx, ebx
fst dword [esp + 0x3c]
push ecx
fstp dword [esp + 0x44]
push edx
lea esi, [esp + 0x40]
lea ebx, [esp + 0x7c]
call fcn.00411210
add esp, 8
test eax, eax
je 0x413204
mov eax, esi
push eax
mov ecx, ebx
push ecx
lea edx, [esp + 0x4c]
push edx
mov eax, edi
push eax
mov ecx, ebp
call fcn.00411c60
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add ecx, 0x10
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], ecx
jne 0x4130e0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x70
ret 8
fstp st(0)
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x70
ret 8