Function at 0x6fa650
Capabilities:
Encode data using xor
Execute anti-debugging instructions
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
push esi
push edi
push dword [0x884c50]
mov edi, ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x6fa69a
mov dword [ecx], str.LtupdateCharacter
mov dword [ecx + 0xc], str.StCast
rdtsc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
movss xmm0, dword [edi + 0x8c]
addss xmm0, dword [edi + 0x88]
mov eax, dword [edi + 0x60]
mov ecx, dword [ebp + 0x10]
add eax, 0xb0
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
test ecx, ecx
mov dword [esp + 0xb0], 0x3c23d70a
movss dword [esp + 0xb4], xmm0
movaps xmm1, xmmword [eax + 0x10]
movaps xmm2, xmmword [eax + 0x20]
movaps xmm3, xmmword [eax + 0x30]
movaps xmm0, xmmword [eax]
setne al
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xd0], xmm1
movaps xmmword [esp + 0xe0], xmm2
movaps xmmword [esp + 0xf0], xmm3
mov byte [esp + 0x24], al
mov dword [esp + 0x28], 0
test al, al
je 0x6fa7ba
mov eax, dword [ecx + 0x10]
mov dword [eax + 0x20], 0
push dword [0x884adc]
call esi
push 0x50
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov edx, eax
mov dword [esp + 0x28], edx
test edx, edx
je 0x6fa7a4
mov ecx, dword [edi + 0x60]
lea eax, [esp + 0xc0]
mov ecx, dword [ecx + 0x10]
mov dword [edx], ecx
lea ecx, [edx + 0x20]
mov dword [edx + 8], eax
mov dword [edx + 0xc], 0
mov dword [edx + 4], 0xffffffff
mov byte [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov word [edx + 0x18], 0x7f00
mov dword [edx + 0x1c], 0
mov byte [edx + 0x1a], 0xff
call fcn.004f48f0
mov edx, dword [esp + 0x28]
mov al, dl
lea ecx, [edx + 0x14]
sub al, cl
mov dword [edx + 0x4c], 0xbf800000
mov byte [ecx + 5], al
xor eax, eax
mov byte [edx + 0x11], 8
mov word [edx + 0x12], ax
jmp 0x6fa7aa
xor edx, edx
mov dword [esp + 0x28], edx
mov eax, dword [edi + 0x60]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x1c], eax
mov al, byte [esp + 0x24]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], connect
test al, al
je 0x6fa7f3
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0xc]
or eax, 0x80000000
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], eax
jmp 0x6fa809
push 4
push 0x10
lea eax, [esp + 0x5c]
push eax
push 0x7d8950
call fcn.00467b80
add esp, 0x10
mov eax, dword [ebp + 8]
movss xmm0, dword [eax + 8]
xor eax, eax
comiss xmm0, dword [0x77f9a4]
mov dword [esp + 0x78], eax
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x60], xmm0
jbe 0x6fb6dc
jmp 0x6fa838
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [edi + 0xb8]
jge 0x6fb6dc
push dword [0x884c50]
call esi
mov dword [esp + 0xc], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x6fa87b
mov dword [esi], str.StInitialCast
rdtsc
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x84]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov esi, dword [ebp + 0x14]
mov ecx, esi
movaps xmm0, xmmword [esp + 0xf0]
addps xmm0, xmmword [edi + 0x50]
mov eax, dword [esi]
movaps xmmword [esp + 0xa0], xmm0
call dword [eax + 8]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [esp + 0x24], 0
push dword [ebp + 0x18]
push esi
je 0x6fa8da
cmp dword [esp + 0x80], 0
lea eax, [esp + 0xa8]
push eax
je 0x6fa8cf
mov ecx, dword [edi + 0x60]
push dword [esp + 0x34]
mov ecx, dword [ecx + 8]
call fcn.0050e660
jmp 0x6fa8f2
push edi
call fcn.006fdaf0
add esp, 0x10
jmp 0x6fa8f2
mov ecx, dword [edi + 0x60]
lea edx, [esp + 0xa8]
push edx
lea edx, [esp + 0xfc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x6fa92d
mov dword [esi], str.StTriggerVolumes
rdtsc
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x88]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x30], 0
mov esi, dword [eax + 0x14]
mov dword [esp + 0x3c], esi
test esi, esi
je 0x6fa98b
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea edx, [esi*4 + 0x7f]
and edx, 0xffffff80
mov eax, dword [ecx + 0xc]
lea edi, [eax + edx]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
cmp edx, dword [ecx + 8]
jg 0x6fa983
lea edi, [eax + edx]
cmp edi, dword [ecx + 0x10]
mov edi, dword [esp + 0x1c]
ja 0x6fa983
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edx
jmp 0x6fa98d
push edx
call fcn.0046a3c0
jmp 0x6fa98d
xor eax, eax
mov ecx, esi
mov dword [esp + 0x2c], eax
or ecx, 0x80000000
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], esi
test esi, esi
je 0x6fa9f6
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esi + esi*2]
mov edx, eax
shl ecx, 4
add ecx, 0x7f
and ecx, 0xffffff80
mov eax, dword [edx + 0xc]
lea esi, [eax + ecx]
cmp ecx, dword [edx + 8]
jg 0x6fa9e8
cmp esi, dword [edx + 0x10]
ja 0x6fa9e8
mov ecx, dword [esp + 0xc]
mov dword [edx + 0xc], esi
jmp 0x6fa9f8
push ecx
mov ecx, edx
call fcn.0046a3c0
mov ecx, dword [esp + 0xc]
jmp 0x6fa9f8
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x4c], ecx
push eax
push dword [ebp + 0x18]
mov ecx, edi
call fcn.006fcaf0
lea eax, [esp + 0x54]
mov ecx, edi
push eax
lea eax, [esp + 0x30]
push eax
call fcn.006fcc30
mov eax, dword [esp + 0x50]
push dword [0x884adc]
lea esi, [eax + eax*2]
shl esi, 4
add esi, 0x7f
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x4c]
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
mov dword [esp + 0x14], ecx
cmp esi, dword [eax + 8]
jg 0x6faa6d
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x6faa69
cmp dword [eax + 0x14], edx
je 0x6faa69
mov dword [eax + 0xc], edx
jmp 0x6faa76
mov ecx, dword [esp + 0x14]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x48]
test eax, eax
js 0x6faa9b
and eax, 0x3fffffff
mov ecx, 0x7d8954
lea eax, [eax + eax*2]
shl eax, 4
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x44]
call dword [eax + 0x10]
mov eax, dword [esp + 0x3c]
push dword [0x884adc]
lea esi, [eax*4 + 0x7f]
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x38]
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
mov dword [esp + 0x14], ecx
cmp esi, dword [eax + 8]
jg 0x6faadd
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x6faad9
cmp dword [eax + 0x14], edx
je 0x6faad9
mov dword [eax + 0xc], edx
jmp 0x6faae6
mov ecx, dword [esp + 0x14]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x34]
test eax, eax
js 0x6fab08
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x30]
call dword [eax + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x44], 0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], eax
test eax, eax
je 0x6fab88
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax*4 + 0x7f]
and ecx, 0xffffff80
mov dword [esp + 0x10], ecx
mov esi, dword [esp + 0x10]
mov ecx, dword [edx + 0xc]
cmp esi, dword [edx + 8]
lea edi, [ecx + esi]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
jg 0x6fab75
mov edi, dword [esp + 0x14]
cmp edi, dword [edx + 0x10]
mov edi, dword [esp + 0x1c]
ja 0x6fab75
mov esi, dword [esp + 0x14]
mov dword [edx + 0xc], esi
mov esi, dword [ebp + 0x14]
jmp 0x6fab8a
push dword [esp + 0x10]
mov ecx, edx
call fcn.0046a3c0
mov ecx, eax
mov eax, dword [esp + 0x18]
jmp 0x6fab8a
xor ecx, ecx
mov edx, eax
mov dword [esp + 0x40], ecx
or edx, 0x80000000
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], eax
test eax, eax
je 0x6fac09
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x18]
mov edx, eax
mov eax, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ecx, 0x7f
and ecx, 0xffffff80
lea edi, [eax + ecx]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
cmp ecx, dword [edx + 8]
jg 0x6fabfb
lea esi, [eax + ecx]
cmp esi, dword [edx + 0x10]
mov esi, dword [ebp + 0x14]
ja 0x6fabfb
mov ecx, dword [esp + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x10]
jmp 0x6fac0b
push ecx
mov ecx, edx
call fcn.0046a3c0
mov edx, dword [esp + 0x10]
jmp 0x6fac0b
xor eax, eax
mov dword [esp + 0x2c], eax
mov ecx, edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x38], edx
push eax
push esi
call fcn.006fcaf0
cmp dword [esi + 0x14], 0
jle 0x6fac47
mov ecx, esi
call fcn.006c1610
lea eax, [edi + 0x50]
mov ecx, edi
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.006fd040
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0xc]
jae 0x6fac8c
mov dword [eax], str.StUpdateManifold
rdtsc
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
push dword [esp + 0x24]
mov eax, dword [edi]
lea ecx, [edi + 0x28]
push ecx
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [edi + 0x10]
push ecx
push esi
push dword [ebp + 0x18]
mov ecx, edi
call dword [eax + 0xc]
cmp dword [esi + 0x14], 0
jle 0x6facd1
mov eax, dword [esi + 0x10]
push ecx
mov ecx, edi
movss xmm0, dword [eax + 0x1c]
lea eax, [esp + 0x58]
movss dword [esp], xmm0
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.006fcd20
mov eax, dword [esp + 0x3c]
push dword [0x884adc]
lea esi, [eax + eax*2]
shl esi, 4
add esi, 0x7f
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x38]
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
cmp esi, dword [eax + 8]
jg 0x6fad15
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x6fad11
cmp dword [eax + 0x14], edx
je 0x6fad11
mov dword [eax + 0xc], edx
jmp 0x6fad1e
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x34]
test eax, eax
js 0x6fad43
and eax, 0x3fffffff
mov ecx, 0x7d8954
lea eax, [eax + eax*2]
shl eax, 4
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x30]
call dword [eax + 0x10]
mov eax, dword [esp + 0x50]
push dword [0x884adc]
lea esi, [eax*4 + 0x7f]
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x4c]
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
cmp esi, dword [eax + 8]
jg 0x6fad85
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x6fad81
cmp dword [eax + 0x14], edx
je 0x6fad81
mov dword [eax + 0xc], edx
jmp 0x6fad8e
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x48]
test eax, eax
js 0x6fadb0
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x44]
call dword [eax + 0x10]
mov esi, dword [edi + 0x94]
add esi, 0xa
mov dword [esp + 0x64], 0
add esi, dword [edi + 0x14]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], connect
mov dword [esp + 0x74], esi
je 0x6fae25
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, esi
shl ecx, 6
add ecx, 0x7f
and ecx, 0xffffff80
mov eax, dword [edx + 0xc]
lea edi, [ecx + eax]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
cmp ecx, dword [edx + 8]
jg 0x6fae1b
lea edi, [ecx + eax]
cmp edi, dword [edx + 0x10]
mov edi, dword [esp + 0x1c]
ja 0x6fae1b
mov ecx, dword [esp + 0xc]
mov dword [edx + 0xc], ecx
jmp 0x6fae27
push ecx
mov ecx, edx
call fcn.0046a3c0
jmp 0x6fae27
xor eax, eax
mov ecx, dword [edi + 0x14]
or esi, 0x80000000
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], ecx
test ecx, ecx
jle 0x6faeb6
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov esi, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
add eax, dword [esp + 0x18]
mov edx, dword [edi]
push ecx
movss xmm0, dword [ecx + 8]
mov ecx, edi
subss xmm0, dword [esp + 0x24]
movss dword [esp], xmm0
push eax
mov eax, dword [edi + 0x10]
add eax, dword [esp + 0x1c]
push eax
call dword [edx + 0x10]
movss xmm0, dword [edi + 0xb0]
lea eax, [esp + 0x64]
push eax
push esi
lea eax, [edi + 0x70]
push eax
push ecx
movss dword [esp], xmm0
call fcn.006fcef0
add dword [esp + 0x28], 0x40
inc esi
add dword [esp + 0x24], 0x30
add esp, 0x10
cmp esi, dword [edi + 0x14]
jge 0x6faeae
mov eax, dword [esp + 0x64]
jmp 0x6fae50
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [edi + 0x94]
and esi, 0x3fffffff
mov eax, esi
sub eax, ecx
cmp eax, edx
jge 0x6faeed
add ecx, edx
cmp esi, ecx
jge 0x6faeed
lea eax, [esi + esi]
cmp ecx, eax
push 0x40
cmovl ecx, eax
lea eax, [esp + 0x68]
push ecx
push eax
push 0x7d8954
call fcn.00467b80
add esp, 0x10
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x6faf28
mov dword [esi], str.StSlexMove
rdtsc
mov dword [esp + 0x90], eax
mov ecx, dword [esp + 0x90]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
movaps xmm0, xmmword [0x786710]
xorps xmm5, xmm5
mov esi, dword [edi + 0x94]
mov ecx, dword [esp + 0x68]
add esi, ecx
movaps xmmword [esp + 0x160], xmm0
movaps xmm0, xmmword [0x786920]
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x130], xmm5
mov dword [esp + 0x9c], esi
je 0x6fafb1
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
shl ecx, 4
add ecx, 0x7f
mov edx, dword [eax + 0xc]
and ecx, 0xffffff80
mov dword [esp + 0x18], edx
add edx, ecx
cmp ecx, dword [eax + 8]
jg 0x6faf9c
cmp edx, dword [eax + 0x10]
ja 0x6faf9c
mov dword [eax + 0xc], edx
xorps xmm5, xmm5
mov ecx, dword [esp + 0x68]
jmp 0x6fafb9
push ecx
mov ecx, eax
call fcn.0046a3c0
mov ecx, dword [esp + 0x68]
xorps xmm5, xmm5
mov dword [esp + 0x18], eax
jmp 0x6fafb9
mov dword [esp + 0x18], 0
movaps xmm1, xmmword [edi + 0x40]
or esi, 0x80000000
movaps xmm0, xmmword [edi + 0x40]
xorps xmm3, xmm3
mulps xmm1, xmm1
mov eax, dword [esp + 0x64]
movaps xmmword [esp + 0x140], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp + 0x170], xmm0
movaps xmm0, xmm1
mov dword [esp + 0x178], eax
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
mov dword [esp + 0x80], esi
shufps xmm1, xmm1, 0xaa
mov dword [esp + 0x17c], ecx
addss xmm1, xmm0
ucomiss xmm1, xmm3
lahf
test ah, 0x44
jp 0x6fb029
mov dword [esp + 0x174], 0
jmp 0x6fb09f
movaps xmm4, xmmword [edi + 0x40]
mulps xmm4, xmm4
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
addss xmm0, xmm4
shufps xmm4, xmm4, 0xaa
addss xmm4, xmm0
movaps xmm0, xmm3
shufps xmm4, xmm4, 0
movaps xmm2, xmm4
movaps xmm3, xmm4
rsqrtss xmm2, xmm2
cmpeqss xmm3, xmm0
mulss xmm4, xmm2
movss xmm0, dword [0x719764]
movaps xmm1, xmm0
mulss xmm4, xmm2
subss xmm1, xmm4
movss xmm4, dword [0x719760]
movaps xmm0, xmm4
mulss xmm0, xmm2
mulss xmm0, xmm1
andnps xmm3, xmm0
movss xmm0, dword [edi + 0x88]
mulss xmm0, xmm3
mulss xmm0, xmm4
movss dword [esp + 0x174], xmm0
movaps xmm0, xmmword [edi + 0x70]
lea eax, [esp + 0x130]
movaps xmmword [esp + 0x160], xmm0
mov ecx, edi
movss xmm0, dword [edi + 0x98]
push eax
lea eax, [edi + 0x10]
shufps xmm0, xmm0, 0
push eax
movaps xmmword [esp + 0x138], xmm5
movaps xmmword [esp + 0x158], xmm0
call fcn.006fc450
mov eax, dword [esp + 0x18]
mov dword [esp + 0x124], eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x134]
push eax
call fcn.0070ac20
add esp, 8
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x6fb138
mov dword [esi], str.StApplySurf
rdtsc
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x94]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
lea eax, [edi + 0x10]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.006fbdb0
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0xc], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x6fb187
mov dword [esi], str.StCastMove
rdtsc
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x98]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
movaps xmm0, xmmword [edi + 0x50]
xor esi, esi
movaps xmm1, xmmword [esp + 0x100]
subps xmm0, xmm1
mov dword [esp + 0xc], esi
andps xmm0, xmmword [0x719140]
cmpleps xmm0, xmmword [0x719d90]
movmskps eax, xmm0
and eax, 7
cmp al, 7
je 0x6fb596
mov esi, dword [ebp + 0x14]
mov ecx, esi
movaps xmm0, xmmword [esp + 0xf0]
addps xmm0, xmm1
mov eax, dword [esi]
movaps xmmword [esp + 0xa0], xmm0
call dword [eax + 8]
cmp byte [esp + 0x24], 0
mov ecx, dword [edi + 0x60]
push 0
push esi
je 0x6fb1f9
mov ecx, dword [ecx + 8]
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x34]
call fcn.0050e660
jmp 0x6fb20e
mov eax, dword [ecx]
lea edx, [esp + 0xa8]
push edx
lea edx, [esp + 0xfc]
push edx
call dword [eax + 0x3c]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
test eax, eax
je 0x6fb58e
push dword [0x884adc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edi, dword [ecx + 0xc]
lea edx, [eax*4 + 0x7f]
and edx, 0xffffff80
mov dword [esp + 0x7c], edi
add edi, edx
mov dword [esp + 0x10], edi
cmp edx, dword [ecx + 8]
jg 0x6fb26c
mov esi, edi
cmp esi, dword [ecx + 0x10]
mov esi, dword [ebp + 0x14]
ja 0x6fb26c
mov edx, edi
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x7c]
jmp 0x6fb278
push edx
call fcn.0046a3c0
mov ecx, eax
mov eax, dword [esp + 0x14]
push dword [0x884adc]
mov edx, eax
mov dword [esp + 0x30], ecx
or edx, 0x80000000
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0xc]
shl ecx, 4
add ecx, 0x7f
and ecx, 0xffffff80
lea edi, [ecx + eax]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x1c]
cmp ecx, dword [edx + 8]
jg 0x6fb2e1
lea esi, [ecx + eax]
cmp esi, dword [edx + 0x10]
mov esi, dword [ebp + 0x14]
ja 0x6fb2e1
mov ecx, dword [esp + 0x7c]
mov dword [edx + 0xc], ecx
jmp 0x6fb2e9
push ecx
mov ecx, edx
call fcn.0046a3c0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x4c], ecx
push eax
push esi
mov ecx, edi
call fcn.006fcaf0
mov ecx, esi
call fcn.006c1610
mov ecx, dword [esi + 0x14]
sub ecx, 1
mov eax, dword [esi + 0x10]
js 0x6fb35f
add eax, 0x1c
movss xmm2, dword [eax]
movaps xmm1, xmmword [eax - 0xc]
movss dword [eax - 0x10], xmm2
mulps xmm1, xmmword [esp + 0x100]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
mulss xmm1, xmm2
xorps xmm1, xmmword [0x719730]
movss dword [eax], xmm1
add eax, 0x30
sub ecx, 1
jns 0x6fb320
cmp dword [esi + 0x14], 0
jle 0x6fb46f
nop dword [eax]
mov esi, dword [esi + 0x10]
lea eax, [edi + 0x10]
push eax
push esi
mov ecx, edi
call fcn.006fc370
cmp eax, 0xffffffff
je 0x6fb3c7
mov ecx, dword [ebp + 0x14]
dec dword [ecx + 0x14]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
lea edx, [eax + eax*2]
shl edx, 4
lea esi, [ecx + 0x30]
test edx, edx
jle 0x6fb3b9
dec edx
sub esi, ecx
shr edx, 3
inc edx
mov eax, dword [esi + ecx]
lea ecx, [ecx + 8]
mov dword [ecx - 8], eax
mov eax, dword [esi + ecx - 4]
mov dword [ecx - 4], eax
sub edx, 1
jne 0x6fb3a4
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x14], 0
jg 0x6fb370
jmp 0x6fb46f
mov eax, dword [edi + 0x18]
lea edx, [edi + 0x10]
and eax, 0x3fffffff
cmp dword [edx + 4], eax
jne 0x6fb3ea
push 0x30
push edx
push 0x7d8954
call fcn.00467c00
add esp, 0xc
lea edx, [edi + 0x10]
mov eax, dword [edx + 4]
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, dword [edx]
je 0x6fb41d
movaps xmm0, xmmword [esi]
movaps xmmword [ecx], xmm0
movaps xmm0, xmmword [esi + 0x10]
movaps xmmword [ecx + 0x10], xmm0
mov eax, dword [esi + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ecx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 0x2c], eax
inc dword [edx + 4]
mov ecx, edi
push esi
call fcn.006fc3f0
cmp byte [edi + 0xbc], 0
jne 0x6fb44a
cmp byte [esp + 0x24], 0
jne 0x6fb44a
lea eax, [edi + 0x28]
mov ecx, edi
push eax
lea eax, [edi + 0x1c]
push eax
push dword [esi + 0x28]
call fcn.006fcdf0
movss xmm0, dword [esi + 0x1c]
lea eax, [esp + 0x54]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.006fcd20
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x50]
push dword [0x884adc]
lea esi, [eax + eax*2]
shl esi, 4
add esi, 0x7f
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x4c]
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
cmp esi, dword [eax + 8]
jg 0x6fb4b3
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x6fb4af
cmp dword [eax + 0x14], edx
je 0x6fb4af
mov dword [eax + 0xc], edx
jmp 0x6fb4bc
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x48]
test eax, eax
js 0x6fb4e1
and eax, 0x3fffffff
mov ecx, 0x7d8954
lea eax, [eax + eax*2]
shl eax, 4
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x44]
call dword [eax + 0x10]
mov eax, dword [esp + 0x3c]
push dword [0x884adc]
lea esi, [eax*4 + 0x7f]
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x38]
lea ecx, [esi + 0xf]
and ecx, 0xfffffff0
mov dword [esp + 0x10], ecx
cmp esi, dword [eax + 8]
jg 0x6fb523
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x6fb51f
cmp dword [eax + 0x14], edx
je 0x6fb51f
mov dword [eax + 0xc], edx
jmp 0x6fb52c
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x34]
test eax, eax
js 0x6fb54e
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x30]
call dword [eax + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x6fb58e
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0xa4]
push ecx
push eax
lea eax, [esp + 0x10c]
mov ecx, edi
push eax
call fcn.006fc510
fsubr dword [esp + 0x60]
movaps xmm1, xmmword [esp + 0x100]
fstp dword [esp + 0x60]
movss xmm0, dword [esp + 0x60]
jmp 0x6fb5be
movaps xmm1, xmmword [esp + 0x100]
movaps xmm0, xmmword [esp + 0xf0]
addps xmm0, xmm1
movaps xmmword [esp + 0xf0], xmm0
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x120]
movss dword [esp + 0x60], xmm0
mov esi, dword [esp + 0x9c]
shl esi, 4
movaps xmmword [edi + 0x50], xmm1
add esi, 0x7f
push dword [0x884adc]
movss dword [esp + 0x24], xmm0
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
mov esi, dword [esp + 0x18]
jg 0x6fb605
lea ecx, [esi + edx]
cmp ecx, dword [eax + 0xc]
jne 0x6fb605
cmp dword [eax + 0x14], esi
je 0x6fb605
mov dword [eax + 0xc], esi
jmp 0x6fb60e
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x80]
test eax, eax
js 0x6fb630
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 4
push eax
mov eax, dword [0x7d8954]
push esi
call dword [eax + 0x10]
mov ecx, dword [esp + 0x70]
xor edx, edx
mov eax, dword [esp + 0x68]
cmp ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x74]
push dword [0x884adc]
cmove eax, edx
mov dword [esp + 0x10], ecx
shl esi, 6
add esi, 0x7f
mov dword [esp + 0x6c], eax
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
lea eax, [esi + 0xf]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
cmp esi, dword [edx + 8]
mov esi, dword [esp + 0x10]
jg 0x6fb68d
lea ecx, [esi + eax]
cmp ecx, dword [edx + 0xc]
jne 0x6fb68d
cmp dword [edx + 0x14], eax
je 0x6fb68d
mov dword [edx + 0xc], eax
jmp 0x6fb696
push esi
push eax
mov ecx, edx
call fcn.0046a590
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x68], 0
test eax, eax
js 0x6fb6c0
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 6
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x68]
call dword [eax + 0x10]
mov eax, dword [esp + 0x78]
movss xmm0, dword [esp + 0x20]
inc eax
comiss xmm0, dword [0x77f9a4]
mov dword [esp + 0x78], eax
ja 0x6fa832
mov eax, dword [esp + 0x5c]
movaps xmm0, xmmword [esp + 0x110]
and eax, 0x3fffffff
mov ecx, dword [esp + 0x58]
movaps xmmword [edi + 0x40], xmm0
cmp ecx, eax
jge 0x6fb704
mov eax, dword [esp + 0x54]
mov dword [eax + ecx*4], 0
cmp byte [esp + 0x24], 0
je 0x6fb73b
mov esi, dword [esp + 0x28]
test esi, esi
je 0x6fb72a
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x50
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp + 0x10]
movaps xmm0, xmmword [esp + 0xf0]
movaps xmmword [eax + 0x20], xmm0
jmp 0x6fb767
movss xmm0, dword [esp + 0xb4]
lea eax, [esp + 0xf0]
push ecx
mov ecx, dword [edi + 0x60]
movss dword [esp], xmm0
push eax
call fcn.0051feb0
push 0x10
push dword [esp + 0x58]
mov ecx, edi
call fcn.006fc910
push dword [0x884c50]
mov dword [esp + 0x5c], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x6fb7a4
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], 0
test eax, eax
js 0x6fb7ce
and eax, 0x3fffffff
mov ecx, 0x7d8950
shl eax, 2
push eax
mov eax, dword [0x7d8950]
push dword [esp + 0x58]
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14