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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0x18], ecx
je 0x4f98fe
cmp dword [ebp + 0x14], 0
je 0x4f98fe
cmp dword [eax + 4], 0x20
jl 0x4f98fe
push dword [0x884c50]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov edi, eax
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jae 0x4f94bb
mov dword [ecx], str.LtBuildKdTreeMt
mov dword [ecx + 0xc], str.StPrepare
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
mov edi, dword [eax + 4]
mov dword [esp + 0x14], edi
call fcn.00663790
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x50]
mov dword [esp + 0x30], edi
mov byte [esp + 0x35], 1
push edx
mov ecx, dword [ecx + 0x58]
lea edx, [esp + 0x44]
push edx
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x4f9501
lea eax, [esp + 0x30]
push eax
call fcn.006638c0
jmp 0x4f952b
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 0x4f9527
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00663810
jmp 0x4f9529
xor eax, eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
mov ecx, 0x7d8954
mov dword [esp + 0x20], 0x10
mov eax, dword [eax + 0x3c]
mov dword [eax], 4
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x7d8954]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x1c], eax
mov edi, connect
mov eax, dword [esp + 0x20]
mov ecx, 0x7d8954
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 [0x7d8954]
mov eax, dword [eax + 0xc]
call eax
mov dword [esp + 0x28], eax
mov ecx, connect
mov eax, dword [esp + 0x24]
cdq
and edx, 3
mov word [esp + 0x61], 0x103
add eax, edx
mov dword [esp + 0x78], 0
sar eax, 2
test eax, eax
mov byte [esp + 0x60], 6
push dword [0x884c50]
cmovne ecx, eax
or eax, 0xffffffff
mov word [esp + 0x6a], ax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x78], eax
mov eax, 0x60
mov word [esp + 0x68], ax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x78]
mov dword [esp + 0x80], eax
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xb4], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov ecx, dword [ecx]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [ecx]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0x14]
mov dword [esp + 0xa0], eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0xa4], eax
call esi
mov ecx, eax
mov dword [esp + 8], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 0xc]
jae 0x4f9699
mov dword [eax], str.StBuild
rdtsc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 8]
mov dword [ecx + 4], eax
push dword [0x884c50]
call esi
mov dword [esp + 0xc], eax
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x4f96d1
mov dword [ecx], str.LtbuildTreeDistributed
mov dword [ecx + 0xc], str.Stqueue
rdtsc
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0064eea0
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 0x4f971b
mov dword [eax], str.Ststart
rdtsc
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x18]
push 3
push dword [ebp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x14]
call fcn.0064eb00
push dword [0x884c50]
call esi
mov dword [esp + 0xc], eax
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 0xc]
jae 0x4f9761
mov dword [ecx], str.StwaitForCompletion
rdtsc
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
lea eax, [ecx + 0xc]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x18]
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 0x4f97a4
mov dword [eax], str.StwaitSemaphore
rdtsc
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x6c]
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 0x4f97eb
mov dword [eax], str.StfinishPpu
rdtsc
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
push dword [esp + 0x94]
mov eax, dword [ebp + 8]
push dword [esp + 0x94]
push dword [esp + 0x1c]
push dword [eax]
call fcn.00673200
add esp, 0x10
push dword [0x884c50]
call esi
mov ecx, eax
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
cmp eax, dword [ecx + 0xc]
jae 0x4f9845
mov dword [eax], 0x77f784
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
push dword [0x884c50]
call esi
mov ecx, eax
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
cmp eax, dword [ecx + 0xc]
jae 0x4f9880
mov dword [eax], str.StFinalize
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
add eax, 0xc
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], eax
push dword [0x884c50]
call esi
mov dword [esp + 8], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x4f98b1
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
test eax, eax
js 0x4f98d3
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x2c]
call dword [eax + 0x10]
test edi, edi
js 0x4f9996
mov eax, dword [0x7d8954]
and edi, 0x3fffffff
shl edi, 2
mov ecx, 0x7d8954
push edi
push dword [esp + 0x20]
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0xc4]
push edi
push eax
call fcn.006aba10
lea ecx, [esp + 0xc4]
call fcn.006abab0
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00663790
mov ecx, dword [edi + 0x58]
lea edx, [esp + 0x50]
mov dword [esp + 0x30], esi
mov byte [esp + 0x35], 0
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push edx
call dword [eax + 0x44]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
test ecx, ecx
je 0x4f9956
lea eax, [esp + 0x30]
push eax
call fcn.006638c0
jmp 0x4f9984
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x50
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test eax, eax
je 0x4f9980
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00663810
jmp 0x4f9982
xor eax, eax
mov dword [esi], eax
push dword [esi]
mov eax, dword [esp + 0x1c]
add eax, 0x30
push eax
call fcn.006731d0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14