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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x28]
mov ecx, edi
call fcn.0052b170
mov ecx, edi
mov ebx, eax
call fcn.0052b150
cdq
and edx, 0xf
add eax, edx
mov ecx, eax
sar ecx, 4
test ecx, ecx
je 0x52214e
mov eax, dword [esi + 0x1c]
xor edx, edx
div ecx
mov ecx, ebx
lea eax, [eax + eax*2]
add eax, eax
shl edx, 4
add eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
add edx, 0x10
add eax, 0xc
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.00494ee0
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
mov ecx, ebx
fld1
fdivrp st(1)
fstp dword [esp + 0x40]
call fcn.0056f330
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fld1
fdivrp st(1)
fstp dword [esp + 0x3c]
fild dword [esp + 0x20]
fld dword [esp + 0x40]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fild dword [esp + 0x24]
fld dword [esp + 0x3c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x30]
fild dword [esp + 0x28]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fimul dword [esp + 0x2c]
fstp dword [esp + 0x20]
fld dword [esi + 0x20]
fmul qword [0x62bb10]
fstp dword [esp + 0x18]
fld dword [esi + 0x20]
fmul qword [0x622460]
fstp dword [esp + 0x44]
fld dword [esi + 0x14]
fld qword [0x6221e0]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fstp dword [esp + 0x50]
fld dword [esi + 0x18]
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esp + 0x54]
fldz
fst dword [esp + 0x58]
fld dword [esp + 0x40]
fstp dword [esp + 0x10]
fld dword [esp + 0x30]
mov eax, dword [esp + 0x10]
fst dword [esp + 0x14]
mov dword [esp + 0x60], eax
fld1
mov ecx, dword [esp + 0x14]
fcom dword [esi + 4]
mov dword [esp + 0x64], ecx
fnstsw ax
fld qword [0x6221e8]
test ah, 0x41
jp 0x521b07
mov edi, 0xff
jmp 0x521b42
fxch st(3)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x521b17
xor edi, edi
jmp 0x521b40
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(4)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edi, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x521b55
mov edx, 0xff
jmp 0x521b90
fxch st(3)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x521b65
xor edx, edx
jmp 0x521b8e
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edx, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x521ba1
mov ecx, 0xff
jmp 0x521bdc
fxch st(3)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x521bb1
xor ecx, ecx
jmp 0x521bda
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x521bed
mov eax, 0xff
jmp 0x521c28
fxch st(3)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x521bfd
xor eax, eax
jmp 0x521c26
fld dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fld dword [esi + 0x14]
shl eax, 8
fadd dword [esp + 0x18]
or eax, edi
shl eax, 8
or eax, edx
fsub st(6)
shl eax, 8
or eax, ecx
mov dword [esp + 0x5c], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x68]
fxch st(5)
fstp dword [esp + 0x6c]
fxch st(3)
fst dword [esp + 0x70]
fld dword [esp + 0x3c]
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fxch st(2)
mov dword [esp + 0x78], edx
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fxch st(2)
mov dword [esp + 0x7c], eax
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x521c8d
mov edi, 0xff
jmp 0x521cc8
fxch st(1)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x521c9d
xor edi, edi
jmp 0x521cc6
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(5)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x521cd9
mov edx, 0xff
jmp 0x521d14
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x521ce9
xor edx, edx
jmp 0x521d12
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(5)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x521d25
mov ecx, 0xff
jmp 0x521d60
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x521d35
xor ecx, ecx
jmp 0x521d5e
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(5)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x521d71
mov eax, 0xff
jmp 0x521dac
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x521d81
xor eax, eax
jmp 0x521daa
fld dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(5)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fld dword [esp + 0x4c]
shl eax, 8
fstp dword [esp + 0x80]
or eax, edi
fld dword [esi + 0x18]
shl eax, 8
fadd dword [esp + 0x44]
or eax, edx
shl eax, 8
or eax, ecx
fsub st(5)
mov dword [esp + 0x74], eax
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fst dword [esp + 0x84]
fxch st(2)
fst dword [esp + 0x88]
fld dword [esp + 0x40]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fld dword [esp + 0x20]
mov dword [esp + 0x90], ecx
fst dword [esp + 0x48]
mov edx, dword [esp + 0x48]
fxch st(2)
mov dword [esp + 0x94], edx
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x521e24
mov edi, 0xff
jmp 0x521e5f
fxch st(1)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x521e34
xor edi, edi
jmp 0x521e5d
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edi, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x521e70
mov edx, 0xff
jmp 0x521eab
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x521e80
xor edx, edx
jmp 0x521ea9
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x521ebc
mov ecx, 0xff
jmp 0x521ef7
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x521ecc
xor ecx, ecx
jmp 0x521ef5
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x521f08
mov eax, 0xff
jmp 0x521f43
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x521f18
xor eax, eax
jmp 0x521f41
fld dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(1)
shl eax, 8
fxch st(5)
fstp dword [esp + 0x98]
or eax, edi
fxch st(2)
shl eax, 8
fstp dword [esp + 0x9c]
or eax, edx
fxch st(1)
shl eax, 8
fst dword [esp + 0xa0]
or eax, ecx
fld dword [esp + 0x3c]
mov dword [esp + 0x8c], eax
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
fxch st(1)
mov dword [esp + 0xa8], eax
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fxch st(2)
mov dword [esp + 0xac], ecx
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x521fab
mov edi, 0xff
jmp 0x521fe6
fxch st(2)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x521fbb
xor edi, edi
jmp 0x521fe4
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(4)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edi, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(2)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x521ff7
mov edx, 0xff
jmp 0x522032
fxch st(2)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x522007
xor edx, edx
jmp 0x522030
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(4)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(2)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x522043
mov ecx, 0xff
jmp 0x52207e
fxch st(2)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x522053
xor ecx, ecx
jmp 0x52207c
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(4)
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fldcw word [esp + 0x10]
fxch st(2)
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x522095
fstp st(2)
mov eax, 0xff
fstp st(0)
fstp st(0)
jmp 0x5220d0
fxch st(1)
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x5220a9
fstp st(1)
xor eax, eax
fstp st(0)
jmp 0x5220d0
fmul dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
faddp st(1)
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
fldcw word [esp + 0x10]
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
shl eax, 8
lea edx, [esp + 0x50]
or eax, ecx
push 4
push edx
mov dword [esp + 0xac], eax
call fcn.00513cd0
add esp, 8
test al, al
je 0x52214e
push 5
call fcn.00513a50
mov esi, dword [0x6b1ff8]
add esp, 4
mov ecx, ebx
call fcn.004e59a0
push eax
push 0
mov ecx, esi
call fcn.0050e950
mov ecx, dword [0x6b1ff8]
push 0
push 1
call fcn.0050e950
mov ecx, dword [0x6b1ff8]
push 0x142
call fcn.0050e9e0
mov ecx, dword [0x6b1ff8]
push 2
push 0
push 4
push 0
push 4
call fcn.0050ec30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret