Function at 0x494ae0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov ebx, ecx
push esi
push edi
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x494b0c
push 0
push eax
lea ecx, [ebx + 4]
call fcn.0046ab90
mov esi, eax
jmp 0x494b0e
xor esi, esi
push ebp
mov ecx, ebx
call fcn.00493490
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x494b2f
lea ecx, [esp + 0x30]
push ecx
push eax
lea ecx, [ebx + 0x14]
call fcn.00493440
mov ecx, ebp
call fcn.00493d00
push dword [0x884adc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], connect
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], 0x100
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 0x100]
jl 0x494b7e
cmp edx, dword [eax + 0x10]
ja 0x494b7e
mov dword [eax + 0xc], edx
jmp 0x494b8c
push 0x100
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
lea ecx, [ebx + 0x14]
push ebp
mov dword [esp + 0x24], 0x80000040
call fcn.004926c0
cmp eax, 0xffffffff
setne cl
mov byte [esp + 0x13], cl
test cl, cl
je 0x494c14
cmp eax, 0xffffffff
je 0x494c14
mov ecx, dword [esp + 0x1c]
nop dword [eax]
lea esi, [eax*8]
mov eax, dword [ebx + 0x14]
mov ebp, dword [esi + eax]
mov eax, dword [esp + 0x20]
and eax, 0x3fffffff
cmp ecx, eax
jne 0x494bf2
push 4
lea eax, [esp + 0x1c]
push eax
push 0x7d8954
call fcn.00467c00
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [eax + ecx*4], ebp
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x14]
inc ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [esi + eax + 4]
cmp eax, 0xffffffff
jne 0x494bc0
mov ebp, dword [esp + 0x30]
jmp 0x494c18
mov ecx, dword [esp + 0x1c]
xor esi, esi
test ecx, ecx
jle 0x494c4a
nop
mov eax, dword [esp + 0x18]
mov ecx, ebx
push dword [eax + esi*4]
call fcn.00494ae0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi*4]
add dword [ecx + 8], 0xffffffff
jne 0x494c41
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x1c]
inc esi
cmp esi, ecx
jl 0x494c20
cmp byte [esp + 0x13], 0
je 0x494c5e
push ebp
lea ecx, [ebx + 0x14]
call fcn.00493760
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
xor eax, eax
cmp edi, dword [esp + 0x18]
push dword [0x884adc]
cmove ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
lea esi, [eax*4 + 0x7f]
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x494ca6
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x494ca6
cmp dword [eax + 0x14], edi
je 0x494ca6
mov dword [eax + 0xc], edi
jmp 0x494caf
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
js 0x494cd9
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x1c]
call dword [eax + 0x10]
mov ebp, dword [esp + 0x14]
lea ecx, [ebx + 0x60]
push 0
push ebp
call fcn.0046ab90
push ebp
lea ecx, [ebx + 0x60]
mov esi, eax
call fcn.0046ad60
mov ecx, esi
call fcn.0045c160
push ebp
lea ecx, [ebx + 4]
call fcn.0046ad60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4