Function at 0x5dc340
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
push 0x10
call fcn.0046b820
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 4
mov esi, eax
mov dword [esp + 0x30], esi
push dword [0x884adc]
call ebx
add esi, 0x7f
and esi, 0xffffff80
mov ecx, dword [eax + 0xc]
lea edx, [ecx + esi]
cmp esi, dword [eax + 8]
jg 0x5dc37f
cmp edx, dword [eax + 0x10]
ja 0x5dc37f
mov dword [eax + 0xc], edx
jmp 0x5dc389
push esi
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
push dword [esp + 0x30]
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x28]
call fcn.0046b980
push dword [0x884adc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], connect
mov dword [esp + 0x20], 0x10
call ebx
cmp dword [eax + 8], 0x80
mov edx, dword [eax + 0xc]
lea ecx, [edx + 0x80]
jl 0x5dc3df
cmp ecx, dword [eax + 0x10]
ja 0x5dc3df
mov dword [eax + 0xc], ecx
jmp 0x5dc3ed
push 0x80
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov eax, dword [esp + 0x3c]
mov ebx, edx
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], reloc.WSOCK32.dll_recv
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x5dc4ca
nop
mov ecx, dword [esp + 0x3c]
xor edi, edi
mov ebx, dword [ecx + ebp*4]
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp byte [ebx + 0x4c], cl
jle 0x5dc4bb
mov esi, dword [ebx + edi*8]
xor eax, eax
test ecx, ecx
jle 0x5dc442
cmp dword [edx + eax*4], esi
je 0x5dc43d
inc eax
cmp eax, ecx
jl 0x5dc431
jmp 0x5dc442
cmp eax, 0xffffffff
jne 0x5dc4aa
push esi
lea ecx, [esp + 0x28]
call fcn.0046b460
cmp eax, dword [esp + 0x2c]
jg 0x5dc45c
mov ecx, dword [esp + 0x24]
inc dword [ecx + eax*8 + 4]
jmp 0x5dc46d
push 1
push esi
push 0x7d8954
lea ecx, [esp + 0x30]
call fcn.0046ba50
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0x3fffffff
cmp ecx, eax
jne 0x5dc496
push 4
lea eax, [esp + 0x14]
push eax
push 0x7d8954
call fcn.00467c00
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
movsx eax, byte [ebx + 0x4c]
inc edi
cmp edi, eax
jl 0x5dc428
mov eax, dword [esp + 0x40]
inc ebp
cmp ebp, eax
jl 0x5dc410
mov ebx, dword [esp + 0x1c]
jmp 0x5dc4ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
xor edi, edi
xor esi, esi
mov ebp, dword [eax]
cmp byte [ebp + 0x4c], 0
jle 0x5dc513
nop
mov ebx, dword [ebp + esi*8]
lea ecx, [esp + 0x24]
push 0xffffffffffffffff
push ebx
call fcn.0046b890
cmp eax, dword [esp + 0x40]
jne 0x5dc4fe
mov eax, dword [esp + 0x44]
mov dword [eax + edi*4], ebx
inc edi
movsx eax, byte [ebp + 0x4c]
inc esi
cmp esi, eax
jl 0x5dc4e0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push dword [0x884adc]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor eax, eax
cmp ebx, edx
cmove ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
lea esi, [eax*4 + 0x7f]
and esi, 0xffffff80
call ebp
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x5dc557
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x5dc557
cmp dword [eax + 0x14], ebx
je 0x5dc557
mov dword [eax + 0xc], ebx
jmp 0x5dc560
push edx
push ebx
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], 0
test eax, eax
js 0x5dc58a
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x14]
call dword [eax + 0x10]
push 0x7d8954
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], connect
call fcn.0046b3e0
mov esi, dword [esp + 0x34]
push dword [0x884adc]
mov ebx, dword [esp + 0x34]
add esi, 0x7f
and esi, 0xffffff80
call ebp
lea edx, [esi + 0xf]
and edx, 0xfffffff0
pop ebp
cmp esi, dword [eax + 8]
jg 0x5dc5dc
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x5dc5dc
cmp dword [eax + 0x14], ebx
je 0x5dc5dc
mov dword [eax + 0xc], ebx
jmp 0x5dc5e5
push edx
push ebx
mov ecx, eax
call fcn.0046a590
push 0x7d8954
lea ecx, [esp + 0x24]
call fcn.0046b3e0
lea ecx, [esp + 0x20]
call fcn.0046b110
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x28
ret