Function at 0x4cdcf0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
push eax
push ebp
mov dword [esp + 0x1c], edi
lea ebx, [edi + 0x14]
mov ecx, ebx
call fcn.0046aa70
test eax, eax
jne 0x4cdd25
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
call fcn.0049ae90
push eax
mov ecx, ebx
call fcn.0046a940
push eax
lea eax, [esp + 0x17]
mov ecx, ebx
push eax
call fcn.0046ad00
cmp byte [esp + 0x13], 0
jne 0x4cdd6c
mov ecx, dword [0x884f00]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, eax
mov ecx, edi
call fcn.0045c0c0
call fcn.0049ae90
push edi
push eax
mov ecx, ebx
call fcn.0046abd0
mov edi, dword [esp + 0x14]
call fcn.0049ae90
push eax
push ebp
call fcn.0045d370
add esp, 8
test eax, eax
jne 0x4cdd9f
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
push ebp
call fcn.0046aa70
test eax, eax
pop edi
cmove esi, dword [esp + 0x34]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], connect
call fcn.0049ae90
push eax
push ebp
mov ecx, edi
call fcn.004cd580
cmp eax, 1
jne 0x4cddce
xor esi, esi
jmp 0x4cdef2
push 0x7d8020
mov dword [esp + 0x2c], 0x7d8020
call fcn.004ce180
mov ebp, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x2c], eax
or eax, 0x80000000
sub ebp, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
js 0x4cdecf
mov eax, dword [esp + 0x1c]
mov ecx, ebx
push 0
mov eax, dword [eax + ebp*4]
push dword [eax + 4]
call fcn.0046ab90
mov ecx, dword [esp + 0x1c]
mov edi, eax
push 0
mov ecx, dword [ecx + ebp*4]
push dword [ecx]
mov ecx, ebx
call fcn.0046ab90
mov esi, eax
test esi, esi
jne 0x4cdead
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebp*4]
push dword [eax]
call fcn.004ce340
add esp, 8
mov ebx, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x4c
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, 0x4c
push edi
mov word [eax + 4], cx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + ebp*4]
mov ecx, dword [ecx + 8]
push dword [ecx]
mov ecx, eax
call fcn.004d7d90
mov esi, eax
mov ecx, ebx
mov eax, dword [ebx]
mov edi, dword [esi]
call dword [eax + 0xc]
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
push esi
add ebx, 0x14
push eax
mov ecx, ebx
call fcn.0046abd0
mov eax, dword [esp + 0x1c]
push dword [esp + 0x38]
mov eax, dword [eax + ebp*4]
push dword [eax]
call fcn.0045d370
add esp, 8
test eax, eax
je 0x4cdecf
sub ebp, 1
jns 0x4cde01
mov eax, dword [esp + 0x18]
test eax, eax
js 0x4cdef2
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push 0x7d8020
call dword [eax + 0x10]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], 0
test eax, eax
js 0x4cdf1c
and eax, 0x3fffffff
mov ecx, 0x7d8950
shl eax, 2
push eax
mov eax, dword [0x7d8950]
push dword [esp + 0x20]
call dword [eax + 0x10]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4