Function at 0x4faf90
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov edi, dword [edi]
test edi, edi
je 0x4fafcb
mov ecx, edi
call fcn.00663850
push dword [0x884adc]
call esi
push 0x50
push edi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0xa0]
mov edi, dword [edi + 4]
mov dword [esp + 0x1c], edi
call fcn.00663790
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc0]
mov dword [esp + 0xa0], edi
mov byte [esp + 0xa5], 1
push edx
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0xb4]
push edx
mov ecx, dword [eax + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x44]
push dword [0x884adc]
call esi
push 0x50
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x4fb03a
lea ecx, [esp + 0xa0]
push ecx
mov ecx, eax
call fcn.00663810
mov ecx, eax
jmp 0x4fb03c
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], 0x10
mov dword [eax], ecx
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x7d8950]
mov ecx, 0x7d8950
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x2c], eax
mov edi, connect
mov eax, dword [esp + 0x20]
mov ecx, 0x7d8950
cdq
and edx, 3
mov dword [esp + 0x24], 0x10
add eax, edx
sar eax, 2
test eax, eax
cmovne edi, eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x7d8950]
mov eax, dword [eax + 0xc]
call eax
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov ecx, connect
mov eax, dword [esp + 0x28]
cdq
and edx, 3
add eax, edx
sar eax, 2
test eax, eax
cmovne ecx, eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x3c], ecx
call fcn.00673060
add esp, 8
push dword [0x884adc]
call esi
push 0x10
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov dword [esp + 0x30], eax
or ecx, 0xffffffff
mov dword [eax], 4
mov dword [esp + 0x54], eax
mov eax, 0x60
mov word [esp + 0x44], ax
mov word [esp + 0x46], cx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], 0
mov dword [esp + 0x70], 0
mov word [esp + 0x41], 0x103
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x58], 0
mov byte [esp + 0x40], 6
mov eax, dword [eax + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [ecx]
push dword [0x884c50]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x70], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x84], eax
call esi
mov dword [esp + 0xc], eax
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x4fb1c5
mov dword [ecx], str.LtbuildTreeDistributed
mov dword [ecx + 0xc], str.Stqueue
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0064eea0
push dword [0x884c50]
call esi
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + 0xc]
jae 0x4fb20f
mov dword [eax], str.Ststart
rdtsc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
push 3
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
call fcn.0064eb00
push dword [0x884c50]
call esi
mov dword [esp + 0xc], eax
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x4fb255
mov dword [ecx], str.StwaitForCompletion
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
lea eax, [ecx + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x10]
push dword [0x884c50]
call esi
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0xc]
jae 0x4fb298
mov dword [eax], str.StwaitSemaphore
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x24]
call fcn.00650140
push dword [0x884c50]
call esi
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0xc]
jae 0x4fb2df
mov dword [eax], str.StfinishPpu
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
push dword [esp + 0x74]
mov eax, dword [ebp + 8]
push dword [esp + 0x74]
push dword [esp + 0x24]
push dword [eax]
call fcn.00673200
add esp, 0x10
push dword [0x884c50]
call esi
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0xc]
jae 0x4fb333
mov dword [eax], 0x77f784
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
call fcn.006730c0
add esp, 8
push dword [0x884adc]
call esi
push 0x10
push dword [esp + 0x34]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esp + 0x34]
test eax, eax
js 0x4fb37c
and eax, 0x3fffffff
mov ecx, 0x7d8950
shl eax, 2
push eax
mov eax, dword [0x7d8950]
push dword [esp + 0x2c]
call dword [eax + 0x10]
test edi, edi
js 0x4fb39b
mov eax, dword [0x7d8950]
and edi, 0x3fffffff
shl edi, 2
mov ecx, 0x7d8950
push edi
push dword [esp + 0x30]
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10