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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push ebx
mov ebx, ecx
mov eax, dword [ebx + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x13958]
mov dword [esp + 4], ecx
fild dword [esp + 4]
mov edx, dword [eax + 0x1395c]
push ebp
fstp dword [esp + 0x10]
push esi
fld dword [esp + 0x14]
push edi
fdiv qword [0x6a1590]
sub esp, 0xc
lea eax, [esp + 0x7c]
mov dword [esp + 0x20], edx
fstp dword [esp + 0x28]
fld1
fstp dword [esp + 8]
fld dword [esp + 0x28]
fst dword [esp + 4]
fstp dword [esp]
push eax
call fcn.00474095
fldz
mov edx, dword [ebx + 0x4b0]
fst dword [esp + 0x7c]
mov eax, dword [edx + 4]
fst dword [esp + 0x78]
fst dword [esp + 0x74]
lea ecx, [ebx + 0x4b0]
fst dword [esp + 0x70]
add esp, 0x10
fst dword [esp + 0x5c]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
fst dword [esp + 0x50]
fst dword [esp + 0x4c]
fst dword [esp + 0x48]
fst dword [esp + 0x44]
fst dword [esp + 0x40]
fst dword [esp + 0x3c]
fst dword [esp + 0x38]
fst dword [esp + 0x34]
fstp dword [esp + 0x30]
call eax
mov ecx, eax
mov edx, ecx
imul ecx, ecx, 0xff
imul edx, edx, 0xb4
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebx + 8]
mov eax, dword [edx + 8]
mov ebp, ecx
add eax, 0xdf478
mov eax, dword [eax + 8]
shl ebp, 0x18
shl esi, 0x18
or ebp, 0xffffff
test eax, eax
je 0x46b0bf
mov eax, dword [eax + 0xc]
jmp 0x46b0c1
xor eax, eax
push 2
push 2
xor edi, edi
mov ecx, eax
call fcn.00470a87
fldz
mov eax, dword [ebx + 0xa4]
mov eax, dword [eax + 0x5c]
push 0xffffffffffffffff
sub esp, 8
lea ecx, [ebx + 0xa4]
fst dword [esp + 4]
lea edx, [esp + 0x7c]
fstp dword [esp]
push edx
call eax
fldz
mov edx, dword [ebx + 0x1cc]
mov edx, dword [edx + 0x5c]
push 0xffffffffffffffff
sub esp, 8
lea ecx, [ebx + 0x1cc]
fst dword [esp + 4]
lea eax, [esp + 0x7c]
fstp dword [esp]
push eax
call edx
fldz
mov eax, dword [ebx + 8]
fst dword [esp + 0x20]
mov eax, dword [eax + 8]
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
add eax, 0xdf478
mov eax, dword [eax + 8]
fstp dword [esp + 0x28]
fild dword [esp + 0x14]
fstp dword [esp + 0x2c]
test eax, eax
je 0x46b147
mov ecx, dword [eax + 0xc]
jmp 0x46b149
xor ecx, ecx
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
push esi
mov esi, ecx
mov dword [eax + 0xc], edx
call fcn.004bd278
fld dword [esp + 0x30]
fld qword [0x6a2148]
add esp, 8
fmul st(1)
lea eax, [esp + 0xfc]
fstp dword [esp + 0x24]
fmul qword [0x6a20d8]
fstp dword [esp + 0x1c]
fldz
fstp dword [esp + 8]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esp + 0x1c]
fstp dword [esp]
push eax
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x30]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x138]
push ebp
sub esp, 8
fst dword [esp + 4]
lea ecx, [esp + 0x3c]
fstp dword [esp]
lea esi, [ebx + 0x138]
push ecx
lea eax, [esp + 0x100]
lea edx, [esp + 0x80]
call fcn.004044d0
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx + 0x4d8]
add eax, 0xffffffd8
cmp eax, 0x14
ja case.0x46b20a.42
movzx eax, byte [eax + 0x46b390]
jmp dword [eax*4 + 0x46b388]
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0xfc]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esp + 0x1c]
fstp dword [esp]
push ecx
jmp 0x46b26d
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea edx, [esp + 0xbc]
fld dword [esp + 0x28]
fld qword [0x6a23f0]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmul qword [0x6a23e8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push edx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x30]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x260]
push ebp
sub esp, 8
fst dword [esp + 4]
lea eax, [esp + 0x3c]
fstp dword [esp]
push eax
lea esi, [ebx + 0x260]
lea eax, [esp + 0xc0]
lea edx, [esp + 0x80]
call fcn.004044d0
mov edx, dword [edi + 0x5c]
push eax
mov ecx, esi
call edx
push ebp
lea eax, [esp + 0x74]
push eax
lea ecx, [ebx + 0x478]
push ecx
call fcn.00443990
mov edx, dword [ebx + 8]
mov eax, dword [edx + 8]
cmp dword [eax + 0x20e8], 0
je 0x46b357
fldz
sub esp, 0xc
fstp dword [esp + 8]
lea ecx, [esp + 0xbc]
fld dword [esp + 0x28]
fld qword [0x6a1588]
fmul st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmul qword [0x6a14f8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push ecx
call fcn.0047402e
add esp, 0x10
lea ecx, [esp + 0x30]
call fcn.00404580
fldz
mov edi, dword [ebx + 0x10]
push 0xffffffffffffffff
sub esp, 8
fst dword [esp + 4]
lea edx, [esp + 0x3c]
fstp dword [esp]
push edx
lea esi, [ebx + 0x10]
lea eax, [esp + 0xc0]
lea edx, [esp + 0x80]
call fcn.004044d0
push eax
mov eax, dword [edi + 0x5c]
mov ecx, esi
call eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 8]
add eax, 0xdf478
mov eax, dword [eax + 8]
test eax, eax
je 0x46b36e
mov eax, dword [eax + 0xc]
jmp 0x46b370
xor eax, eax
push 1
push 1
xor edi, edi
mov ecx, eax
call fcn.00470a87
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret