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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0x94], 0
je 0x50cae7
mov al, byte [esp + 0xc4]
mov byte [esp + 0x11], al
mov al, byte [esp + 0xc8]
mov byte [esp + 0x12], al
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x14], 0x16
call fcn.00510450
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8
mov byte [ebp + 0x9c], 1
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x50cb1d
mov dword [esi], str.TtUpdateFilterOnWorld
rdtsc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
cmp dword [esp + 0xc4], 0
jne 0x50cbe1
mov ebx, dword [esp + 0xc8]
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [ebp + 0x2c], ecx
jle 0x50cb74
nop dword [eax]
mov eax, dword [ebp + 0x28]
xor esi, esi
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x50], esi
jle 0x50cb6a
nop dword [eax]
mov eax, dword [edi + 0x4c]
mov ecx, ebp
push ebx
push 0
push dword [eax + esi*4]
call fcn.0050c200
inc esi
cmp esi, dword [edi + 0x50]
jl 0x50cb50
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebp + 0x2c]
jl 0x50cb40
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [ebp + 0x38], ecx
jle 0x50cbb4
nop
mov eax, dword [ebp + 0x34]
xor esi, esi
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x50], esi
jle 0x50cbaa
nop dword [eax]
mov eax, dword [edi + 0x4c]
mov ecx, ebp
push ebx
push 0
push dword [eax + esi*4]
call fcn.0050c200
inc esi
cmp esi, dword [edi + 0x50]
jl 0x50cb90
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebp + 0x38]
jl 0x50cb80
xor esi, esi
cmp dword [ebp + 0x120], esi
jle 0x50cde6
mov eax, dword [ebp + 0x11c]
mov ecx, ebp
push ebx
push dword [eax + esi*4]
call fcn.0050c7f0
inc esi
cmp esi, dword [ebp + 0x120]
jl 0x50cbc2
jmp 0x50cde6
inc dword [ebp + 0x94]
lea eax, [ebp + 0x28]
mov dword [esp + 0x2c], eax
xor ebx, ebx
lea eax, [ebp + 0x34]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
nop dword [eax + eax]
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], eax
xor ecx, ecx
mov eax, dword [esp + ebx*4 + 0x2c]
mov dword [esp + 0x3c], 0x80000020
mov dword [esp + 0x20], ecx
cmp dword [eax + 4], ecx
jle 0x50cda8
nop dword [eax + eax]
mov eax, dword [eax]
mov edi, dword [eax + ecx*4]
lea eax, [edi + 0x70]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x5c]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], eax
nop dword [eax]
mov ebx, dword [esp + eax*4 + 0x24]
xor ecx, ecx
mov dword [esp + 0x38], ecx
xor edx, edx
mov eax, dword [ebx + 8]
test eax, eax
jle 0x50cd59
mov esi, dword [ebx + 4]
mov esi, dword [esi + edx*4]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, eax
jne 0x50cc7d
movzx ebx, word [ebx]
add ebx, esi
jmp 0x50cc83
lea ebx, [esi + 0x200]
cmp esi, ebx
jae 0x50cd46
nop dword [eax + eax]
mov ecx, dword [ebp + 0x7c]
lea edx, [esp + 0x1b]
push dword [esi + 0x14]
add ecx, 8
push dword [esi + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [eax], 0
je 0x50ccf2
mov eax, dword [esi + 0x10]
movsx eax, byte [eax + 0x1a]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x14]
movsx eax, byte [eax + 0x1a]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 0x80]
movsx ecx, byte [ecx + eax + 0x1c50]
test ecx, ecx
je 0x50ccf2
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jne 0x50ccf2
cmp dword [esp + 0xc8], 1
jne 0x50cd30
push edi
push dword [ebp + 0x78]
push esi
call fcn.006ad710
add esp, 0xc
jmp 0x50cd30
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
and eax, 0x3fffffff
cmp ecx, eax
jne 0x50cd1b
push 4
lea eax, [esp + 0x38]
push eax
push 0x7d8954
call fcn.00467c00
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [esp + 0x34]
mov dword [eax + ecx*4], esi
inc dword [esp + 0x38]
mov al, byte [edi + 0x25]
and al, 0xfd
or al, 1
mov byte [edi + 0x25], al
movzx eax, byte [esi + 3]
add esi, eax
cmp esi, ebx
jb 0x50cc90
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + eax*4 + 0x24]
mov eax, dword [ebx + 8]
cmp edx, eax
jl 0x50cc67
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 2
jl 0x50cc50
test ecx, ecx
je 0x50cd8e
nop
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ecx*4 - 4]
dec ecx
push eax
mov dword [esp + 0x3c], ecx
call fcn.0052dac0
mov ecx, dword [esp + 0x3c]
add esp, 4
test ecx, ecx
jne 0x50cd70
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + ebx*4 + 0x2c]
cmp ecx, dword [eax + 4]
jl 0x50cc30
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], 0
test eax, eax
js 0x50cdd2
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x38]
call dword [eax + 0x10]
inc ebx
mov dword [esp + 0x14], ebx
cmp ebx, 2
jl 0x50cc00
dec dword [ebp + 0x94]
cmp dword [ebp + 0x94], 0
mov byte [ebp + 0x9c], 0
jne 0x50ce1f
cmp dword [ebp + 0x8c], 0
je 0x50ce06
mov ecx, ebp
call fcn.00510540
cmp dword [ebp + 0xa4], 1
jne 0x50ce1f
cmp dword [ebp + 0x90], 0
je 0x50ce1f
mov ecx, ebp
call fcn.00510560
push dword [0x884c50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x50ce4e
mov dword [esi], 0x77f5ec
rdtsc
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8