Function at 0x5fd640
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
push esi
push edi
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x20], edx
test ecx, ecx
jne 0x5fd669
xor eax, eax
jmp 0x5fd672
call fcn.005cca00
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx]
test ecx, ecx
je 0x5fd922
cmp dword [ecx + 8], 0
je 0x5fd922
mov eax, dword [edx + 0x14]
push dword [0x884adc]
mov dword [esp + 0x14], eax
mov esi, dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea edi, [esi + esi*2]
shl edi, 4
add edi, 0x7f
and edi, 0xffffff80
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
lea edx, [eax + edi]
cmp edi, dword [ecx + 8]
jg 0x5fd6ca
cmp edx, dword [ecx + 0x10]
ja 0x5fd6ca
mov dword [ecx + 0xc], edx
jmp 0x5fd6d4
push edi
call fcn.0046a3c0
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [edx]
movsx ecx, word [edx + 0x34]
add ecx, edx
push ecx
push dword [eax + 0xc]
push dword [eax + 0x1c]
call fcn.0057e2a0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov esi, dword [eax + 0x2c]
push dword [0x884adc]
mov dword [esp + 0x18], esi
mov esi, dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x7f
and eax, 0xffffff80
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], esi
lea edx, [esi + eax]
cmp eax, dword [ecx + 8]
jg 0x5fd738
cmp edx, dword [ecx + 0x10]
ja 0x5fd738
mov dword [ecx + 0xc], edx
jmp 0x5fd744
push eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push esi
push dword [eax + 0x24]
push dword [eax + 0xc]
push dword [eax + 0x1c]
call fcn.0057e2a0
mov eax, dword [esp + 0x30]
push 2
push esi
mov esi, dword [esp + 0x2c]
push dword [esi + 0x24]
push dword [esp + 0x34]
push dword [eax + 0x1c]
call fcn.00569220
mov esi, dword [esi + 0x1c]
add esp, 0x24
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x7f
and eax, 0xffffff80
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
lea edx, [esi + eax]
cmp eax, dword [ecx + 8]
jg 0x5fd7ae
cmp edx, dword [ecx + 0x10]
ja 0x5fd7ae
mov dword [ecx + 0xc], edx
jmp 0x5fd7ba
push eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
push 0x884c20
push esi
call fcn.0058a320
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x24]
add ecx, 0x20
push ecx
mov ecx, dword [esp + 0x28]
movzx eax, word [ecx + 0x30]
push eax
movzx eax, word [ecx + 0x2e]
push eax
movzx eax, word [ecx + 0x2c]
lea ecx, [esp + 0x3c]
push eax
call fcn.00703360
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x94]
push eax
push esi
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push esi
call fcn.007034e0
mov ecx, dword [ebp + 0xc]
movaps xmm0, xmmword [esp + 0x60]
mov eax, dword [ecx]
movsx ecx, word [eax + 0x14]
movaps xmmword [ecx + eax], xmm0
movaps xmm0, xmmword [esp + 0x70]
movaps xmmword [ecx + eax + 0x10], xmm0
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [ecx + eax + 0x20], xmm0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], 0
test eax, eax
js 0x5fd85f
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 5
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x34]
call dword [eax + 0x10]
push dword [0x884adc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], connect
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x28]
lea ecx, [edx + 0xf]
and ecx, 0xfffffff0
cmp edx, dword [eax + 8]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jg 0x5fd8a7
add ecx, edx
cmp ecx, dword [eax + 0xc]
jne 0x5fd8a3
cmp dword [eax + 0x14], edx
je 0x5fd8a3
mov dword [eax + 0xc], edx
jmp 0x5fd8b0
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x2c]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5fd8dd
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x5fd8dd
cmp dword [eax + 0x14], esi
je 0x5fd8dd
mov dword [eax + 0xc], esi
jmp 0x5fd8e6
push edx
push esi
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x18]
lea esi, [edi + 0xf]
and esi, 0xfffffff0
cmp edi, dword [eax + 8]
jg 0x5fd919
lea ecx, [esi + edx]
cmp ecx, dword [eax + 0xc]
jne 0x5fd919
cmp dword [eax + 0x14], edx
je 0x5fd919
mov dword [eax + 0xc], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push edx
mov ecx, eax
call fcn.0046a590
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8