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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x5b0139
push eax
call fcn.0061f99c
add esp, 4
mov dword [esi + 4], ebx
mov ecx, edi
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
call fcn.005aec90
mov ebx, eax
test ebx, ebx
je 0x5b0821
mov eax, dword [ebx + 0x10]
test eax, eax
mov dword [esp + 0x30], eax
je 0x5b0821
mov ecx, edi
call fcn.00579550
mov edi, eax
mov eax, dword [ebx + 4]
dec edi
push eax
neg edi
sbb edi, edi
lea ecx, [esp + 0x20]
and edi, 2
mov dword [esp + 0x5c], 0
add edi, 2
imul edi, dword [esp + 0x34]
call fcn.005959e0
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x50], 1
cmp ecx, 1
mov dword [esp + 0x38], ecx
jb 0x5b0238
jmp 0x5b01ab
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
xor edx, edx
div ecx
mov ecx, dword [ebx + 4]
lea edx, [ecx + edx*8]
lea ecx, [esp + 0xc]
push edx
call fcn.005959e0
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x30]
call fcn.005904e0
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esp + 0x48], ecx
faddp st(1)
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], edx
fsqrt
fadd dword [esp + 0x5c]
fstp dword [esp + 0x5c]
call fcn.005959e0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x50], eax
jbe 0x5b01a7
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
fild qword [esp + 0x28]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x50], 0
push ecx
lea ecx, [esp + 0x20]
fdivr dword [esp + 0x5c]
fstp dword [esp + 0x28]
call fcn.005959e0
mov edx, dword [ebx + 4]
lea ecx, [esp + 0xc]
add edx, 8
push edx
call fcn.005959e0
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
fstp dword [esp + 0x2c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x30]
call fcn.005904e0
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
test edi, edi
faddp st(1)
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x30], 0
fsqrt
fstp dword [esp + 0x58]
jbe 0x5b0440
mov dword [esp + 0x3c], 1
mov dword [esp + 0x80], 0
fld dword [esp + 0x50]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x5b0399
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
add eax, 8
inc ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 4]
add ecx, eax
mov dword [esp + 0x80], eax
push ecx
lea ecx, [esp + 0x20]
call fcn.005959e0
mov eax, dword [esp + 0x3c]
xor edx, edx
div dword [esp + 0x38]
mov eax, dword [ebx + 4]
lea ecx, [eax + edx*8]
push ecx
lea ecx, [esp + 0x10]
call fcn.005959e0
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x78]
lea ecx, [esp + 0x28]
push edx
fstp dword [esp + 0x7c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x80]
call fcn.005904e0
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
faddp st(1)
fsqrt
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
lea edx, [esp + 0x48]
lea ecx, [esp + 0x40]
push edx
call fcn.005959e0
lea ecx, [esp + 0x40]
call fcn.005733f0
fld dword [esp + 0x40]
fdiv st(1)
lea eax, [esp + 0x68]
lea ecx, [esp + 0x88]
push eax
fstp dword [esp + 0x44]
fdivr dword [esp + 0x48]
fld dword [esp + 0x54]
fsub dword [esp + 0x34]
fld st(0)
fmul dword [esp + 0x44]
fstp dword [esp + 0x44]
fxch st(1)
fmul st(1)
fstp dword [esp + 0x48]
fstp st(0)
fld dword [esp + 0x44]
fadd dword [esp + 0x20]
fstp dword [esp + 0x6c]
fld dword [esp + 0x48]
fadd dword [esp + 0x24]
fstp dword [esp + 0x70]
call fcn.005904e0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x64]
call fcn.005959e0
fld dword [esp + 0x64]
fld dword [esp + 0x60]
sub esp, 8
mov ecx, esi
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
call fcn.00561b40
fld dword [esp + 0x50]
fadd dword [esp + 0x24]
dec edi
fstp dword [esp + 0x50]
jne 0x5b02e6
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x28], 0
call fcn.005959e0
mov edi, dword [esi + 0x10]
mov ebx, 1
cmp edi, ebx
mov dword [esp + 0x3c], edi
jb 0x5b04f5
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [esi + 4]
lea ecx, [eax + edx*8]
push ecx
lea ecx, [esp + 0x10]
call fcn.005959e0
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x28]
push edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x70]
call fcn.005904e0
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
faddp st(1)
fsqrt
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x5b04dc
fstp dword [esp + 0x24]
jmp 0x5b04de
fstp st(0)
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
call fcn.005959e0
inc ebx
cmp ebx, edi
jbe 0x5b0469
fld dword [esp + 0x24]
fmul dword [0x6ad8fc]
test edi, edi
fstp dword [esp + 0x24]
jbe 0x5b0821
fld qword [0x6aca60]
fcos
mov ebx, 1
mov dword [esp + 0x38], 0
fst qword [esp + 0x88]
fstp qword [esp + 0x80]
fld qword [0x6aca60]
fsin
fst qword [esp + 0x58]
fstp qword [esp + 0x50]
jmp 0x5b0544
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 4]
add eax, ecx
lea ecx, [esp + 0x1c]
push eax
call fcn.005959e0
mov eax, ebx
xor edx, edx
div edi
mov eax, dword [esi + 4]
mov edi, edx
shl edi, 3
mov ecx, edi
add ecx, eax
push ecx
lea ecx, [esp + 0x10]
call fcn.005959e0
fld dword [esp + 0xc]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x78]
push edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x70]
call fcn.005904e0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x48]
mov dword [esp + 0x4c], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], eax
call fcn.005959e0
lea ecx, [esp + 0x14]
call fcn.005733f0
fld dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fld qword [esp + 0x88]
fld qword [esp + 0x58]
fld st(1)
fmul st(4)
fld st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x14]
fxch st(1)
fmul st(2)
fxch st(1)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
fstp dword [esp + 0x14]
fmul dword [esp + 0x24]
fstp dword [esp + 0x18]
fld dword [esp + 0x14]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
fst dword [esp + 0x20]
fld dword [esp + 0x14]
fadd dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0x18]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x1c]
sub esp, 8
mov ecx, esi
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
call fcn.00561b40
fld dword [esp + 0x10]
fld dword [esp + 0xc]
sub esp, 8
mov ecx, esi
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
call fcn.00561b40
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
call fcn.005959e0
mov edx, dword [esi + 4]
mov ecx, edi
add ecx, edx
push ecx
lea ecx, [esp + 0x10]
call fcn.005959e0
inc ebx
xor edx, edx
mov eax, ebx
div dword [esp + 0x3c]
mov eax, dword [esi + 4]
lea ecx, [eax + edx*8]
push ecx
lea ecx, [esp + 0x64]
call fcn.005959e0
fld dword [esp + 0x60]
fsub dword [esp + 0xc]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
push edx
fstp dword [esp + 0x2c]
fld dword [esp + 0x68]
fsub dword [esp + 0x14]
fstp dword [esp + 0x30]
call fcn.005904e0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
call fcn.005959e0
lea ecx, [esp + 0x14]
call fcn.005733f0
fld dword [esp + 0x14]
fdiv st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fstp st(0)
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fld qword [esp + 0x80]
fmul st(2)
fld qword [esp + 0x50]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x14]
fld qword [esp + 0x80]
fmul st(1)
fld qword [esp + 0x50]
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x14]
fmul dword [esp + 0x24]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
fstp dword [esp + 0x18]
fmul dword [esp + 0x28]
fstp dword [esp + 0x1c]
call fcn.005b0830
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.005b0850
add esp, 0xc
lea ecx, [esp + 0x70]
push eax
call fcn.005959e0
lea ecx, [esp + 0x70]
call fcn.005733f0
fcomp qword [0x66d208]
fnstsw ax
test ah, 0x41
jne 0x5b0807
lea ecx, [esp + 0x70]
call fcn.005b08c0
push 0xbff921fb
push 0x60000000
lea ecx, [esp + 0x78]
call fcn.005b0880
fld dword [esp + 0x70]
fmul dword [esp + 0x24]
mov ecx, dword [esi + 4]
add edi, ecx
lea ecx, [esp + 0x60]
push edi
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fmul dword [esp + 0x28]
fstp dword [esp + 0x78]
call fcn.005959e0
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x64]
call fcn.005b0830
sub esp, 8
lea edx, [esp + 0x68]
mov ecx, esp
push edx
call fcn.005904e0
mov ecx, esi
call fcn.00561b40
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea eax, [ebx - 1]
add edx, 8
cmp eax, ecx
mov dword [esp + 0x38], edx
jb 0x5b0540
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4