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

Disassembly:
sub esp, 0xb8
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x34], ecx
mov ecx, eax
imul ecx, eax
mov dword [esp], ecx
mov eax, dword [esp + 0xd4]
dec eax
fild dword [esp]
fsqrt
fstp dword [esp + 4]
jne 0x4baff5
fild dword [esp + 0xd0]
fmul dword [0x5f0374]
call fcn.00591008
mov dword [esp + 0xd0], eax
mov edx, dword [esp + 0xdc]
push ebx
mov ecx, 2
mov eax, 3
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov esi, 1
xor eax, eax
mov ecx, 0x12
lea edi, [esp + 0x7c]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x78], ebx
rep stosd dword es:[edi], eax
push edx
mov ecx, 0x71d4b4
call fcn.004baac0
mov edi, eax
mov eax, dword [esp + 0xc8]
imul eax, eax, 0xa8
mov ecx, dword [eax + edi + 0x660]
cmp ecx, esi
lea eax, [eax + edi + 0x660]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], eax
jne 0x4bb09d
fld dword [0x5f0398]
fadd dword [0x5b7bb8]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x14], ecx
push ebp
cmp ecx, 0xffffffff
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xc]
jne 0x4bb0d1
cmp eax, ebx
je 0x4bb5b1
mov ebp, dword [eax + 8]
cmp dword [ebp + 0x2c], esi
jne 0x4bb0c5
cmp dword [ebp + 0x50], ebx
jne 0x4bb0f9
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4bb0b8
jmp 0x4bb5b1
cmp eax, ebx
je 0x4bb5b1
lea esp, [esp]
mov ebp, dword [eax + 8]
cmp dword [ebp + 0x2c], esi
jne 0x4bb0ed
cmp dword [ebp + 0x38], ecx
je 0x4bb0f9
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4bb0e0
jmp 0x4bb5b1
cmp dword [ebp + 0x3f0], ebx
jne 0x4bb5b1
cmp dword [ebp + 0x3fc], ebx
jne 0x4bb5b1
lea esi, [ebp + 0x94]
mov ecx, esi
call fcn.00415bb0
test al, al
jne 0x4bb12c
mov dword [0], 1
mov al, byte [esi + 0xc]
mov cl, byte [esi + 4]
mov dl, byte [esi + 5]
xor cl, al
mov byte [esp + 0x24], cl
mov cl, byte [esi + 6]
xor dl, al
mov byte [esp + 0x25], dl
mov dl, byte [esi + 7]
xor cl, al
mov byte [esp + 0x26], cl
xor dl, al
lea esi, [ebp + 0xa4]
mov ecx, esi
mov byte [esp + 0x27], dl
call fcn.00415bb0
test al, al
jne 0x4bb16e
mov dword [0], 1
mov al, byte [esi + 0xc]
mov dl, byte [esi + 5]
mov cl, byte [esi + 4]
xor cl, al
xor dl, al
mov byte [esp + 0x29], dl
mov dl, byte [esi + 7]
xor dl, al
mov byte [esp + 0x28], cl
mov cl, byte [esi + 6]
xor cl, al
mov eax, dword [ebp + 0xd0]
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + 0x8b2e48]
mov byte [esp + 0x2b], dl
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov byte [esp + 0x2a], cl
fild dword [esp + 0x10]
mov eax, dword [edi + 0x1b4]
cmp eax, ebx
mov dword [esp + 0x38], ebx
fsubr dword [esp + 0x28]
mov dword [esp + 0x34], ebx
fisubr dword [esp + 0xd8]
fild dword [esp + 0xd4]
fsub dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x10]
jne 0x4bb20a
lea ecx, [esp + 0x38]
push ecx
push ebx
push ebx
lea ecx, [edi + 0xab70]
call fcn.004de620
lea edx, [esp + 0x34]
push edx
push ebx
jmp 0x4bb224
lea eax, [esp + 0x38]
push eax
push 2
push ebx
lea ecx, [edi + 0xab70]
call fcn.004de620
lea ecx, [esp + 0x34]
push ecx
push 2
lea ecx, [ebp + 0xab70]
push ebx
call fcn.004de620
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x4bb5a8
fld dword [esp + 0x14]
mov edi, dword [ebp + 0x558]
fsub dword [esp + 0x10]
fdiv dword [esp + 0x14]
fstp dword [esp + 0x30]
fild dword [esp + 0xe0]
fstp dword [esp + 0x40]
fld dword [esp + 0x30]
fmul dword [esp + 0x40]
call fcn.00591008
imul eax, eax, 0x64
cdq
idiv edi
mov edx, dword [esp + 0x38]
mov esi, eax
mov eax, dword [esp + 0xe0]
add edx, eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x2c], esi
fst dword [esp + 0x10]
fmul dword [esp + 0x30]
call fcn.00591008
imul eax, eax, 0x64
mov ecx, dword [esp + 0x34]
cdq
add edi, ecx
idiv edi
mov edx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [edx]
sub eax, ebx
mov dword [esp + 0x20], edi
je 0x4bb34a
dec eax
je 0x4bb31f
dec eax
jne 0x4bb3b3
mov eax, dword [ebp + 0x57c]
sub eax, 2
jne 0x4bb3b3
fld dword [0x5b7bb8]
fsub dword [0x5f03a8]
fld dword [esp + 0x40]
fmul st(1)
fmul dword [esp + 0x30]
fld dword [esp + 0x40]
fmul dword [0x5f03a8]
faddp st(1)
call fcn.00591008
fmul dword [esp + 0x10]
mov esi, eax
fmul dword [esp + 0x30]
fld dword [esp + 0x10]
fmul dword [0x5f03a8]
faddp st(1)
call fcn.00591008
jmp 0x4bb3b1
cmp dword [ebp + 0x57c], ebx
jne 0x4bb3b3
fld dword [0x5f039c]
fadd dword [0x5b7bb8]
fild dword [esp + 0x2c]
fmul st(1)
call fcn.00591008
fild dword [esp + 0x20]
fmul st(1)
jmp 0x4bb3a8
mov eax, dword [ebp + 0x57c]
dec eax
jne 0x4bb3b3
mov al, byte [esp + 0xe8]
test al, al
je 0x4bb38a
fld dword [0x5f03a0]
fadd dword [0x5b7bb8]
fild dword [esp + 0x2c]
fmul st(1)
call fcn.00591008
fild dword [esp + 0x20]
mov dword [esp + 0x2c], eax
fmul st(1)
call fcn.00591008
fstp st(0)
mov dword [esp + 0x20], eax
fld dword [0x5f03a4]
fmul dword [esp + 0xf0]
fild dword [esp + 0x2c]
fadd st(1)
call fcn.00591008
fild dword [esp + 0x20]
fadd st(1)
mov esi, eax
call fcn.00591008
fstp st(0)
mov edi, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jne 0x4bb3e7
imul esi, esi, 7
imul edi, edi, 7
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, eax
mov ebx, dword [ecx + 0xd0]
mov ecx, dword [ebp + 0xd0]
mov edx, dword [esp + ebx*4 + 0x48]
cmp edx, dword [esp + ecx*4 + 0x48]
jne 0x4bb429
lea ecx, [esi + esi*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
lea ecx, [edi + edi*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
cmp ebx, 7
jne 0x4bb46e
mov ecx, 0x6f96b4
call fcn.00409160
test eax, eax
je 0x4bb46e
lea ecx, [esi + esi*2]
shl ecx, 2
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [edi + edi*2]
shl ecx, 2
mov esi, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0xd0], 6
jne 0x4bb4c7
mov ecx, dword [ebx + 0x534]
mov eax, 0x66666667
imul ecx
mov ecx, dword [ebx + 0x120]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jle 0x4bb4c7
imul esi, esi, 0xd
imul edi, edi, 0xd
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, ecx
mov edi, eax
mov ecx, dword [ebp + 0xdc]
mov edx, dword [ebx + 0xdc]
imul ecx, ecx, 0xbec
mov eax, dword [ecx + 0x67d940]
imul edx, edx, 0xbec
cmp eax, dword [edx + 0x67d940]
mov edx, dword [ebx + 0x460]
je 0x4bb51d
add edx, esi
mov dword [ebx + 0x460], edx
mov eax, dword [ebp + 0x120]
cmp eax, esi
jge 0x4bb511
sub eax, esi
mov ecx, edx
add ecx, eax
mov dword [ebx + 0x460], ecx
cmp dword [ebp + 0x120], esi
jg 0x4bb54c
push 1
jmp 0x4bb545
sub edx, esi
mov dword [ebx + 0x460], edx
mov eax, dword [ebx + 0x120]
cmp eax, esi
jge 0x4bb53b
sub eax, esi
mov ecx, edx
add ecx, eax
mov dword [ebx + 0x460], ecx
cmp dword [ebp + 0x120], esi
jg 0x4bb54c
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004c4980
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xf4]
sub edi, esi
cmp eax, ecx
jne 0x4bb564
add esi, dword [esp + 0xf8]
mov eax, dword [ebp + 0x3f0]
test eax, eax
jne 0x4bb5a2
mov eax, dword [ebp + 0x3fc]
test eax, eax
jne 0x4bb5a2
mov ecx, dword [esp + 0xec]
mov edx, dword [ebp]
xor eax, eax
test edi, edi
setge al
push edi
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push esi
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x40]
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov esi, 1
inc ecx
cmp ecx, 0x32
mov dword [esp + 0x18], ecx
jl 0x4bb0a4
mov esi, dword [esp + 0x44]
lea ecx, [esi + 4]
call fcn.00413bd0
fld dword [esp + 0x14]
cmp eax, ebx
fadd st(0), st(0)
mov edi, dword [esi + 0xc]
pop ebp
fstp dword [esp + 0x10]
jle 0x4bb66c
mov ebx, eax
mov esi, dword [edi + 8]
cmp dword [esi + 0x2c], 6
jne 0x4bb662
mov eax, dword [esi + 0xc4]
fild dword [esi + 0xcc]
cdq
sub eax, edx
mov edx, dword [esi + 0xd8]
sar eax, 1
sub edx, eax
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fisubr dword [esp + 0xd4]
fild dword [esp + 0xd0]
fsub st(2)
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4bb660
fld dword [esp + 0x10]
fsub st(1)
fdiv dword [esp + 0x10]
fimul dword [esp + 0xdc]
call fcn.00591008
imul eax, eax, 0xffffff9c
cdq
idiv dword [esi + 0x1b8]
add dword [esi + 0x194], eax
fstp st(0)
dec ebx
mov edi, dword [edi + 4]
jne 0x4bb5e3
pop edi
pop esi
pop ebx
add esp, 0xb8
ret 0x30