Function at 0x508e00
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x224
mov eax, dword [0x961870]
push ebx
push esi
mov esi, dword [0x96186c]
cmp esi, eax
push edi
jae 0x508e3a
mov dword [esi], str.TtCapsuleTriangle
rdtsc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], eax
add esi, 0xc
mov dword [0x96186c], esi
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov dword [esp + 0x130], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x134], edx
fld dword [esi + 0x10]
fld dword [esi + 0x14]
mov eax, dword [eax + 8]
fld dword [esi + 0x18]
add eax, 0x20
fld st(0)
mov edi, dword [edx]
fmul dword [eax + 0x20]
mov dword [esp + 0x28], edi
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x90]
fld st(0)
fmul dword [eax + 0x24]
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fld st(3)
fmul dword [eax + 4]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x94]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
mov dword [esp + 0x9c], 0
fstp dword [esp + 0x98]
fld dword [esi + 0x20]
fld dword [esi + 0x24]
fld dword [esi + 0x28]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0xa0]
fld st(0)
fmul dword [eax + 0x24]
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fld st(3)
fmul dword [eax + 4]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0xa4]
fmul dword [eax + 0x28]
fxch st(1)
fmul dword [eax + 0x18]
faddp st(1)
fxch st(1)
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [esp + 0xac], 0
add eax, 0x20
fstp dword [esp + 0xa8]
fld dword [edi + 0x10]
fld dword [edi + 0x14]
fld dword [edi + 0x18]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x1d0]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x1d4]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
mov dword [esp + 0x1dc], 0
fstp dword [esp + 0x1d8]
fld dword [edi + 0x20]
fld dword [edi + 0x24]
fld dword [edi + 0x28]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x1e0]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x1e4]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
mov dword [esp + 0x1ec], 0
fstp dword [esp + 0x1e8]
fld dword [edi + 0x30]
fld dword [edi + 0x34]
fld dword [edi + 0x38]
fld st(0)
fmul dword [eax + 0x20]
fld st(2)
fmul dword [eax + 0x10]
faddp st(1)
fld st(3)
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fstp dword [esp + 0x1f0]
fld st(2)
fmul dword [eax + 4]
fld st(1)
fmul dword [eax + 0x24]
faddp st(1)
fld st(2)
fmul dword [eax + 0x14]
lea edx, [esp + 0x70]
push edx
add ecx, 0x14
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x1f8]
fxch st(2)
fmul dword [eax + 8]
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
lea eax, [esp + 0xd4]
push eax
push ecx
lea ecx, [esp + 0x1dc]
fstp dword [esp + 0x204]
push ecx
mov dword [esp + 0x20c], 0
call fcn.00529ce0
fld dword [esp + 0xa0]
fsub dword [esp + 0x1e0]
add esp, 0x10
fld dword [esp + 0x94]
fsub dword [esp + 0x1d4]
fld dword [esp + 0x98]
fsub dword [esp + 0x1d8]
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
fld dword [esp + 0xa0]
mov dword [esp + 0x24], edx
fsub dword [esp + 0x1d0]
fstp dword [esp + 0x60]
fld dword [esp + 0xa4]
fsub dword [esp + 0x1d4]
fstp dword [esp + 0x64]
fld dword [esp + 0xa8]
fsub dword [esp + 0x1d8]
fstp dword [esp + 0x68]
fld st(1)
fstp dword [esp + 0x1c]
fst dword [esp + 0x20]
fld dword [esp + 0x58]
fmul dword [esp + 0xf0]
fld st(1)
fmul dword [esp + 0xe0]
faddp st(1)
fxch st(2)
fmul dword [esp + 0xd0]
faddp st(2)
fxch st(1)
fadd dword [esp + 0x100]
fstp dword [esp + 0x50]
fld dword [esp + 0x58]
fmul dword [esp + 0xf4]
fxch st(1)
fmul dword [esp + 0xe4]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0xd4]
faddp st(1)
fadd dword [esp + 0x104]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [esp + 0xf8]
fld dword [esp + 0x1c]
fmul dword [esp + 0xd8]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0xe8]
faddp st(1)
fadd dword [esp + 0x108]
fstp dword [esp + 0x58]
fld dword [esp + 0x1c]
fmul dword [esp + 0xdc]
fld dword [esp + 0x20]
fmul dword [esp + 0xec]
faddp st(1)
fld dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
fmul dword [esp + 0xfc]
faddp st(1)
fadd dword [esp + 0x10c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x60]
fld dword [esp + 0x64]
fld dword [esp + 0x68]
fld dword [esp + 0x64]
fmul dword [esp + 0xe0]
fld dword [esp + 0x60]
fmul dword [esp + 0xd0]
faddp st(1)
fld dword [esp + 0xf0]
fmul dword [esp + 0x68]
faddp st(1)
fadd dword [esp + 0x100]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul dword [esp + 0xe4]
fld st(3)
fmul dword [esp + 0xd4]
faddp st(1)
fld dword [esp + 0xf4]
fmul dword [esp + 0x68]
faddp st(1)
fadd dword [esp + 0x104]
fstp dword [esp + 0x64]
fld st(2)
fmul dword [esp + 0xd8]
fld st(2)
fmul dword [esp + 0xe8]
faddp st(1)
fld dword [esp + 0xf8]
fmul dword [esp + 0x68]
faddp st(1)
fadd dword [esp + 0x108]
fstp dword [esp + 0x68]
fxch st(2)
fmul dword [esp + 0xdc]
fxch st(1)
fmul dword [esp + 0xec]
faddp st(1)
fxch st(1)
fmul dword [esp + 0xfc]
faddp st(1)
fadd dword [esp + 0x10c]
fstp dword [esp + 0x6c]
fld dword [esi + 0xc]
fadd dword [edi + 0xc]
mov dword [esp + 0x14c], 0x7f7fffff
mov dword [esp + 0x17c], 0x7f7fffff
mov dword [esp + 0x1ac], 0x7f7fffff
fst dword [esp + 0x4c]
fadd dword [eax + 8]
fcom dword [esp + 0x50]
fnstsw ax
test ah, 5
jp 0x5092bd
mov cl, 1
jmp 0x5092bf
xor cl, cl
fcom dword [esp + 0x54]
fnstsw ax
test ah, 5
jp 0x5092ce
mov bl, 1
jmp 0x5092d0
xor bl, bl
fcom dword [esp + 0x58]
fnstsw ax
test ah, 5
jp 0x5092df
mov dl, 1
jmp 0x5092e1
xor dl, dl
fcom dword [esp + 0x5c]
fnstsw ax
test ah, 5
jp 0x5092f0
mov al, 1
jmp 0x5092f2
xor al, al
fcom dword [esp + 0x60]
movzx ecx, cl
movzx edx, dl
shl ecx, 3
shl edx, 1
or ecx, edx
movzx edx, bl
shl edx, 2
movzx eax, al
or ecx, edx
or ecx, eax
mov byte [esp + 0x1b], 1
fnstsw ax
test ah, 5
jnp 0x509321
mov byte [esp + 0x1b], 0
fcom dword [esp + 0x64]
fnstsw ax
test ah, 5
jp 0x509330
mov bl, 1
jmp 0x509332
xor bl, bl
fcom dword [esp + 0x68]
fnstsw ax
test ah, 5
jp 0x509341
mov dl, 1
jmp 0x509343
xor dl, dl
fcom dword [esp + 0x6c]
fnstsw ax
test ah, 5
jp 0x509352
mov al, 1
jmp 0x509354
xor al, al
movzx edx, dl
movzx esi, bl
shl edx, 1
shl esi, 2
or edx, esi
movzx esi, byte [esp + 0x1b]
shl esi, 3
movzx eax, al
or edx, esi
or edx, eax
test ecx, edx
jne 0x509fb9
fchs
fld dword [esp + 0x5c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x50939c
fld dword [esp + 0x6c]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x509fbb
jmp 0x50939e
fstp st(0)
fld dword [esp + 0x50]
mov byte [esp + 0x1b], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x5093b9
mov byte [esp + 0x1b], 0
fld dword [esp + 0x54]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5093ce
mov bl, 1
jmp 0x5093d0
xor bl, bl
fld dword [esp + 0x58]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5093e5
mov cl, 1
jmp 0x5093e7
xor cl, cl
fld dword [esp + 0x5c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5093fc
mov al, 1
jmp 0x5093fe
xor al, al
fld dword [esp + 0x60]
movzx edx, cl
fcomp dword [0x641de0]
movzx ecx, bl
shl edx, 1
shl ecx, 2
or edx, ecx
movzx ecx, byte [esp + 0x1b]
shl ecx, 3
movzx eax, al
or edx, ecx
or edx, eax
mov dword [esp + 0xc0], edx
fnstsw ax
test ah, 5
mov byte [esp + 0x1b], 1
jnp 0x50943c
mov byte [esp + 0x1b], 0
fld dword [esp + 0x64]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x509451
mov bl, 1
jmp 0x509453
xor bl, bl
fld dword [esp + 0x68]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x509468
mov cl, 1
jmp 0x50946a
xor cl, cl
fld dword [esp + 0x6c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x50947f
mov al, 1
jmp 0x509481
xor al, al
movzx ecx, cl
movzx esi, bl
shl ecx, 1
shl esi, 2
or ecx, esi
movzx esi, byte [esp + 0x1b]
movzx eax, al
shl esi, 3
or ecx, esi
or ecx, eax
mov eax, ecx
xor eax, edx
test al, 1
mov dword [esp + 0xc4], ecx
je 0x509a5c
fld dword [esp + 0x5c]
mov byte [esp + 0x2f], 1
fsub dword [esp + 0x6c]
fdivr dword [esp + 0x5c]
fld dword [0x6419bc]
fsub st(1)
fld st(1)
fmul dword [esp + 0x60]
fld st(1)
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x64]
fmul st(3)
fld dword [esp + 0x54]
fmul st(3)
faddp st(1)
fstp dword [esp + 0x84]
fld dword [esp + 0x58]
fmul st(2)
fld st(3)
fmul dword [esp + 0x68]
faddp st(1)
fstp dword [esp + 0x88]
fld dword [esp + 0x5c]
fmul st(2)
fxch st(3)
fmul dword [esp + 0x6c]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x8c]
fxch st(1)
fcomp dword [0x641de0]
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x50952e
mov byte [esp + 0x2f], 0
fld dword [esp + 0x84]
mov byte [esp + 0x1b], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x50954c
mov byte [esp + 0x1b], 0
fld dword [esp + 0x88]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x509564
mov bl, 1
jmp 0x509566
xor bl, bl
fld dword [esp + 0x8c]
mov byte [esp + 0x2e], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x509584
mov byte [esp + 0x2e], 0
xor eax, eax
mov al, byte [esp + 0x1b]
shl ebx, 1
shl eax, 2
or ebx, eax
xor eax, eax
mov al, byte [esp + 0x2f]
neg eax
shl eax, 3
or ebx, eax
or ebx, dword [esp + 0x2e]
and ebx, 0xe
cmp bl, 0xe
jne 0x509a5c
mov dword [esp + 0x17c], 0xff7fffff
lea esi, [esp + 0xc0]
xor ecx, ecx
mov edx, dword [esi]
mov eax, edx
and eax, 0xe
cmp al, 0xe
jne 0x5096cb
fld dword [esp + ecx + 0x5c]
fabs
fchs
fsub dword [esp + 0x4c]
fcom dword [esp + 0x17c]
fnstsw ax
test ah, 0x41
jne 0x5096c9
test dl, 1
je 0x509633
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x180], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x188], edx
mov edx, dword [esp + ecx + 0x98]
mov dword [esp + 0x18c], eax
fld dword [edi + 0xc]
mov dword [esp + 0x178], edx
jmp 0x50967a
fld dword [esp + 0x70]
mov eax, dword [esp + ecx + 0x98]
fchs
fstp dword [esp + 0x180]
fld dword [esp + 0x74]
fchs
fstp dword [esp + 0x184]
fld dword [esp + 0x78]
fchs
fstp dword [esp + 0x188]
fld dword [esp + 0x7c]
fchs
fstp dword [esp + 0x18c]
fld dword [edi + 0xc]
mov dword [esp + 0x178], eax
fchs
fsub dword [esp + ecx + 0x5c]
fld dword [esp + ecx + 0x90]
fld dword [esp + ecx + 0x94]
fld st(2)
fmul dword [esp + 0x70]
fadd st(2)
fstp dword [esp + 0x170]
fld st(2)
fmul dword [esp + 0x74]
fadd st(1)
fstp dword [esp + 0x174]
fstp st(0)
fstp st(0)
fmul dword [esp + 0x78]
fadd dword [esp + 0x178]
fstp dword [esp + 0x178]
fstp dword [esp + 0x17c]
jmp 0x5096cb
fstp st(0)
add ecx, 0x10
add esi, 4
cmp ecx, 0x20
jl 0x5095c2
fld dword [esp + 0x60]
xor ecx, ecx
fsub dword [esp + 0x50]
fstp dword [esp + 0x80]
fld dword [esp + 0x64]
fsub dword [esp + 0x54]
fstp dword [esp + 0x84]
fld dword [esp + 0x68]
fsub dword [esp + 0x58]
fstp dword [esp + 0x88]
fld dword [esp + 0x6c]
fsub dword [esp + 0x5c]
fst dword [esp + 0x8c]
fmul dword [esp + 0x8c]
nop
fld dword [esp + ecx + 0x80]
mov edx, dword [esp + 0x8c]
fld st(0)
mov dword [esp + 0x20], edx
fmul st(1)
fadd st(2)
fdivr dword [0x6419bc]
fld dword [esp + 0x5c]
fmul st(2)
fld dword [esp + 0x8c]
fmul dword [esp + ecx + 0x50]
fsubp st(1)
fld st(0)
fmul st(1)
fmul st(2)
fstp dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x4c]
fadd dword [esp + 0x17c]
fld st(0)
fmul st(1)
fld dword [esp + 0x28]
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x5099b9
fld st(1)
fmul dword [esp + ecx + 0x50]
fld dword [esp + 0x5c]
fmul dword [esp + 0x8c]
faddp st(1)
fmul st(1)
fchs
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esp + 0x24]
fcomp dword [0x65c220]
fnstsw ax
test ah, 0x41
jne 0x5099bb
fld dword [esp + 0x24]
fcomp dword [0x65c3e4]
fnstsw ax
test ah, 5
jp 0x5099bb
fld dword [esp + ecx + 0xd0]
fld dword [esp + ecx + 0xe0]
fstp dword [esp + 0x34]
fld dword [esp + ecx + 0xf0]
fstp dword [esp + 0x38]
fld dword [esp + 0x8c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x50980a
fld dword [esp + 0x8c]
fchs
fstp dword [esp + 0x20]
fxch st(1)
fchs
fxch st(1)
fmul dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x34]
fld dword [esp + 0x20]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fmul dword [0x641de0]
fstp dword [esp + 0x3c]
fxch st(2)
fchs
fst dword [esp + 0x1c]
fmul dword [esp + 0x70]
fadd st(1)
fstp dword [esp + 0x180]
fld dword [esp + 0x1c]
fmul dword [esp + 0x74]
faddp st(2)
fstp st(0)
fld dword [esp + 0x1c]
fmul dword [esp + 0x78]
fadd dword [esp + 0x38]
fstp dword [esp + 0x188]
fld dword [esp + 0x1c]
fmul dword [esp + 0x7c]
fadd dword [esp + 0x3c]
fld dword [esp + 0x188]
fmul dword [esp + 0x188]
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x180]
fmul dword [esp + 0x180]
faddp st(1)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5098af
fsqrt
fdivr dword [0x6419bc]
jmp 0x5098b7
fstp st(0)
fld dword [0x641de0]
fld dword [esp + 0x180]
fmul st(1)
fstp dword [esp + 0x180]
fxch st(2)
fmul st(2)
fstp dword [esp + 0x184]
fld dword [esp + 0x188]
fmul st(2)
fstp dword [esp + 0x188]
fmul st(1)
fstp dword [esp + 0x18c]
fstp st(0)
fld dword [0x6419bc]
fsub dword [esp + 0x24]
fld dword [esp + 0x90]
fmul st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0xa0]
faddp st(1)
fld dword [esp + 0x94]
fmul st(2)
fld dword [esp + 0x24]
fmul dword [esp + 0xa4]
faddp st(1)
fstp dword [esp + 0xc4]
fld dword [esp + 0x98]
fmul st(2)
fld dword [esp + 0x24]
fmul dword [esp + 0xa8]
faddp st(1)
fstp dword [esp + 0xc8]
fld dword [esp + 0x28]
fsqrt
fchs
fstp dword [esp + 0x28]
fld dword [edi + 0xc]
fsub dword [esp + 0x28]
fstp dword [esp + 0x1c]
fld dword [esp + 0x180]
fmul dword [esp + 0x1c]
fadd st(1)
fstp dword [esp + 0x170]
fstp st(0)
fstp st(0)
fld dword [esp + 0x184]
fmul dword [esp + 0x1c]
fadd dword [esp + 0xc4]
fstp dword [esp + 0x174]
fld dword [esp + 0x188]
fmul dword [esp + 0x1c]
fadd dword [esp + 0xc8]
fstp dword [esp + 0x178]
fld dword [esp + 0x28]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x17c]
jmp 0x5099bd
fstp st(0)
fstp st(0)
add ecx, 4
cmp ecx, 0xc
jl 0x509720
fstp st(0)
fld dword [esp + 0x14c]
fcomp dword [esp + 0x17c]
fnstsw ax
test ah, 5
jp 0x509fbb
mov eax, dword [ebp + 0x10]
fld dword [esp + 0x14c]
fcomp dword [eax + 8]
fnstsw ax
test ah, 5
jp 0x50a053
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x144]
mov eax, dword [esp + 0x148]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0x150]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esp + 0x158]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0x15c]
jmp 0x50a02e
fld dword [esp + 0xa0]
or ecx, edx
fsub dword [esp + 0x90]
xor ebx, ebx
and ecx, 0xe
cmp cl, 0xe
fstp dword [esp + 0xb0]
lea esi, [esp + 0x140]
fld dword [esp + 0xa4]
mov byte [esp + 0x24], bl
fsub dword [esp + 0x94]
fstp dword [esp + 0xb4]
fld dword [esp + 0xa8]
fsub dword [esp + 0x98]
fstp dword [esp + 0xb8]
fld dword [esp + 0xac]
fsub dword [esp + 0x9c]
fstp dword [esp + 0xbc]
je 0x509afc
mov byte [esp + 0x24], 1
mov dword [esp + 0x1c], 8
xor edi, edi
jmp 0x509ae0
mov al, byte [esp + 0x24]
test al, al
jne 0x509c09
mov eax, dword [esp + 0x1c]
test dword [esp + ebx*4 + 0xc0], eax
jmp 0x509c1f
cmp ebx, 2
jge 0x5099cb
mov eax, dword [esp + ebx*4 + 0xc0]
mov ecx, eax
and ecx, 0xe
cmp cl, 0xe
jne 0x509acc
fld dword [edi + 0xc]
test al, 1
mov eax, ebx
je 0x509b9c
fchs
shl eax, 4
fsub dword [esp + eax + 0x5c]
lea ecx, [esp + eax + 0x5c]
fld dword [esp + 0x70]
lea eax, [esp + eax + 0x90]
add esi, 0x30
fmul st(1)
inc ebx
fadd dword [eax]
fstp dword [esi - 0x30]
fld dword [esp + 0x74]
fmul st(1)
fadd dword [eax + 4]
fstp dword [esi - 0x2c]
fld dword [esp + 0x78]
fmul st(1)
fadd dword [eax + 8]
fstp dword [esi - 0x28]
fmul dword [esp + 0x7c]
fadd dword [eax + 0xc]
fstp dword [esi - 0x24]
fld dword [ecx]
fchs
fsub dword [esp + 0x4c]
fstp dword [esi - 0x24]
fld dword [esp + 0x70]
fchs
fstp dword [esi - 0x20]
fld dword [esp + 0x74]
fchs
fstp dword [esi - 0x1c]
fld dword [esp + 0x78]
fchs
fstp dword [esi - 0x18]
fld dword [esp + 0x7c]
fchs
fstp dword [esi - 0x14]
jmp 0x509afc
shl eax, 4
fsub dword [esp + eax + 0x5c]
lea ecx, [esp + eax + 0x5c]
fld dword [esp + 0x70]
lea eax, [esp + eax + 0x90]
mov edx, dword [esp + 0x70]
fmul st(1)
add esi, 0x30
inc ebx
fadd dword [eax]
fstp dword [esi - 0x30]
fld dword [esp + 0x74]
fmul st(1)
fadd dword [eax + 4]
fstp dword [esi - 0x2c]
fld dword [esp + 0x78]
fmul st(1)
fadd dword [eax + 8]
fstp dword [esi - 0x28]
fmul dword [esp + 0x7c]
fadd dword [eax + 0xc]
mov eax, dword [esp + 0x74]
fstp dword [esi - 0x24]
fld dword [ecx]
mov ecx, dword [esp + 0x78]
fsub dword [esp + 0x4c]
fstp dword [esi - 0x24]
mov dword [esi - 0x20], edx
mov edx, dword [esp + 0x7c]
mov dword [esi - 0x1c], eax
mov dword [esi - 0x18], ecx
mov dword [esi - 0x14], edx
jmp 0x509afc
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0x1c]
and ecx, edx
mov edx, dword [esp + 0xc0]
test edx, ecx
jne 0x509f8c
movsx ecx, byte [edi + 0x65cef8]
movsx eax, byte [edi + 0x65cefa]
shl ecx, 4
lea ecx, [esp + ecx + 0x1d0]
shl eax, 4
lea eax, [esp + eax + 0x1d0]
fld dword [ecx]
lea edx, [esp + 0x80]
fsub dword [eax]
fstp dword [esp + 0x80]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x84]
fld dword [ecx + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x88]
fld dword [ecx + 0xc]
lea ecx, [esp + 0x200]
fsub dword [eax + 0xc]
push ecx
push edx
push eax
lea eax, [esp + 0xbc]
fstp dword [esp + 0x98]
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.00529600
fld dword [esp + 0x60]
fadd dword [esi + 0xc]
mov edx, eax
add esp, 0x14
fld st(0)
fmul st(1)
fld dword [esp + 0x220]
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x509f8c
mov eax, 1
mov ecx, ebx
shl eax, cl
test edx, eax
je 0x509ce3
mov al, byte [esp + 0x24]
test al, al
je 0x509f8c
mov ebx, 1
test edx, edx
jne 0x509d52
fld dword [esp + 0x88]
mov dword [esp + 0x3c], edx
fmul dword [esp + 0xb4]
fld dword [esp + 0x84]
fmul dword [esp + 0xb8]
fsubp st(1)
fld dword [esp + 0x80]
fmul dword [esp + 0xb8]
fld dword [esp + 0xb0]
fmul dword [esp + 0x88]
fsubp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0xb0]
fmul dword [esp + 0x84]
fld dword [esp + 0x80]
fmul dword [esp + 0xb4]
fsubp st(1)
fstp dword [esp + 0x38]
jmp 0x509e78
fld dword [esp + 0x220]
fcomp dword [0x65c3e0]
fnstsw ax
test ah, 0x41
jp 0x509e50
fld dword [esp + edi*4 + 0xd0]
mov dword [esp + 0x21c], 0
fstp dword [esp + 0x210]
mov dword [esp + 0x3c], 0
fld dword [esp + edi*4 + 0xe0]
fstp dword [esp + 0x214]
fld dword [esp + edi*4 + 0xf0]
fstp dword [esp + 0x218]
fld dword [esp + 0x88]
fmul dword [esp + 0xb4]
fld dword [esp + 0x84]
fmul dword [esp + 0xb8]
fsubp st(1)
fld dword [esp + 0x80]
fmul dword [esp + 0xb8]
fld dword [esp + 0xb0]
fmul dword [esp + 0x88]
fsubp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0xb0]
fmul dword [esp + 0x84]
fld dword [esp + 0x80]
fmul dword [esp + 0xb4]
fsubp st(1)
fstp dword [esp + 0x38]
fld st(0)
fmul st(1)
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fcomp dword [0x65c3e0]
fnstsw ax
test ah, 0x41
jp 0x509e78
mov ecx, dword [esp + 0x214]
fstp st(0)
mov edx, dword [esp + 0x218]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0
jmp 0x509e71
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x21c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fld dword [esp + 0x210]
fld st(0)
fmul st(1)
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x509eaf
fsqrt
fdivr dword [0x6419bc]
fstp dword [esp + 0x20]
jmp 0x509eb9
fstp st(0)
mov dword [esp + 0x20], 0
fmul dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x34]
fld dword [esp + 0x20]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x210]
fmul st(2)
fld dword [esp + 0x218]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x214]
fmul st(2)
faddp st(1)
fcom dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x509f2d
fchs
fxch st(2)
fchs
fxch st(2)
fxch st(1)
fchs
fxch st(1)
fld dword [esp + 0x38]
fchs
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fchs
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
fld dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
fsub st(1)
mov edx, dword [esp + 0x3c]
fld st(0)
fmul st(4)
fadd dword [esp + 0x200]
fstp dword [esi]
fld st(0)
fmul st(3)
fadd dword [esp + 0x204]
fstp dword [esi + 4]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [esp + 0x208]
fstp dword [esi + 8]
fmul dword [esp + 0x3c]
fadd dword [esp + 0x20c]
fstp dword [esi + 0xc]
fsub dword [esp + 0x4c]
fstp dword [esi + 0xc]
mov dword [esi + 0x18], ecx
fxch st(1)
mov dword [esi + 0x1c], edx
fstp dword [esi + 0x10]
fstp dword [esi + 0x14]
mov edx, dword [esp + 0x1c]
sar edx, 1
inc edi
cmp edi, 3
mov dword [esp + 0x1c], edx
jl 0x509ae0
mov al, byte [esp + 0x24]
test al, al
jne 0x5099cb
mov edi, dword [esp + 0x28]
add esi, 0x30
inc ebx
jmp 0x509afc
fstp st(0)
mov eax, dword [ebp + 0x10]
fld dword [esp + 0x17c]
fcomp dword [eax + 8]
fnstsw ax
test ah, 5
jp 0x50a053
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x174]
mov eax, dword [esp + 0x178]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x17c]
mov dword [esp + 0x114], edx
mov edx, dword [esp + 0x180]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x184]
mov dword [esp + 0x11c], ecx
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0x18c]
mov dword [esp + 0x128], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x12c], edx
lea edx, [esp + 0x110]
mov dword [esp + 0x124], eax
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x50a07d
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [0x96186c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10