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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
movsx ebp, word [esp + 0xb8]
imul ebp, ebp, 0x68
push esi
mov esi, eax
mov eax, dword [0x6b43dc]
add ebp, dword [eax + 0x164]
mov ecx, esi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb8]
cmp ax, 0xffff
push edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
je 0x4b2b16
movsx edx, ax
mov eax, dword [0x8154d8]
mov eax, dword [eax + edx*4 + 4]
cmp eax, 0xffffffff
jne 0x4b2b1b
or eax, 0xffffffff
jmp 0x4b2b30
mov ecx, dword [0x8154e0]
mov edx, dword [ecx + 0x34]
and eax, 0xffff
shl eax, 9
mov eax, dword [eax + edx + 0x34]
lea edi, [esp + 0x1c]
mov ecx, eax
call fcn.0056c900
fld dword [esi]
fsub dword [esp + 0x1c]
fld dword [esi + 4]
fsub dword [esp + 0x20]
fld dword [esi + 8]
fsub dword [esp + 0x24]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fst dword [esp + 0x30]
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x6123b0]
fnstsw ax
test ah, 0x41
jne 0x4b2b82
mov dword [esp + 0x2c], 0x3f000000
jmp 0x4b2ba7
fld dword [esp + 0x30]
fmul dword [0x612770]
fsubr dword [0x612224]
fld qword [str.ffffff]
call fcn.005cd390
fadd dword [0x61221c]
fstp dword [esp + 0x2c]
lea eax, [esp + 0x34]
push 0x75e098
mov edx, eax
call fcn.004cf1e0
mov ebx, 1
add esp, 4
cmp word [esp + 0xc4], bx
je 0x4b2c15
lea ecx, [esp + 0x1c]
mov edx, eax
mov esi, 0x75e088
mov edi, 0x75e034
call fcn.005118e0
test al, al
je 0x4b2c15
movsx eax, word [0x75e062]
movsx ecx, word [0x75e060]
add eax, 0x140
mov dword [esp + 0x10], eax
add ecx, 0xf0
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fsubr dword [esp + 0x1c]
fild dword [esp + 0x10]
fsubr dword [esp + 0x20]
jmp 0x4b2c26
fld dword [esp + 0x34]
mov dword [esp + 0xc4], ebx
fld dword [esp + 0x38]
fchs
cmp word [esp + 0xc4], bx
mov ecx, dword [0x6b43dc]
fld dword [ecx + 0x12c]
mov dword [esp + 0x10], 0
fadd dword [ecx + 0x128]
fsubr dword [0x612300]
fmul dword [0x61221c]
fld dword [ecx + 0x124]
fadd dword [ecx + 0x120]
fsubr dword [0x6122fc]
fmul dword [0x61221c]
fld st(0)
fmul st(2)
fstp dword [esp + 0x28]
fmul st(3)
fstp dword [esp + 0x18]
fmul st(1)
je 0x4b2c9d
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
fld st(1)
fmul st(2)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x4b2cdb
fld dword [esp + 0x28]
mov al, byte [ebp + 0x4c]
test al, 1
fmul dword [esp + 0x28]
fld st(1)
mov dword [esp + 0xc4], ebx
fmul st(2)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fdivp st(1)
fsqrt
fstp st(1)
fld st(0)
fmulp st(3)
fmulp st(1)
jne 0x4b2cdd
fld st(1)
fld st(1)
fpatan
fchs
fstp dword [esp + 0x10]
jmp 0x4b2cdd
fstp st(0)
mov ecx, dword [ecx + 0x15c]
fxch st(1)
fadd dword [0x612974]
lea edx, [esp + 0x28]
push edx
movsx edx, word [esp + 0xc8]
lea eax, [esp + 0x1c]
fstp dword [esp + 0x20]
push eax
fadd dword [0x612978]
xor eax, eax
mov ax, word [ebp + edx*2 + 0x34]
xor esi, esi
fstp dword [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
push eax
push ecx
xor eax, eax
call fcn.004aedd0
mov ebx, dword [esp + 0x28]
add esp, 0x10
cmp ebx, esi
je 0x4b305c
push 1
push esi
mov eax, ebx
call fcn.00445080
add esp, 8
test eax, eax
je 0x4b305c
fld dword [esp + 0x1c]
call fcn.005de054
fld dword [esp + 0x20]
mov word [esp + 0x18], ax
call fcn.005de054
mov edx, dword [ebp + 0x2c]
push edx
mov word [esp + 0x1e], ax
call fcn.004aea90
imul eax, eax, 0xff
add esp, 4
test eax, eax
jge 0x4b2d82
mov byte [esp + 0x17], 0
jmp 0x4b2db4
mov eax, dword [ebp + 0x2c]
push eax
call fcn.004aea90
imul eax, eax, 0xff
add esp, 4
cmp eax, 0xff
jle 0x4b2da2
mov byte [esp + 0x17], 0xff
jmp 0x4b2db4
mov ecx, dword [ebp + 0x2c]
push ecx
call fcn.004aea90
add esp, 4
neg al
mov byte [esp + 0x17], al
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x1c]
call fcn.0043f640
fld dword [0x612224]
fsub dword [ebp + 0x30]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x4b2dde
fld dword [0x612220]
jmp 0x4b2df5
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x4b2df3
fld dword [0x612224]
jmp 0x4b2df5
fld st(0)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x4b2e12
fld dword [0x612220]
jmp 0x4b2e29
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x4b2e27
fld dword [0x612224]
jmp 0x4b2e29
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fcom dword [0x612220]
fnstsw ax
test ah, 5
jp 0x4b2e48
fstp st(0)
fld dword [0x612220]
jmp 0x4b2e5d
fcom dword [0x612224]
fnstsw ax
test ah, 0x41
jne 0x4b2e5d
fstp st(0)
fld dword [0x612224]
fmul dword [esp + 0x24]
mov al, byte [esp + 0xc8]
test al, al
fstp dword [esp + 0x24]
jne 0x4b2e88
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
movzx ebp, byte [esp + 0x17]
lea eax, [esp + 0x1c]
push eax
shl ebp, 0x18
call fcn.004aead0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
or eax, ebp
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push 4
xor cl, cl
mov eax, esi
mov edx, ebx
call fcn.004b00b0
add esp, 0x18
cmp word [esp + 0xc4], 1
je 0x4b305c
mov al, byte [esp + 0xc8]
test al, al
je 0x4b305c
fld dword [esp + 0x30]
xor ecx, ecx
fmul dword [0x612970]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
xor eax, eax
lea edx, [esp + 0x1c]
mov ecx, 0x15
lea edi, [esp + 0x64]
fstp dword [esp + 0x30]
push edx
rep stosd dword es:[edi], eax
mov word [esp + 0x44], ax
call fcn.004aead0
or eax, ebp
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x20]
push eax
call fcn.004aead0
movsx ecx, word [ebx + 4]
fld dword [esi + 4]
fsub dword [esi]
movsx edx, word [esp + 0x20]
mov dword [esp + 0x18], ecx
or eax, ebp
fimul dword [esp + 0x18]
mov dword [esp + 0x18], edx
add esp, 8
mov dword [esp + 0x8c], eax
mov byte [esp + 0xa8], 3
mov byte [esp + 0xaa], 1
mov byte [esp + 0xa9], 5
fmul dword [0x61221c]
fmul dword [esp + 0x2c]
fmul dword [0x61297c]
fiadd dword [esp + 0x10]
call fcn.005de054
fld dword [esi + 0xc]
fsub dword [esi + 8]
movsx ecx, word [esp + 0x1a]
mov di, ax
movsx eax, word [ebx + 6]
mov dword [esp + 0x10], eax
fimul dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul dword [0x61221c]
fmul dword [esp + 0x2c]
fmul dword [0x612980]
fiadd dword [esp + 0x10]
call fcn.005de054
fld qword [0x612268]
mov dx, word [0x75e062]
fld qword [0x6124a0]
sub dx, word [0x75e06a]
mov ecx, dword [0x75e060]
sub ecx, dword [0x75e068]
add di, dx
add ax, cx
mov word [esp + 0x64], di
mov word [esp + 0x66], ax
call fcn.005cd390
fst dword [esp + 0x10]
fmul dword [esp + 0x30]
fabs
fld dword [esp + 0x10]
call fcn.005ce01a
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fistp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push 0
push 0
push 0
push edx
push eax
call fcn.004aea90
add esp, 4
push eax
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x58]
push edx
push eax
call fcn.004af5b0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret