Function at 0x5b45e0
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 0x5b4609
push eax
call fcn.006247dc
add esp, 4
mov dword [esi + 4], ebx
mov ecx, edi
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
call fcn.005b3070
mov ebx, eax
test ebx, ebx
je 0x5b4cf1
mov eax, dword [ebx + 0x10]
test eax, eax
mov dword [esp + 0x30], eax
je 0x5b4cf1
mov ecx, edi
call fcn.0057a8a0
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.00562d40
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x50], 1
cmp ecx, 1
mov dword [esp + 0x38], ecx
jb 0x5b4708
jmp 0x5b467b
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.00562d40
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.005917b0
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.00562d40
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x50], eax
jbe 0x5b4677
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.00562d40
mov edx, dword [ebx + 4]
lea ecx, [esp + 0xc]
add edx, 8
push edx
call fcn.00562d40
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.005917b0
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 0x5b4910
mov dword [esp + 0x3c], 1
mov dword [esp + 0x80], 0
fld dword [esp + 0x50]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x5b4869
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.00562d40
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.00562d40
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.005917b0
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.00562d40
lea ecx, [esp + 0x40]
call fcn.005747f0
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.005917b0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x64]
call fcn.00562d40
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.00562e90
fld dword [esp + 0x50]
fadd dword [esp + 0x24]
dec edi
fstp dword [esp + 0x50]
jne 0x5b47b6
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x28], 0
call fcn.00562d40
mov edi, dword [esi + 0x10]
mov ebx, 1
cmp edi, ebx
mov dword [esp + 0x3c], edi
jb 0x5b49c5
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.00562d40
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.005917b0
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 0x5b49ac
fstp dword [esp + 0x24]
jmp 0x5b49ae
fstp st(0)
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
call fcn.00562d40
inc ebx
cmp ebx, edi
jbe 0x5b4939
fld dword [esp + 0x24]
fmul dword [0x6b2fa8]
test edi, edi
fstp dword [esp + 0x24]
jbe 0x5b4cf1
fld qword [0x6b1fb8]
fcos
mov ebx, 1
mov dword [esp + 0x38], 0
fst qword [esp + 0x88]
fstp qword [esp + 0x80]
fld qword [0x6b1fb8]
fsin
fst qword [esp + 0x58]
fstp qword [esp + 0x50]
jmp 0x5b4a14
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.00562d40
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.00562d40
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.005917b0
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.00562d40
lea ecx, [esp + 0x14]
call fcn.005747f0
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.00562e90
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.00562e90
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
call fcn.00562d40
mov edx, dword [esi + 4]
mov ecx, edi
add ecx, edx
push ecx
lea ecx, [esp + 0x10]
call fcn.00562d40
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.00562d40
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.005917b0
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.00562d40
lea ecx, [esp + 0x14]
call fcn.005747f0
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.005b4d00
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.005b4d20
add esp, 0xc
lea ecx, [esp + 0x70]
push eax
call fcn.00562d40
lea ecx, [esp + 0x70]
call fcn.005747f0
fcomp qword [0x672208]
fnstsw ax
test ah, 0x41
jne 0x5b4cd7
lea ecx, [esp + 0x70]
call fcn.005b4d90
push 0xbff921fb
push 0x60000000
lea ecx, [esp + 0x78]
call fcn.005b4d50
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.00562d40
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x64]
call fcn.005b4d00
sub esp, 8
lea edx, [esp + 0x68]
mov ecx, esp
push edx
call fcn.005917b0
mov ecx, esi
call fcn.00562e90
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 0x5b4a10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4