Function at 0x49e3f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [esp + 0x1c], eax
call fcn.0049ea70
mov edi, eax
mov ecx, edi
mov dword [esp + 0x3c], edi
call fcn.0045e050
add eax, 0xf
and eax, 0xfffffff0
add eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
test edi, edi
je 0x49ea09
xor esi, esi
mov ecx, edi
mov dword [esp + 0x40], esi
call fcn.0045e040
test eax, eax
jle 0x49e9f4
push esi
mov ecx, edi
call fcn.0045df90
mov ecx, dword [ebp + 0xc]
mov edi, eax
movzx esi, word [edi + 0x12]
movzx eax, byte [edi + 0xc]
push dword [edi]
add esi, dword [ebp + 8]
mov dword [esp + 0x20], eax
call fcn.00484a40
test eax, eax
jne 0x49e50a
push dword [edi]
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x48]
push eax
movups xmmword [esp + 0x70], xmm0
call fcn.004849b0
mov ecx, eax
call fcn.00484ef0
lea ecx, [esp + 0x44]
mov dword [esp + 0x14], eax
call fcn.00484dd0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jle 0x49e4d7
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004849b0
mov ecx, eax
call fcn.00484ee0
lea ecx, [esp + 0x48]
call fcn.00484dd0
mov eax, dword [esp + 0x14]
cmp byte [edi + 0xc], 0x16
jne 0x49e4e4
mov dword [esi + 8], connect
cmp eax, 0xffffffff
jle 0x49e4f0
cmp dword [esp + 0x7c], 0
jne 0x49e50a
cmp dword [esp + 0x1c], 0x19
jne 0x49e9d8
mov eax, 0x400
test word [edi + 0x10], ax
jne 0x49e9d8
push dword [edi]
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.00484920
mov ecx, edi
call fcn.00468e40
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, edi
call fcn.00468990
cdq
idiv dword [esp + 0x10]
movzx ecx, word [edi + 0x10]
mov dword [esp + 0x14], eax
not ecx
mov eax, dword [esp + 0x1c]
shr ecx, 9
dec eax
and ecx, 1
mov dword [esp + 0x20], ecx
cmp eax, 0x21
ja case.0x49e563.19
movzx eax, byte [eax + 0x49ea40]
jmp dword [eax*4 + 0x49ea24]
cmp dword [esp + 0x10], 1
jne 0x49e597
push dword [ebp + 0x10]
push ecx
mov ecx, edi
call fcn.00468e20
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x2c]
push esi
call fcn.004a09b0
mov ebx, eax
jmp 0x49e9d3
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.00484840
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], 0
call fcn.00484c30
test eax, eax
jle 0x49e610
nop word [eax + eax]
test ebx, ebx
jne 0x49e610
push dword [ebp + 0x10]
mov ecx, edi
push dword [esp + 0x24]
call fcn.00468e20
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x44]
call fcn.00484c70
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push esi
call fcn.004a0680
inc dword [esp + 0x10]
lea ecx, [esp + 0x30]
add esi, dword [esp + 0x14]
mov ebx, eax
call fcn.00484c30
cmp dword [esp + 0x10], eax
jl 0x49e5c0
lea ecx, [esp + 0x30]
jmp 0x49e9ce
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 4], 0
je 0x49e640
cmp byte [edi + 0xc], 0x1a
je case.0x49e563.19
mov al, byte [edi + 0xd]
cmp al, 0x1c
je case.0x49e563.19
cmp al, 0x1d
je case.0x49e563.19
push dword [ebp + 0x10]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x30]
call fcn.00484840
push eax
push edi
push esi
mov ecx, ebx
call fcn.0049eab0
mov ebx, eax
lea ecx, [esp + 0x4c]
jmp 0x49e9ce
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 4], 0
je 0x49e68d
cmp byte [edi + 0xc], 0x1a
je case.0x49e563.19
mov al, byte [edi + 0xd]
cmp al, 0x1c
je case.0x49e563.19
cmp al, 0x1d
je case.0x49e563.19
push dword [ebp + 8]
lea eax, [esp + 0x54]
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x38]
call fcn.00484840
push eax
push edi
push esi
mov ecx, ebx
call fcn.0049faa0
mov ebx, eax
lea ecx, [esp + 0x54]
jmp 0x49e9ce
mov al, byte [edi + 0xd]
cmp al, 2
jne 0x49e750
cmp dword [esp + 0x10], 1
jne 0x49e6eb
push dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push eax
push 0x1d
push esi
call fcn.004a09b0
mov ebx, eax
jmp 0x49e9d3
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
call fcn.00484840
lea ecx, [esp + 0x34]
xor edi, edi
call fcn.00484c30
test eax, eax
jle 0x49e747
test ebx, ebx
jne 0x49e747
push dword [ebp + 0x10]
lea eax, [esp + 0x8c]
push dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ebx
push edi
push eax
call fcn.00484c70
mov ecx, dword [esp + 0x24]
push eax
push 0x1d
push esi
call fcn.004a0680
add esi, dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov ebx, eax
inc edi
call fcn.00484c30
cmp edi, eax
jl 0x49e708
lea ecx, [esp + 0x34]
jmp 0x49e9ce
cmp al, 0x19
jne 0x49e9d3
cmp dword [esp + 0x10], 1
jne 0x49e7a0
push dword [ebp + 0x10]
lea eax, [esp + 0x5c]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00484860
mov ecx, dword [esp + 0x20]
push eax
push edi
call fcn.004a05a0
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x2c]
push esi
call fcn.004a09b0
lea ecx, [esp + 0x58]
mov ebx, eax
call fcn.00484690
jmp 0x49e9d3
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
call fcn.00484840
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0
call fcn.00484c30
test eax, eax
jle 0x49e84d
mov ecx, dword [esp + 0x10]
nop dword [eax + eax]
test ebx, ebx
jne 0x49e84d
push dword [ebp + 0x10]
lea eax, [esp + 0x60]
push dword [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x38]
call fcn.00484c70
mov ecx, eax
call fcn.00484b50
mov ecx, dword [esp + 0x20]
push eax
push edi
call fcn.004a05a0
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x38]
call fcn.00484c70
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x2c]
push esi
call fcn.004a0680
lea ecx, [esp + 0x5c]
mov ebx, eax
call fcn.00484690
inc dword [esp + 0x10]
lea ecx, [esp + 0x24]
add esi, dword [esp + 0x14]
call fcn.00484c30
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jl 0x49e7d0
lea ecx, [esp + 0x24]
jmp 0x49e9ce
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push edi
push esi
call fcn.004a0560
mov ebx, eax
jmp 0x49e9d3
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
jne case.0x49e563.19
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00484840
lea eax, [esp + 0x60]
push eax
push 0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x44]
call fcn.00484c70
mov ecx, eax
call fcn.00484b50
mov ecx, dword [esp + 0x18]
push eax
push edi
call fcn.004a05a0
lea ecx, [esp + 0x60]
mov dword [esi], eax
call fcn.00484690
lea ecx, [esp + 0x38]
call fcn.00484c30
mov ecx, dword [esi]
mov dword [esi + 8], eax
call fcn.0045e050
mov edi, dword [esi + 8]
push dword [0x884adc]
mov dword [esp + 0x24], eax
imul edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
push edx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esp + 0x14]
mov dword [esi + 4], eax
push 0
push eax
call fcn.0045d830
mov eax, dword [esi + 8]
add esp, 0xc
imul eax, dword [esp + 0x20]
mov edi, dword [ebp + 0x10]
add edi, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x49e944
push 8
push edi
push 0x7d8950
call fcn.00467c00
add esp, 0xc
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edx, [eax + ecx*8]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x14]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esi + 8], eax
jle 0x49e9ca
xor ecx, ecx
mov dword [esp + 0x10], ecx
test ebx, ebx
jne 0x49e9ca
mov edi, dword [esi + 4]
push dword [ebp + 0x10]
add edi, ecx
lea ecx, [esp + 0x68]
push ecx
push eax
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x48]
call fcn.00484c70
mov ecx, eax
call fcn.00484b50
mov ecx, dword [esp + 0x1c]
push eax
push edi
call fcn.0049e3f0
lea ecx, [esp + 0x64]
mov ebx, eax
call fcn.00484690
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
cmp eax, dword [esi + 8]
jl 0x49e970
lea ecx, [esp + 0x38]
call fcn.00484c00
cmp ebx, 1
je case.0x49e563.19
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
inc esi
mov ecx, edi
mov dword [esp + 0x40], esi
call fcn.0045e040
cmp esi, eax
jl 0x49e446
mov ecx, edi
call fcn.0045dc80
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x49e431
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc