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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x665e23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x73d670
call fcn.00498b70
fld dword [ebp + 0x10]
fcomp dword [ebp + 0x14]
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
fnstsw ax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
test ah, 1
je 0x5bcadd
fld dword [ebp + 0x18]
fcomp dword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x5bcadd
mov esi, dword [ebp + 0x20]
cmp esi, 2
jb 0x5bcadd
xor ebx, ebx
push 0x14
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x6ac83c
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xac], 0x14
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb0], ebx
call fcn.00589f70
fld dword [ebp + 0x14]
fsub dword [ebp + 0x10]
xor edi, edi
cmp esi, ebx
mov dword [esp + 0xf8], ebx
fabs
fmul dword [0x670250]
fstp dword [esp + 0x10]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x18]
fabs
fmul dword [0x670250]
fstp dword [esp + 0x8c]
fld dword [ebp + 0x10]
fadd dword [ebp + 0x14]
fmul dword [0x670250]
fstp dword [esp + 0x7c]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x1c]
fmul dword [0x670250]
fstp dword [esp + 0x50]
jbe 0x5bc56f
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
fild qword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [ebp + 0x24]
fld st(0)
fcos
fstp dword [esp + 0x14]
fsin
fstp dword [esp + 0x3c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
fild qword [esp + 0x84]
sub esp, 8
lea ecx, [esp + 0xa4]
mov eax, esp
fmul dword [0x6ac0a8]
fdiv dword [esp + 0x2c]
fld st(0)
fcos
fmul dword [esp + 0x18]
fstp dword [esp + 0x40]
fsin
fmul dword [esp + 0x94]
fld dword [esp + 0x1c]
fmul dword [esp + 0x40]
fadd dword [esp + 0x84]
fld dword [esp + 0x44]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x44]
fmul dword [esp + 0x40]
fld dword [esp + 0x1c]
fmul st(2)
mov dword [esp + 0x40], esp
faddp st(1)
fadd dword [esp + 0x58]
fstp st(1)
fld dword [esp + 0x24]
fstp dword [eax]
fstp dword [eax + 4]
call fcn.00561b40
inc edi
cmp edi, esi
jb 0x5bc4e3
mov ecx, dword [esp + 0xa0]
mov edi, 1
cmp esi, edi
mov dword [esp + 0x10], 0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jb 0x5bc611
mov eax, edi
xor edx, edx
div esi
fld dword [ecx + edx*8]
fld st(0)
fsub dword [esp + 0x1c]
lea eax, [ecx + edx*8]
mov eax, dword [ecx + edx*8 + 4]
mov dword [esp + 0x80], eax
fld dword [esp + 0x80]
fsub dword [esp + 0x20]
fstp dword [esp + 0x98]
fld dword [esp + 0x98]
fld st(1)
fstp dword [esp + 0x30]
fst dword [esp + 0x34]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fld st(0)
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x5bc5fb
fstp dword [esp + 0x10]
jmp 0x5bc5fd
fstp st(0)
mov edx, dword [esp + 0x80]
inc edi
fstp dword [esp + 0x1c]
cmp edi, esi
mov dword [esp + 0x20], edx
jbe 0x5bc594
fld dword [esp + 0x10]
fmul dword [0x6ad8fc]
mov dword [esp + 0x58], ebx
fstp dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x70], edx
mov edx, dword [ebp + 0x1c]
mov edi, 1
cmp esi, ebx
mov byte [esp + 0xf8], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x38], edi
jbe 0x5bca6b
fld dword [esp + 0x10]
fadd st(0), st(0)
fstp dword [esp + 0x3c]
jmp 0x5bc66b
mov ecx, dword [esp + 0xa0]
lea eax, [esi + edi - 2]
xor edx, edx
div esi
fld dword [ecx + ebx]
fstp dword [esp + 0x1c]
fld dword [ecx + ebx + 4]
fstp dword [esp + 0x20]
fld dword [ecx + edx*8]
fsub dword [esp + 0x1c]
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x88], 0
lea eax, [ecx + edx*8]
xor edx, edx
mov eax, dword [eax + 4]
mov dword [esp + 0x80], eax
mov eax, edi
div esi
fld dword [esp + 0x80]
fsub dword [esp + 0x20]
fstp dword [esp + 0xb4]
fld dword [esp + 0xb4]
fld st(1)
lea eax, [ecx + edx*8]
mov ecx, dword [ecx + edx*8]
mov edx, dword [eax + 4]
fstp dword [esp + 0x30]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x50]
fsub dword [esp + 0x1c]
fld dword [esp + 0x54]
fsub dword [esp + 0x20]
lea ecx, [esp + 0x84]
fstp dword [esp + 0xbc]
fld dword [esp + 0xbc]
fstp dword [esp + 0xcc]
mov eax, dword [esp + 0xcc]
fstp dword [esp + 0x64]
fstp qword [esp + 0x24]
mov dword [esp + 0x68], eax
call fcn.005733f0
fstp qword [esp + 0x14]
lea ecx, [esp + 0x30]
call fcn.005733f0
fmul qword [esp + 0x14]
fdivr qword [esp + 0x24]
fst qword [esp + 0x14]
call fcn.00618240
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fcomp dword [0x670244]
fnstsw ax
test ah, 1
je 0x5bc76b
fld dword [esp + 0x24]
fmul dword [0x67075c]
fstp dword [esp + 0x24]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fstp qword [esp + 0x14]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x14]
call fcn.00618240
fsub dword [0x6ae858]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x64]
fstp qword [esp + 0x5c]
call fcn.005733f0
fstp qword [esp + 0x14]
lea ecx, [esp + 0x64]
call fcn.005733f0
fmul qword [esp + 0x14]
fdivr qword [esp + 0x5c]
fst qword [esp + 0x5c]
call fcn.00618240
fstp dword [esp + 0x14]
fld dword [esp + 0x68]
fcomp dword [0x670244]
fnstsw ax
test ah, 1
je 0x5bc809
fld dword [esp + 0x14]
fmul dword [0x67075c]
fstp dword [esp + 0x14]
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
fld dword [esp + 0x68]
fmul dword [esp + 0x68]
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x5c]
call fcn.00618240
fsubr dword [esp + 0x14]
fst dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x5bc84f
fld dword [esp + 0x14]
fadd dword [0x6ac0a8]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fsub dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
fstp dword [esp + 0x4c]
fld dword [esp + 0x2c]
fsub dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov ecx, esp
fstp dword [esp + 0x64]
fld dword [esp + 0x2c]
fadd dword [esp + 0x38]
mov dword [ecx], edx
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x60]
fld dword [esp + 0x2c]
fadd dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
mov dword [ecx + 4], eax
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
lea edx, [esp + 0xec]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.005bbee0
mov ecx, dword [eax]
add esp, 0x24
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x4c], edx
je 0x5bc8ee
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x58]
push eax
call fcn.00498c80
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x70]
call fcn.004ab2d0
fld dword [esp + 0x1c]
fsub dword [esp + 0x50]
fld dword [esp + 0x20]
fsub dword [esp + 0x54]
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x98], 0
fstp dword [esp + 0xc4]
fld dword [esp + 0xc4]
fld st(1)
fstp dword [esp + 0x30]
fst dword [esp + 0x34]
fld st(1)
fstp qword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fstp st(0)
fstp st(0)
call fcn.005733f0
fmul qword [esp + 0x5c]
fdivr qword [esp + 0x14]
call fcn.00618240
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fcomp dword [0x670244]
fnstsw ax
test ah, 1
je 0x5bc99d
fld dword [esp + 0x24]
fmul dword [0x67075c]
fstp dword [esp + 0x24]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x5c]
call fcn.00618240
fld dword [esp + 0x24]
fadd st(1)
push 0
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x28]
fsub dword [0x6ae858]
fstp dword [esp + 0x18]
fld dword [esp + 0x54]
fsub dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edx
push eax
sub esp, 0x10
fstp dword [esp + 0x5c]
fld dword [esp + 0x70]
fsub dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
mov ecx, esp
mov dword [ecx], edx
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fadd dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x60]
fld dword [esp + 0x70]
fadd dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
mov dword [ecx + 4], eax
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
lea edx, [esp + 0xfc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.005bbee0
mov ecx, dword [ebp + 0xc]
add esp, 0x24
lea eax, [esp + 0x58]
push eax
call fcn.00498c80
add ebx, 8
inc edi
lea ecx, [edi - 1]
cmp ecx, esi
jb 0x5bc664
xor ebx, ebx
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, esi
mov byte [esp + 0xf8], 0
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x58]
call fcn.00498970
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xf8], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x9c], 0x6ac83c
je 0x5bcac6
push eax
call fcn.0061f99c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x6c]
mov edx, eax
pop edi
pop esi
pop ebx
mov dword [edx], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret