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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa4
mov eax, dword [0x4c6074]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x46b3d4
mov dword [edi], str.TtGetNextJob
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [edi + 4], edx
add edi, 0xc
mov dword [ecx + 4], edi
mov byte [esp + 0x13], 1
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0046aac0
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
je 0x46b4a6
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
jne 0x46b44b
lea ecx, [ecx + ecx*4 + 5]
lea ebx, [eax + ecx*4]
mov ecx, dword [ebx + 4]
cmp dword [ebx + 0x10], ecx
jl 0x46b423
test ecx, ecx
jne 0x46b414
push 8
jmp 0x46b418
lea edx, [ecx + ecx]
push edx
mov ecx, ebx
call fcn.00462870
mov eax, dword [esp + 0x18]
cmp dword [ebx + 8], 0
jne 0x46b42f
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ecx
add dword [ebx + 8], 0xffffffff
mov edi, dword [ebx + 8]
mov esi, dword [ebp + 0x14]
shl edi, 7
add edi, dword [ebx]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x10], 1
jmp 0x46b49f
lea edx, [ecx + ecx*4 + 5]
mov ecx, dword [eax + edx*4 + 4]
cmp dword [eax + edx*4 + 0x10], ecx
lea ebx, [eax + edx*4]
jl 0x46b473
test ecx, ecx
jne 0x46b464
push 8
jmp 0x46b468
lea eax, [ecx + ecx]
push eax
mov ecx, ebx
call fcn.00462870
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebx + 4]
jne 0x46b482
mov dword [ebx + 0xc], 0
mov edi, dword [ebx + 0xc]
mov esi, dword [ebp + 0x14]
shl edi, 7
add edi, dword [ebx]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
add dword [ebx + 0xc], ecx
add dword [ebx + 0x10], ecx
add dword [eax], 0xffffffff
mov esi, dword [esp + 0x1c]
mov edi, dword [ebp + 0x10]
movzx ecx, byte [esi + edi*4 + 0x34]
xor edx, edx
test ecx, ecx
mov dword [esp + 0x2c], ecx
jle 0x46b4e1
lea edi, [esi + edi*4 + 0x35]
lea esp, [esp]
movzx ecx, byte [edi + edx]
add ecx, 1
lea ecx, [ecx + ecx*4]
cmp dword [eax + ecx*4 + 0x10], 0
lea ebx, [eax + ecx*4]
jne 0x46b597
add edx, 1
cmp edx, dword [esp + 0x2c]
jl 0x46b4c0
mov edx, 1
mov ecx, edx
test ecx, ecx
mov byte [esp + 0x13], 0
je 0x46b6b1
cmp dword [eax], 0
jne 0x46b506
mov ecx, dword [eax + 0x38]
add ecx, dword [eax + 0x24]
je 0x46b72e
cmp dword [ebp + 0x18], edx
je 0x46b780
cmp dword [ebp + 0x10], 2
mov ecx, esi
je 0x46b634
add dword [eax + 4], edx
lea edx, [esp + 0x30]
push edx
call fcn.0046aa10
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 0xc]
jae 0x46b557
mov dword [ebx], 0x4b9c10
rdtsc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [ebx + 4], edx
add ebx, 0xc
mov dword [ecx + 4], ebx
mov ecx, dword [esi + 0x50]
call fcn.0046b9d0
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x46b3d9
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x20]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [ebx + 4], ecx
jmp 0x46b3d9
mov edx, dword [ebx + 8]
mov esi, edx
shl esi, 7
add esi, dword [ebx]
mov ecx, 0x20
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + 1]
cmp ecx, dword [ebx + 4]
mov dword [ebx + 8], ecx
jne 0x46b5be
mov dword [ebx + 8], 0
mov edx, dword [ebp + 0x14]
add dword [ebx + 0x10], 0xffffffff
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x40]
push eax
call edx
add esp, 0x10
cmp eax, 1
jne 0x46b61f
mov eax, dword [ebx + 4]
cmp dword [ebx + 0x10], eax
jl 0x46b5f8
test eax, eax
mov ecx, ebx
jne 0x46b5f0
push 8
jmp 0x46b5f3
add eax, eax
push eax
call fcn.00462870
cmp dword [ebx + 8], 0
jne 0x46b604
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ecx
add dword [ebx + 8], 0xffffffff
mov edi, dword [ebx + 8]
shl edi, 7
add edi, dword [ebx]
mov ecx, 0x20
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 0x10], 1
mov eax, dword [esp + 0x18]
add dword [eax], 1
mov esi, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [ecx + 1]
jmp 0x46b4e8
add dword [eax + 0xc], edx
lea eax, [esp + 0x30]
push eax
call fcn.0046aa10
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 0xc]
jae 0x46b671
mov dword [ebx], 0x4b9c10
rdtsc
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x28]
mov dword [ebx + 4], edx
add ebx, 0xc
mov dword [ecx + 4], ebx
mov ecx, dword [esi + 0x4c]
call fcn.0046b9d0
mov eax, dword [0x4c6074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x46b3d9
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [ebx + 4], ecx
jmp 0x46b3d9
mov ecx, dword [eax + 0x38]
add ecx, dword [eax + 0x24]
je 0x46b6e7
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x46b6cd
add ecx, 0xffffffff
push edx
mov dword [eax + 0xc], ecx
mov edx, dword [esi + 0x4c]
push edx
jmp 0x46b6df
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x46b6e7
add ecx, 0xffffffff
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x50]
push edx
push eax
call fcn.0046ba10
add esp, 8
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0046aa10
mov edx, dword [0x4c6074]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b723
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [esi + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push eax
mov ecx, esi
call fcn.0046aa30
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0046aa10
mov edx, dword [0x4c6074]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b772
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
add ecx, 0xc
mov dword [esi + 4], ecx
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0046aa10
mov edx, dword [0x4c6074]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x46b7bc
mov dword [esi], str.EtGetNextJob
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
add esi, 0xc
mov dword [ecx + 4], esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14