Function at 0x55adf0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ecx, dword [ebx + 4]
push edi
mov eax, dword [ebp + 8]
and eax, 0x3fffffff
cmp eax, ecx
jge 0x55ae26
add eax, eax
cmp ecx, eax
push 4
cmovl ecx, eax
push ecx
push ebp
push 0x7d8954
call fcn.00467b80
add esp, 0x10
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [ebx + 4], eax
jle 0x55afe7
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax*4]
mov eax, dword [ebx]
mov dword [esp + 0x24], ecx
mov edi, dword [ecx + eax]
mov dword [esp + 0x18], edi
mov eax, dword [edi]
lea ebx, [edi + 0x10]
add eax, 0x10
add eax, edi
mov dword [esp + 0x20], eax
cmp ebx, eax
jae 0x55af71
mov byte [esp + 0x1c], 0
nop word [eax + eax]
push dword [0x884adc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call esi
push 0x20
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
test esi, esi
je 0x55aeca
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], connect
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], connect
mov dword [esi + 0x18], 0xffffffff
jmp 0x55aecc
xor esi, esi
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x44]
push dword [esp + 0x30]
push ebx
call fcn.0055aa60
add esp, 0x1c
test eax, eax
jne 0x55aff1
cmp dword [esi + 4], eax
je 0x55af3e
mov eax, dword [esp + 0x38]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x10]
sub eax, edi
lea edi, [ebp + 0xc]
sub eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x55af2d
push 4
push edi
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [eax + ecx*4], esi
inc dword [edi + 4]
mov edi, dword [esp + 0x18]
jmp 0x55af5d
mov ecx, esi
call fcn.00554f90
push dword [0x884adc]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
push 0x20
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
add ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp ebx, dword [esp + 0x20]
jb 0x55ae70
mov eax, dword [ebp + 8]
and eax, 0x3fffffff
cmp dword [ebp + 4], eax
jne 0x55af8e
push 4
push ebp
push 0x7d8954
call fcn.00467c00
add esp, 0xc
inc dword [ebp + 4]
push dword [0x884adc]
call esi
push 0x200
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x55afb4
mov dword [ecx], 0
jmp 0x55afb6
xor ecx, ecx
mov eax, dword [ebp]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov dword [edx + eax], ecx
mov ecx, 0x80
mov edi, dword [ebp]
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
mov edi, dword [edx + edi]
rep movsd dword es:[edi], dword [esi]
cmp eax, dword [ebx + 4]
jl 0x55ae35
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
test esi, esi
je 0x55b014
mov ecx, esi
call fcn.00554f90
push dword [0x884adc]
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
push 0x20
push esi
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret