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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 0x1c]
push edi
mov ecx, ebx
call fcn.0052b170
mov ecx, ebx
mov ebp, eax
call fcn.0052b180
mov ecx, ebp
mov edi, eax
call fcn.00494ee0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld1
mov ecx, ebp
fdivrp st(1)
fstp dword [esp + 0x34]
call fcn.0056f330
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld1
mov eax, dword [edi]
fdivrp st(1)
sub eax, dword [esi + 0x38]
mov ecx, dword [edi + 4]
sub ecx, dword [esi + 0x3c]
mov edx, dword [edi + 8]
add edx, dword [esi + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
add eax, dword [esi + 0x44]
fstp dword [esp + 0x30]
fild dword [esp + 0x18]
fld dword [esp + 0x34]
fld st(0)
mov dword [esp + 0x18], ecx
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x30]
fimul dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esi + 0x14]
fld qword [0x6221e0]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x38]
fld dword [esi + 0x18]
fsub st(2)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x3c]
fld dword [esi + 0x20]
fstp dword [esp + 0x40]
fld dword [esp + 0x34]
fst dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fld dword [esp + 0x14]
mov dword [esp + 0x48], ecx
fst dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fld1
mov dword [esp + 0x4c], edx
fcom dword [esi + 4]
fnstsw ax
fld qword [0x6221e8]
test ah, 0x41
jp 0x5204fe
mov edi, 0xff
jmp 0x520537
fldz
fcomp dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x52050e
xor edi, edi
jmp 0x520537
fld dword [esi + 4]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x52054a
mov edx, 0xff
jmp 0x520583
fldz
fcomp dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x52055a
xor edx, edx
jmp 0x520583
fld dword [esi + 8]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x520594
mov ecx, 0xff
jmp 0x5205cd
fldz
fcomp dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x5205a4
xor ecx, ecx
jmp 0x5205cd
fld dword [esi + 0xc]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x5205de
mov eax, 0xff
jmp 0x520617
fldz
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x5205ee
xor eax, eax
jmp 0x520617
fld dword [esi + 0x10]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x14]
shl eax, 8
fxch st(5)
fst dword [esp + 0x50]
or eax, edi
fxch st(4)
shl eax, 8
fst dword [esp + 0x54]
or eax, edx
fld dword [esi + 0x20]
shl eax, 8
fstp dword [esp + 0x58]
or eax, ecx
fld dword [esp + 0x30]
mov dword [esp + 0x44], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fxch st(2)
mov dword [esp + 0x60], eax
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fxch st(4)
mov dword [esp + 0x64], ecx
fcom dword [esi + 4]
fnstsw ax
fldz
test ah, 0x41
jp 0x520670
mov edi, 0xff
jmp 0x5206a7
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x52067e
xor edi, edi
jmp 0x5206a7
fld dword [esi + 4]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x5206ba
mov edx, 0xff
jmp 0x5206f5
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x5206ca
xor edx, edx
jmp 0x5206f3
fld dword [esi + 8]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x520706
mov ecx, 0xff
jmp 0x520741
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x520716
xor ecx, ecx
jmp 0x52073f
fld dword [esi + 0xc]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x520752
mov eax, 0xff
jmp 0x52078d
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x520762
xor eax, eax
jmp 0x52078b
fld dword [esi + 0x10]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
shl eax, 8
fxch st(4)
fst dword [esp + 0x68]
or eax, edi
fxch st(2)
shl eax, 8
fst dword [esp + 0x6c]
or eax, edx
fld dword [esi + 0x20]
shl eax, 8
fstp dword [esp + 0x70]
or eax, ecx
fxch st(3)
mov dword [esp + 0x5c], eax
fstp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
fld dword [esp + 0x20]
mov dword [esp + 0x78], edx
fst dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
fxch st(4)
mov dword [esp + 0x7c], eax
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x5207e4
mov edi, 0xff
jmp 0x52081f
fxch st(1)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x5207f4
xor edi, edi
jmp 0x52081d
fld dword [esi + 4]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x520830
mov edx, 0xff
jmp 0x52086b
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x520840
xor edx, edx
jmp 0x520869
fld dword [esi + 8]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x52087c
mov ecx, 0xff
jmp 0x5208b7
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x52088c
xor ecx, ecx
jmp 0x5208b5
fld dword [esi + 0xc]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x5208c8
mov eax, 0xff
jmp 0x520903
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x5208d8
xor eax, eax
jmp 0x520901
fld dword [esi + 0x10]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(6)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(7)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fxch st(2)
shl eax, 8
fstp dword [esp + 0x80]
or eax, edi
fxch st(2)
shl eax, 8
fstp dword [esp + 0x84]
or eax, edx
fld dword [esi + 0x20]
shl eax, 8
fstp dword [esp + 0x88]
or eax, ecx
fld dword [esp + 0x30]
mov dword [esp + 0x74], eax
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fxch st(2)
mov dword [esp + 0x90], ecx
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
fxch st(1)
mov dword [esp + 0x94], edx
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x520969
mov edi, 0xff
jmp 0x5209a4
fxch st(1)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x520979
xor edi, edi
jmp 0x5209a2
fld dword [esi + 4]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(4)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x5209b5
mov edx, 0xff
jmp 0x5209f0
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x5209c5
xor edx, edx
jmp 0x5209ee
fld dword [esi + 8]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(4)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x520a01
mov ecx, 0xff
jmp 0x520a3c
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x520a11
xor ecx, ecx
jmp 0x520a3a
fld dword [esi + 0xc]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x20], eax
fadd st(4)
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fldcw word [esp + 0x14]
fxch st(1)
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x520a53
fstp st(2)
mov eax, 0xff
fstp st(0)
fstp st(0)
jmp 0x520a8c
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x520a65
fstp st(1)
xor eax, eax
fstp st(0)
jmp 0x520a8c
fmul dword [esi + 0x10]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x14]
fld dword [esi + 0x34]
shl eax, 8
fcomp qword [0x622178]
or eax, edi
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esp + 0x8c], eax
fnstsw ax
mov ecx, ebx
test ah, 0x44
jp 0x520b65
call fcn.0052b150
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov ecx, ebx
fmul dword [esi + 0x2c]
fstp dword [esp + 0x18]
call fcn.0052b160
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul dword [esi + 0x30]
fstp dword [esp + 0x34]
fild dword [esi + 0x38]
fstp dword [esp + 0x20]
fld dword [esp + 0x38]
fld dword [esp + 0x20]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fild dword [esi + 0x3c]
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fld dword [esp + 0x20]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fild dword [esi + 0x40]
fadd dword [esp + 0x18]
fld dword [esp + 0x50]
fadd st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x68]
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x68]
fild dword [esi + 0x44]
fadd dword [esp + 0x34]
fld dword [esp + 0x6c]
fadd st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x80]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x80]
jmp 0x520cdc
call fcn.0052b150
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov ecx, ebx
fmul qword [0x6221e0]
fmul dword [esi + 0x2c]
fstp dword [esp + 0x14]
call fcn.0052b160
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul qword [0x6221e0]
fmul dword [esi + 0x30]
fstp dword [esp + 0x20]
fld dword [esp + 0x38]
fadd dword [esi + 0x24]
fstp dword [esp + 0x38]
fld dword [esi + 0x28]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x50]
fadd dword [esi + 0x24]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fadd dword [esi + 0x28]
fstp dword [esp + 0x54]
fld dword [esp + 0x68]
fadd dword [esi + 0x24]
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fadd dword [esi + 0x28]
fstp dword [esp + 0x6c]
fld dword [esp + 0x80]
fadd dword [esi + 0x24]
fstp dword [esp + 0x80]
fld dword [esp + 0x84]
fadd dword [esi + 0x28]
fstp dword [esp + 0x84]
fld dword [esi + 0x34]
fmul qword [0x622188]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.005c6400
fstp dword [esp + 0x34]
fld dword [esp + 0x14]
fchs
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x34]
fstp qword [esp + 0x28]
fld dword [esp + 0x30]
call fcn.005c6530
fstp dword [esp + 0x30]
fld dword [esp + 0x20]
fld st(0)
fchs
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fld st(0)
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fld qword [esp + 0x28]
fsub st(2)
fadd dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x34]
fld st(0)
fmulp st(4)
fld st(1)
fmul dword [esp + 0x18]
fld st(0)
fadd st(5)
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld st(1)
fmul dword [esp + 0x14]
fld st(0)
fsubrp st(5)
fld dword [esp + 0x50]
faddp st(5)
fxch st(4)
fstp dword [esp + 0x50]
fld st(2)
fmul dword [esp + 0x14]
fld st(0)
faddp st(6)
fld dword [esp + 0x54]
faddp st(6)
fxch st(5)
fstp dword [esp + 0x54]
fld st(5)
fmulp st(3)
fld qword [esp + 0x28]
fsub st(3)
fadd dword [esp + 0x68]
fstp dword [esp + 0x68]
fxch st(1)
fmulp st(5)
fadd st(4)
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
fsubp st(1)
fadd dword [esp + 0x80]
fstp dword [esp + 0x80]
faddp st(1)
fadd dword [esp + 0x84]
mov eax, dword [esi + 0x48]
fstp dword [esp + 0x84]
test eax, eax
jle 0x520d2c
cmp eax, 2
jle 0x520d0e
cmp eax, 3
jne 0x520d2c
mov ecx, dword [0x6b1ff8]
push 1
push 0x13
call fcn.0050f050
push 3
jmp 0x520d1f
mov ecx, dword [0x6b1ff8]
push 0xa
push 0x13
call fcn.0050f050
push 2
mov ecx, dword [0x6b1ff8]
push 0x14
call fcn.0050f050
lea eax, [esp + 0x38]
push 4
push eax
call fcn.00513cd0
add esp, 8
test al, al
je 0x520d94
push 5
call fcn.00513a50
mov edi, dword [0x6b1ff8]
add esp, 4
mov ecx, ebp
call fcn.004e59a0
push eax
push 0
mov ecx, edi
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
mov esi, dword [esi + 0x48]
dec esi
cmp esi, 2
ja 0x520db7
mov ecx, dword [0x6b1ff8]
push 0x13
call fcn.0050f070
mov ecx, dword [0x6b1ff8]
push 0x14
call fcn.0050f070
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret