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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1f4
mov eax, dword [0x961870]
push ebx
push esi
mov esi, dword [0x96186c]
cmp esi, eax
push edi
mov dword [esp + 0xbc], ecx
jae 0x507bc1
mov dword [esi], 0x65c3e8
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esi, 0xc
mov dword [0x96186c], esi
mov eax, dword [ebp + 8]
mov esi, dword [eax]
fld dword [esi + 0x10]
mov eax, dword [eax + 8]
fld dword [esi + 0x14]
add eax, 0x20
fld dword [esi + 0x18]
mov edx, dword [ebp + 0xc]
fld st(0)
mov ebx, dword [edx]
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 + 0x80]
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 + 0x84]
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 + 0x8c], 0
fstp dword [esp + 0x88]
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 + 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 eax, dword [edx + 8]
mov dword [esp + 0x9c], 0
add eax, 0x20
fstp dword [esp + 0x98]
fld dword [ebx + 0x10]
fld dword [ebx + 0x14]
fld dword [ebx + 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 + 0x110]
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 + 0x114]
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 + 0x11c], 0
fstp dword [esp + 0x118]
fld dword [ebx + 0x20]
fld dword [ebx + 0x24]
fld dword [ebx + 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 + 0x120]
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 + 0x124]
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 + 0x12c], 0
fstp dword [esp + 0x128]
fld dword [ebx + 0x30]
fld dword [ebx + 0x34]
fld dword [ebx + 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 + 0x130]
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 + 0x134]
lea edx, [esp + 0x60]
fxch st(2)
push edx
fmul dword [eax + 8]
add ecx, 0x14
fxch st(2)
fmul dword [eax + 0x28]
faddp st(2)
fmul dword [eax + 0x18]
faddp st(1)
fadd dword [eax + 0x38]
lea eax, [esp + 0xc4]
push eax
push ecx
lea ecx, [esp + 0x11c]
fstp dword [esp + 0x144]
push ecx
mov dword [esp + 0x14c], 0
call fcn.00529ce0
fld dword [esp + 0x90]
fsub dword [esp + 0x120]
add esp, 0x10
fld dword [esp + 0x84]
fsub dword [esp + 0x114]
fld dword [esp + 0x88]
fsub dword [esp + 0x118]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fld dword [esp + 0x90]
mov dword [esp + 0x14], edx
fsub dword [esp + 0x110]
fstp dword [esp + 0x40]
fld dword [esp + 0x94]
fsub dword [esp + 0x114]
fstp dword [esp + 0x44]
fld dword [esp + 0x98]
fsub dword [esp + 0x118]
fstp dword [esp + 0x48]
fld st(1)
fstp dword [esp + 0x10]
fst dword [esp + 0x18]
fld dword [esp + 0xd0]
fmul st(1)
fxch st(2)
fmul dword [esp + 0xc0]
faddp st(2)
fld dword [esp + 0xe0]
fmul dword [esp + 0x38]
faddp st(2)
fxch st(1)
fadd dword [esp + 0xf0]
fstp dword [esp + 0x30]
fmul dword [esp + 0xd4]
fld dword [esp + 0x10]
fmul dword [esp + 0xc4]
faddp st(1)
fld dword [esp + 0xe4]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0xf4]
fstp dword [esp + 0x34]
fld dword [esp + 0x10]
fmul dword [esp + 0xc8]
fld dword [esp + 0x18]
fmul dword [esp + 0xd8]
faddp st(1)
fld dword [esp + 0xe8]
fmul dword [esp + 0x38]
faddp st(1)
fadd dword [esp + 0xf8]
fstp dword [esp + 0x38]
fld dword [esp + 0x10]
fmul dword [esp + 0xcc]
fld dword [esp + 0x18]
fmul dword [esp + 0xdc]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0xec]
faddp st(1)
fadd dword [esp + 0xfc]
fstp dword [esp + 0x3c]
mov eax, dword [ebp + 0x10]
fld dword [esp + 0x40]
fld dword [esp + 0x44]
fld dword [esp + 0x48]
fld dword [esp + 0x40]
fmul dword [esp + 0xc0]
fld dword [esp + 0xe0]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0xd0]
fmul dword [esp + 0x44]
faddp st(1)
fadd dword [esp + 0xf0]
fstp dword [esp + 0x40]
fld st(2)
fmul dword [esp + 0xc4]
fld dword [esp + 0xe4]
fmul dword [esp + 0x48]
faddp st(1)
fld dword [esp + 0xd4]
fmul dword [esp + 0x44]
faddp st(1)
fadd dword [esp + 0xf4]
fstp dword [esp + 0x44]
fld st(2)
fmul dword [esp + 0xc8]
fld st(2)
fmul dword [esp + 0xd8]
faddp st(1)
fld dword [esp + 0xe8]
fmul dword [esp + 0x48]
faddp st(1)
fadd dword [esp + 0xf8]
fstp dword [esp + 0x48]
fxch st(2)
fmul dword [esp + 0xcc]
fxch st(1)
fmul dword [esp + 0xdc]
faddp st(1)
fxch st(1)
fmul dword [esp + 0xec]
faddp st(1)
fadd dword [esp + 0xfc]
fstp dword [esp + 0x4c]
fld dword [esi + 0xc]
fadd dword [ebx + 0xc]
mov dword [esp + 0x17c], 0x7f7fffff
mov dword [esp + 0x1ac], 0x7f7fffff
mov dword [esp + 0x1dc], 0x7f7fffff
fst dword [esp + 0x5c]
fadd dword [eax + 8]
fcom dword [esp + 0x30]
fnstsw ax
test ah, 5
jp 0x508030
mov cl, 1
jmp 0x508032
xor cl, cl
fcom dword [esp + 0x34]
mov byte [esp + 0xf], 1
fnstsw ax
test ah, 5
jnp 0x508047
mov byte [esp + 0xf], 0
fcom dword [esp + 0x38]
fnstsw ax
test ah, 5
jp 0x508056
mov dl, 1
jmp 0x508058
xor dl, dl
fcom dword [esp + 0x3c]
fnstsw ax
test ah, 5
jp 0x508067
mov al, 1
jmp 0x508069
xor al, al
fcom dword [esp + 0x40]
movzx ecx, cl
movzx edx, dl
shl ecx, 3
shl edx, 1
or ecx, edx
movzx edx, byte [esp + 0xf]
shl edx, 2
movzx eax, al
or ecx, edx
or ecx, eax
mov byte [esp + 0xe], 1
fnstsw ax
test ah, 5
jnp 0x50809a
mov byte [esp + 0xe], 0
fcom dword [esp + 0x44]
mov byte [esp + 0xf], 1
fnstsw ax
test ah, 5
jnp 0x5080af
mov byte [esp + 0xf], 0
fcom dword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x5080be
mov dl, 1
jmp 0x5080c0
xor dl, dl
fcom dword [esp + 0x4c]
fnstsw ax
test ah, 5
jp 0x5080cf
mov al, 1
jmp 0x5080d1
xor al, al
movzx esi, byte [esp + 0xf]
movzx edx, dl
shl edx, 1
shl esi, 2
or edx, esi
movzx esi, byte [esp + 0xe]
shl esi, 3
movzx eax, al
or edx, esi
or edx, eax
test ecx, edx
jne 0x508705
fchs
fld dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x50811a
fld dword [esp + 0x4c]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jp 0x50811c
jmp 0x508707
fstp st(0)
fld dword [esp + 0x30]
mov byte [esp + 0xe], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x508137
mov byte [esp + 0xe], 0
fld dword [esp + 0x34]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x50814c
mov dl, 1
jmp 0x50814e
xor dl, dl
fld dword [esp + 0x38]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x508163
mov cl, 1
jmp 0x508165
xor cl, cl
fld dword [esp + 0x3c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x50817a
mov al, 1
jmp 0x50817c
xor al, al
fld dword [esp + 0x40]
movzx edi, cl
fcomp dword [0x641de0]
movzx ecx, dl
movzx edx, byte [esp + 0xe]
shl edi, 1
shl ecx, 2
or edi, ecx
shl edx, 3
movzx eax, al
or edi, edx
or edi, eax
mov dword [esp + 0x100], edi
fnstsw ax
test ah, 5
mov byte [esp + 0xe], 1
jnp 0x5081ba
mov byte [esp + 0xe], 0
fld dword [esp + 0x44]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5081cf
mov dl, 1
jmp 0x5081d1
xor dl, dl
fld dword [esp + 0x48]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5081e6
mov cl, 1
jmp 0x5081e8
xor cl, cl
fld dword [esp + 0x4c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5081fd
mov al, 1
jmp 0x5081ff
xor al, al
movzx esi, cl
movzx ecx, dl
movzx edx, byte [esp + 0xe]
shl esi, 1
shl ecx, 2
or esi, ecx
shl edx, 3
movzx eax, al
or esi, edx
or esi, eax
mov ecx, esi
xor ecx, edi
test cl, 1
mov dword [esp + 0x104], esi
je 0x5087d2
fld dword [esp + 0x3c]
fsub dword [esp + 0x4c]
fdivr dword [esp + 0x3c]
fld dword [0x6419bc]
fsub st(1)
fld st(1)
fmul dword [esp + 0x40]
fld st(1)
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x34]
fmul st(2)
fld st(3)
fmul dword [esp + 0x44]
faddp st(1)
fstp dword [esp + 0x74]
fld st(2)
fmul dword [esp + 0x48]
fld st(2)
fmul dword [esp + 0x38]
faddp st(1)
fstp dword [esp + 0x78]
fxch st(2)
fmul dword [esp + 0x4c]
fxch st(1)
fmul dword [esp + 0x3c]
faddp st(1)
fstp dword [esp + 0x7c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x508298
mov cl, 1
jmp 0x50829a
xor cl, cl
fld dword [esp + 0x74]
mov byte [esp + 0xe], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x5082b5
mov byte [esp + 0xe], 0
fld dword [esp + 0x78]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x5082ca
mov dl, 1
jmp 0x5082cc
xor dl, dl
fld dword [esp + 0x7c]
mov byte [esp + 0xf], 1
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jnp 0x5082e7
mov byte [esp + 0xf], 0
xor eax, eax
mov al, byte [esp + 0xe]
shl edx, 1
neg ecx
shl ecx, 3
shl eax, 2
or edx, eax
mov eax, dword [esp + 0xf]
or edx, ecx
or edx, eax
and edx, 0xe
cmp dl, 0xe
jne 0x5087d2
mov dword [esp + 0x1ac], 0xff7fffff
lea esi, [esp + 0x100]
xor ecx, ecx
mov edx, dword [esi]
mov eax, edx
and eax, 0xe
cmp al, 0xe
jne 0x50842a
fld dword [esp + ecx + 0x3c]
fabs
fchs
fsub dword [esp + 0x5c]
fcom dword [esp + 0x1ac]
fnstsw ax
test ah, 0x41
jne 0x508428
test dl, 1
je 0x508392
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1b0], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1b8], edx
mov edx, dword [esp + ecx + 0x88]
mov dword [esp + 0x1bc], eax
fld dword [ebx + 0xc]
mov dword [esp + 0x1a8], edx
jmp 0x5083d9
fld dword [esp + 0x60]
mov eax, dword [esp + ecx + 0x88]
fchs
fstp dword [esp + 0x1b0]
fld dword [esp + 0x64]
fchs
fstp dword [esp + 0x1b4]
fld dword [esp + 0x68]
fchs
fstp dword [esp + 0x1b8]
fld dword [esp + 0x6c]
fchs
fstp dword [esp + 0x1bc]
fld dword [ebx + 0xc]
mov dword [esp + 0x1a8], eax
fchs
fsub dword [esp + ecx + 0x3c]
fld dword [esp + ecx + 0x80]
fld dword [esp + ecx + 0x84]
fld st(2)
fmul dword [esp + 0x60]
fadd st(2)
fstp dword [esp + 0x1a0]
fld st(2)
fmul dword [esp + 0x64]
fadd st(1)
fstp dword [esp + 0x1a4]
fstp st(0)
fstp st(0)
fmul dword [esp + 0x68]
fadd dword [esp + 0x1a8]
fstp dword [esp + 0x1a8]
fstp dword [esp + 0x1ac]
jmp 0x50842a
fstp st(0)
add ecx, 0x10
add esi, 4
cmp ecx, 0x20
jl 0x508321
fld dword [esp + 0x40]
xor ecx, ecx
fsub dword [esp + 0x30]
fstp dword [esp + 0x70]
fld dword [esp + 0x44]
fsub dword [esp + 0x34]
fstp dword [esp + 0x74]
fld dword [esp + 0x48]
fsub dword [esp + 0x38]
fstp dword [esp + 0x78]
fld dword [esp + 0x4c]
fsub dword [esp + 0x3c]
fst dword [esp + 0x7c]
fmul dword [esp + 0x7c]
nop
fld dword [esp + ecx + 0x70]
mov edx, dword [esp + 0x7c]
fld st(0)
mov dword [esp + 0x18], edx
fmul st(1)
fadd st(2)
fdivr dword [0x6419bc]
fld st(1)
fmul dword [esp + 0x3c]
fld dword [esp + 0x7c]
fmul dword [esp + ecx + 0x30]
fsubp st(1)
fld st(0)
fmul st(1)
fmul st(2)
fstp dword [esp + 0x14]
fstp st(0)
fld dword [esp + 0x5c]
fadd dword [esp + 0x1ac]
fld st(0)
fmul st(1)
fld dword [esp + 0x14]
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x5086f5
fld st(1)
fmul dword [esp + ecx + 0x30]
fld dword [esp + 0x7c]
fmul dword [esp + 0x3c]
faddp st(1)
fmul st(1)
fchs
fstp dword [esp + 0x1c]
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [0x65c220]
fnstsw ax
test ah, 0x41
jne 0x5086f7
fld dword [esp + 0x1c]
fcomp dword [0x65c3e4]
fnstsw ax
test ah, 5
jp 0x5086f7
fld dword [esp + ecx + 0xc0]
fld dword [esp + ecx + 0xd0]
fstp dword [esp + 0x24]
fld dword [esp + ecx + 0xe0]
fstp dword [esp + 0x28]
fld dword [esp + 0x7c]
fcomp dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x508548
fld dword [esp + 0x7c]
fchs
fstp dword [esp + 0x18]
fxch st(1)
fchs
fxch st(1)
fmul dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x18]
fmul dword [0x641de0]
fstp dword [esp + 0x2c]
fxch st(2)
fchs
fst dword [esp + 0x10]
fmul dword [esp + 0x60]
fadd st(1)
fstp dword [esp + 0x1b0]
fld dword [esp + 0x10]
fmul dword [esp + 0x64]
faddp st(2)
fstp st(0)
fld dword [esp + 0x10]
fmul dword [esp + 0x68]
fadd dword [esp + 0x28]
fstp dword [esp + 0x1b8]
fld dword [esp + 0x10]
fmul dword [esp + 0x6c]
fadd dword [esp + 0x2c]
fld dword [esp + 0x1b8]
fmul dword [esp + 0x1b8]
fld st(2)
fmul st(3)
faddp st(1)
fld dword [esp + 0x1b0]
fmul dword [esp + 0x1b0]
faddp st(1)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5085ed
fsqrt
fdivr dword [0x6419bc]
jmp 0x5085f5
fstp st(0)
fld dword [0x641de0]
fld dword [esp + 0x1b0]
fmul st(1)
fstp dword [esp + 0x1b0]
fxch st(2)
fmul st(2)
fstp dword [esp + 0x1b4]
fld dword [esp + 0x1b8]
fmul st(2)
fstp dword [esp + 0x1b8]
fmul st(1)
fstp dword [esp + 0x1bc]
fstp st(0)
fld dword [0x6419bc]
fsub dword [esp + 0x1c]
fld dword [esp + 0x80]
fmul st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x90]
faddp st(1)
fld st(1)
fmul dword [esp + 0x84]
fld dword [esp + 0x1c]
fmul dword [esp + 0x94]
faddp st(1)
fstp dword [esp + 0x104]
fxch st(1)
fmul dword [esp + 0x88]
fld dword [esp + 0x1c]
fmul dword [esp + 0x98]
faddp st(1)
fstp dword [esp + 0x108]
fld dword [esp + 0x14]
fsqrt
fchs
fstp dword [esp + 0x14]
fld dword [ebx + 0xc]
fsub dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x1b0]
fmul dword [esp + 0x10]
fadd st(1)
fstp dword [esp + 0x1a0]
fstp st(0)
fld dword [esp + 0x1b4]
fmul dword [esp + 0x10]
fadd dword [esp + 0x104]
fstp dword [esp + 0x1a4]
fld dword [esp + 0x1b8]
fmul dword [esp + 0x10]
fadd dword [esp + 0x108]
fstp dword [esp + 0x1a8]
fld dword [esp + 0x14]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x1ac]
jmp 0x5086f9
fstp st(0)
fstp st(0)
add ecx, 4
cmp ecx, 0xc
jl 0x508470
fstp st(0)
mov edi, dword [esp + 0xbc]
add edi, 0xc
lea esi, [esp + 0x178]
mov dword [esp + 0x14], 3
fld dword [esi + 4]
mov edx, dword [ebp + 0x10]
fcomp dword [edx + 8]
fnstsw ax
test ah, 5
jp 0x508d8f
cmp word [edi], 0xffff
jne 0x508767
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
lea eax, [esi - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [edx + 4]
cmp ax, 0xffff
mov word [edi], ax
je 0x508daf
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ecx]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
and edx, 0x7fffffff
cmp eax, edx
jne 0x508787
push 0x30
push ebx
call fcn.0054d2c0
add esp, 8
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, edx
inc ecx
mov dword [ebx + 4], ecx
mov ecx, dword [esi - 8]
mov dword [eax], ecx
mov edx, dword [esi - 4]
mov dword [eax + 4], edx
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov edx, dword [esi + 0x14]
mov dword [eax + 0x1c], edx
mov cx, word [edi]
mov word [eax + 0x20], cx
jmp 0x508daf
fld dword [esp + 0x90]
or esi, edi
fsub dword [esp + 0x80]
mov eax, esi
and eax, 0xe
cmp al, 0xe
fstp dword [esp + 0xa0]
mov dword [esp + 0x1c], 0
fld dword [esp + 0x94]
mov dword [esp + 0x14], esi
fsub dword [esp + 0x84]
fstp dword [esp + 0xa4]
fld dword [esp + 0x98]
fsub dword [esp + 0x88]
fstp dword [esp + 0xa8]
fld dword [esp + 0x9c]
fsub dword [esp + 0x8c]
fstp dword [esp + 0xac]
je 0x50891b
mov ecx, dword [ebp + 0x10]
fld dword [ecx + 8]
push fcn.004458bd
push 2
fst dword [esp + 0x184]
push 0x10
fst dword [esp + 0x1b8]
lea edx, [esp + 0x3c]
fstp dword [esp + 0x1e8]
push edx
call fcn.004017fd
mov edi, 8
xor esi, esi
jmp 0x508880
mov eax, dword [esp + 0x14]
test eax, edi
jne 0x50890a
movsx eax, byte [esi + 0x65cefa]
shl eax, 4
mov ecx, dword [esp + eax + 0x110]
mov edx, dword [esp + eax + 0x114]
lea eax, [esp + eax + 0x110]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
movsx eax, byte [esi + 0x65cef8]
shl eax, 4
lea eax, [esp + eax + 0x110]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x170]
push eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x50], edx
push ecx
lea edx, [esp + 0x38]
push edx
push eax
call fcn.0050e5a0
add esp, 0x10
sar edi, 1
inc esi
cmp esi, 3
jl 0x508880
jmp 0x508707
lea esi, [esp + 0x188]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + eax*4 + 0x100]
mov edx, ecx
and edx, 0xe
cmp dl, 0xe
jne 0x508a0d
fld dword [ebx + 0xc]
shl eax, 4
test cl, 1
lea ecx, [esp + eax + 0x3c]
lea eax, [esp + eax + 0x80]
je 0x5089b5
fchs
fsub dword [ecx]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [eax]
fstp dword [esi - 0x18]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [eax + 4]
fstp dword [esi - 0x14]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [eax + 8]
fstp dword [esi - 0x10]
fmul dword [esp + 0x6c]
fadd dword [eax + 0xc]
fstp dword [esi - 0xc]
fld dword [ecx]
fchs
fsub dword [esp + 0x5c]
fstp dword [esi - 0xc]
fld dword [esp + 0x60]
fchs
fstp dword [esi - 8]
fld dword [esp + 0x64]
fchs
fstp dword [esi - 4]
fld dword [esp + 0x68]
fchs
fstp dword [esi]
fld dword [esp + 0x6c]
fchs
fstp dword [esi + 4]
jmp 0x508d75
fsub dword [ecx]
mov edx, dword [esp + 0x68]
fld dword [esp + 0x60]
fmul st(1)
fadd dword [eax]
fstp dword [esi - 0x18]
fld dword [esp + 0x64]
fmul st(1)
fadd dword [eax + 4]
fstp dword [esi - 0x14]
fld dword [esp + 0x68]
fmul st(1)
fadd dword [eax + 8]
fstp dword [esi - 0x10]
fmul dword [esp + 0x6c]
fadd dword [eax + 0xc]
mov eax, dword [esp + 0x60]
fstp dword [esi - 0xc]
fld dword [ecx]
mov ecx, dword [esp + 0x64]
fsub dword [esp + 0x5c]
fstp dword [esi - 0xc]
mov dword [esi - 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esi - 4], ecx
mov dword [esi], edx
mov dword [esi + 4], eax
jmp 0x508d75
mov dword [esp + 0x10], 8
xor edi, edi
jmp 0x508a20
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
test dword [esp + edx*4 + 0x100], ecx
jne 0x508d61
movsx ecx, byte [edi + 0x65cef8]
movsx eax, byte [edi + 0x65cefa]
shl ecx, 4
lea ecx, [esp + ecx + 0x110]
shl eax, 4
lea eax, [esp + eax + 0x110]
fld dword [ecx]
lea edx, [esp + 0x70]
fsub dword [eax]
fstp dword [esp + 0x70]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x74]
fld dword [ecx + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x78]
fld dword [ecx + 0xc]
lea ecx, [esp + 0x140]
fsub dword [eax + 0xc]
push ecx
push edx
push eax
lea eax, [esp + 0xac]
fstp dword [esp + 0x88]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00529600
fld dword [esp + 0x70]
fadd dword [esi - 0xc]
mov edx, eax
add esp, 0x14
fld st(0)
fmul st(1)
fld dword [esp + 0x160]
fcompp
fnstsw ax
fstp st(0)
test ah, 5
jp 0x508d61
mov ecx, dword [esp + 0x1c]
mov eax, 1
shl eax, cl
test edx, eax
jne 0x508d61
test edx, edx
jne 0x508b39
fld dword [esp + 0x78]
mov dword [esp + 0x2c], edx
fmul dword [esp + 0xa4]
fld dword [esp + 0x74]
fmul dword [esp + 0xa8]
fsubp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0xa8]
fld dword [esp + 0xa0]
fmul dword [esp + 0x78]
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0xa0]
fmul dword [esp + 0x74]
fld dword [esp + 0x70]
fmul dword [esp + 0xa4]
fsubp st(1)
fstp dword [esp + 0x28]
jmp 0x508c4d
fld dword [esp + 0x160]
fcomp dword [0x65c3e0]
fnstsw ax
test ah, 0x41
jp 0x508c25
fld dword [esp + edi*4 + 0xc0]
mov dword [esp + 0x15c], 0
fstp dword [esp + 0x150]
mov dword [esp + 0x2c], 0
fld dword [esp + edi*4 + 0xd0]
fstp dword [esp + 0x154]
fld dword [esp + edi*4 + 0xe0]
fstp dword [esp + 0x158]
fld dword [esp + 0x78]
fmul dword [esp + 0xa4]
fld dword [esp + 0x74]
fmul dword [esp + 0xa8]
fsubp st(1)
fld dword [esp + 0x70]
fmul dword [esp + 0xa8]
fld dword [esp + 0xa0]
fmul dword [esp + 0x78]
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0xa0]
fmul dword [esp + 0x74]
fld dword [esp + 0x70]
fmul dword [esp + 0xa4]
fsubp st(1)
fstp dword [esp + 0x28]
fld st(0)
fmul st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fcomp dword [0x65c3e0]
fnstsw ax
test ah, 0x41
jp 0x508c4d
mov ecx, dword [esp + 0x154]
fstp st(0)
mov edx, dword [esp + 0x158]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
jmp 0x508c46
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
fld dword [esp + 0x150]
fld st(0)
fmul st(1)
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [0x641de0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jnp 0x508c84
fsqrt
fdivr dword [0x6419bc]
fstp dword [esp + 0x18]
jmp 0x508c8e
fstp st(0)
mov dword [esp + 0x18], 0
fmul dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x24]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x18]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x150]
fmul st(2)
fld dword [esp + 0x158]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x154]
fmul st(2)
faddp st(1)
fcom dword [0x641de0]
fnstsw ax
test ah, 5
jp 0x508d02
fchs
fxch st(2)
fchs
fxch st(2)
fxch st(1)
fchs
fxch st(1)
fld dword [esp + 0x28]
fchs
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x2c]
fld dword [ebx + 0xc]
mov eax, dword [esp + 0x28]
fsub st(1)
mov ecx, dword [esp + 0x2c]
fld st(3)
fmul st(1)
fadd dword [esp + 0x140]
fstp dword [esi - 0x18]
fld st(2)
fmul st(1)
fadd dword [esp + 0x144]
fstp dword [esi - 0x14]
fld dword [esp + 0x28]
fmul st(1)
fadd dword [esp + 0x148]
fstp dword [esi - 0x10]
fld dword [esp + 0x2c]
fmul st(1)
fadd dword [esp + 0x14c]
fstp dword [esi - 0xc]
fstp st(0)
fsub dword [esp + 0x5c]
fstp dword [esi - 0xc]
mov dword [esi], eax
fxch st(1)
mov dword [esi + 4], ecx
fstp dword [esi - 8]
fstp dword [esi - 4]
mov edx, dword [esp + 0x10]
sar edx, 1
inc edi
cmp edi, 3
mov dword [esp + 0x10], edx
jl 0x508a20
mov eax, dword [esp + 0x1c]
add esi, 0x30
inc eax
cmp eax, 2
mov dword [esp + 0x1c], eax
jl 0x508922
jmp 0x508707
xor eax, eax
mov ax, word [edi]
cmp ax, 0xffff
je 0x508daf
mov edx, dword [esp + 0xbc]
mov ecx, dword [edx + 8]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov word [edi], 0xffff
mov eax, dword [esp + 0x14]
add edi, 2
add esi, 0x30
dec eax
mov dword [esp + 0x14], eax
jne 0x508720
mov ecx, dword [0x96186c]
cmp ecx, dword [0x961870]
jae 0x508dee
mov dword [ecx], 0x6594f4
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
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