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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x134
mov eax, dword [0x4c6074]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov edi, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x46ae94
mov dword [edi], str.TtGetNextJob
rdtsc
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
add edi, 0xc
mov dword [ecx + 4], edi
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.0046aac0
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46af86
mov edx, dword [esi + 0x44]
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
push esi
call edx
add esp, 0x10
test eax, eax
jne 0x46af72
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x30]
lea eax, [eax + eax*4 + 5]
mov ecx, dword [ebx + eax*4 + 4]
lea eax, [ebx + eax*4]
mov dword [esp + 0x1c], eax
jne 0x46af26
cmp dword [eax + 0x10], ecx
jl 0x46aefd
test ecx, ecx
jne 0x46aeef
push 8
jmp 0x46aef2
add ecx, ecx
push ecx
mov ecx, eax
call fcn.00462870
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], 0
jne 0x46af09
mov edx, dword [eax + 4]
mov dword [eax + 8], edx
add dword [eax + 8], 0xffffffff
mov edi, dword [eax + 8]
shl edi, 7
add edi, dword [eax]
mov ecx, 0x20
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x10], 1
jmp 0x46af6e
cmp dword [eax + 0x10], ecx
jl 0x46af41
test ecx, ecx
jne 0x46af33
push 8
jmp 0x46af36
add ecx, ecx
push ecx
mov ecx, eax
call fcn.00462870
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 4]
jne 0x46af50
mov dword [eax + 0xc], 0
mov edi, dword [eax + 0xc]
shl edi, 7
add edi, dword [eax]
mov ecx, 0x20
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
add dword [eax + 0xc], ecx
add dword [eax + 0x10], ecx
mov esi, dword [esp + 0x20]
cmp dword [ebp + 8], 0xffffffff
je 0x46b1d0
add dword [ebx], 0xffffffff
mov dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
movzx edi, byte [esi + eax*4 + 0x34]
xor ecx, ecx
test edi, edi
jle 0x46afc3
lea edx, [esi + eax*4 + 0x35]
jmp 0x46afa0
movzx eax, byte [edx + ecx]
add eax, 1
lea eax, [eax + eax*4]
cmp dword [ebx + eax*4 + 0x10], 0
lea eax, [ebx + eax*4]
mov dword [esp + 0x1c], eax
jne 0x46b108
add ecx, 1
cmp ecx, edi
jl 0x46afa0
cmp dword [ebx], 0
jne 0x46affe
mov ecx, dword [ebx + 0x38]
add ecx, dword [ebx + 0x24]
jne 0x46affe
cmp byte [ebx + 0x10], cl
je 0x46b307
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x46aff4
add eax, 0xffffffff
mov dword [ebx + 0xc], eax
mov edx, dword [esi + 0x4c]
push 1
push edx
call fcn.0046ba10
add esp, 8
cmp dword [ebp + 8], 2
je 0x46b2ba
mov edi, 1
cmp dword [ebp + 0x18], edi
lea eax, [esp + 0xc0]
mov ecx, esi
push eax
je 0x46b343
cmp dword [ebp + 8], 2
je 0x46b092
add dword [ebx + 4], edi
call fcn.0046aa10
mov ecx, dword [0x4c6074]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call edi
mov ecx, eax
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 0xc]
jae 0x46b056
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 + 0x50]
call fcn.0046b9d0
mov eax, dword [0x4c6074]
push eax
call edi
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x46ae94
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [ebx + 4], ecx
jmp 0x46ae94
add dword [ebx + 0xc], edi
call fcn.0046aa10
mov ecx, dword [0x4c6074]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call edi
mov ecx, eax
mov ebx, dword [ecx + 4]
cmp ebx, dword [ecx + 0xc]
jae 0x46b0cc
mov dword [ebx], 0x4b9c10
rdtsc
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x2c]
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 edi
mov ebx, eax
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 0xc]
jae 0x46ae94
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [ebx + 4], ecx
jmp 0x46ae94
mov edx, dword [eax + 8]
mov esi, edx
shl esi, 7
add esi, dword [eax]
mov ecx, 0x20
lea edi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [edx + 1]
cmp ecx, dword [eax + 4]
mov dword [eax + 8], ecx
jne 0x46b132
mov dword [eax + 8], 0
add dword [eax + 0x10], 0xffffffff
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x40]
push eax
lea ecx, [esp + 0xc4]
push ecx
push ebx
push esi
call edx
add esp, 0x10
cmp eax, 1
jne 0x46b1a5
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
cmp dword [eax + 0x10], ecx
jl 0x46b177
test ecx, ecx
jne 0x46b169
push 8
jmp 0x46b16c
add ecx, ecx
push ecx
mov ecx, eax
call fcn.00462870
mov eax, dword [esp + 0x1c]
cmp dword [eax + 8], 0
jne 0x46b183
mov edx, dword [eax + 4]
mov dword [eax + 8], edx
add dword [eax + 8], 0xffffffff
mov edi, dword [eax + 8]
shl edi, 7
add edi, dword [eax]
mov ecx, 0x20
lea esi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
add dword [eax + 0x10], 1
mov esi, dword [esp + 0x20]
mov eax, dword [ebx + 0x38]
add dword [ebx], 1
add eax, dword [ebx + 0x24]
je 0x46b270
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x46b255
add eax, 0xffffffff
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x4c]
push 1
push ecx
jmp 0x46b268
mov eax, dword [ebx + 0x38]
add eax, dword [ebx + 0x24]
je 0x46b208
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x46b1ed
add eax, 0xffffffff
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x4c]
push 1
push ecx
jmp 0x46b200
mov eax, dword [ebx + 4]
test eax, eax
je 0x46b208
add eax, 0xffffffff
mov dword [ebx + 4], eax
mov edx, dword [esi + 0x50]
push 1
push edx
call fcn.0046ba10
add esp, 8
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.0046aa10
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b247
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 4]
test eax, eax
je 0x46b270
add eax, 0xffffffff
mov dword [ebx + 4], eax
mov edx, dword [esi + 0x50]
push 1
push edx
call fcn.0046ba10
add esp, 8
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.0046aa10
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b2af
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.0046aa10
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b2f9
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ecx, esi
call fcn.0046aa30
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.0046aa10
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b2f9
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x18], eax
jmp 0x46b2ec
call fcn.0046aa10
mov ecx, dword [0x4c6074]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x46b378
mov dword [ecx], 0x4b2454
rdtsc
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 0xc
mov dword [esi + 4], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14