Function at 0x4955f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, ebx
mov dword [esp + 0x2c], edi
call fcn.00484cb0
dec eax
cmp eax, 9
ja case.0x495619.5
jmp dword [eax*4 + 0x495cf0]
mov esi, dword [ebp + 0xc]
mov edx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], connect
test esi, esi
je 0x49565d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
mov eax, dword [0x7d8950]
mov ecx, 0x7d8950
call dword [eax + 0xc]
mov edx, dword [esp + 0x10]
jmp 0x49565f
xor eax, eax
test edx, edx
mov dword [esp + 0x18], eax
mov ecx, connect
mov dword [esp + 0x1c], esi
cmovne ecx, edx
mov dword [esp + 0x20], ecx
and ecx, 0x3fffffff
cmp ecx, esi
jge 0x4956a1
add ecx, ecx
mov eax, esi
cmp esi, ecx
push 1
cmovl eax, ecx
push eax
lea eax, [esp + 0x20]
push eax
push 0x7d8950
call fcn.00467b80
mov eax, dword [esp + 0x28]
add esp, 0x10
push esi
push 1
push eax
lea ecx, [edi + 4]
call fcn.0064c970
push esi
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.00484d30
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
js case.0x495619.5
and eax, 0x3fffffff
push eax
mov eax, dword [0x7d8950]
mov ecx, 0x7d8950
push dword [esp + 0x1c]
call dword [eax + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi], 3
mov eax, 4
mov dword [esp + 0x10], eax
jl 0x495706
mov ecx, edi
call fcn.00494dd0
mov dword [esp + 0x10], eax
xor esi, esi
cmp dword [ebp + 0xc], esi
jle case.0x495619.5
mov ecx, edi
cmp eax, 4
jne 0x495734
call fcn.00494dd0
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, ebx
push eax
call fcn.00484c70
mov ecx, eax
call fcn.00484a50
jmp 0x49574f
call fcn.00494fb0
push edx
push eax
push esi
lea eax, [esp + 0x6c]
mov ecx, ebx
push eax
call fcn.00484c70
mov ecx, eax
call fcn.00484a70
mov eax, dword [esp + 0x10]
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x495711
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov edx, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], connect
test esi, esi
je 0x4957b7
lea eax, [esi*4]
mov ecx, 0x7d8950
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x7d8950]
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cdq
and edx, 3
add edx, eax
mov eax, dword [esp + 0x14]
sar edx, 2
jmp 0x4957b9
xor eax, eax
test edx, edx
mov dword [esp + 0x18], eax
mov ecx, connect
mov dword [esp + 0x1c], esi
cmovne ecx, edx
mov dword [esp + 0x20], ecx
and ecx, 0x3fffffff
cmp ecx, esi
jge 0x4957fb
add ecx, ecx
mov eax, esi
cmp esi, ecx
push 4
cmovl eax, ecx
push eax
lea eax, [esp + 0x20]
push eax
push 0x7d8950
call fcn.00467b80
mov eax, dword [esp + 0x28]
add esp, 0x10
push esi
push 4
push eax
lea ecx, [edi + 4]
mov dword [esp + 0x28], esi
call fcn.0064c970
push dword [esp + 0x1c]
mov ecx, ebx
push dword [esp + 0x1c]
call fcn.00484da0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
js case.0x495619.5
and eax, 0x3fffffff
shl eax, 2
jmp 0x4956d2
mov ecx, edi
call fcn.00494dd0
xor esi, esi
mov ecx, eax
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
movups xmmword [esp + 0x18], xmm0
cmp dword [ebp + 0xc], esi
jle case.0x495619.5
lea eax, [edi + 4]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
push ecx
push 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0064c970
push 4
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
push esi
lea eax, [esp + 0x64]
push eax
call fcn.00484c70
mov ecx, eax
call fcn.00484bc0
mov eax, dword [esp + 0x14]
inc esi
mov ecx, dword [esp + 0x28]
cmp esi, edi
jl 0x495865
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.00484cb0
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x10], 0
lea ebx, [eax*4 - 0xc]
jle case.0x495619.5
xor esi, esi
test ebx, ebx
jle 0x4958f9
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
mov edi, eax
push 1
push 4
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.0064c970
movss xmm0, dword [esp + 0x28]
movss dword [esp + esi*4 + 0x68], xmm0
inc esi
cmp esi, ebx
jl 0x4958d4
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x68]
mov ecx, dword [ebp + 8]
push ebx
push eax
push esi
lea eax, [esp + 0x64]
push eax
call fcn.00484c70
mov ecx, eax
call fcn.00484bc0
inc esi
mov dword [esp + 0x10], esi
cmp esi, dword [ebp + 0xc]
jl 0x4958c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor esi, esi
cmp dword [ebp + 0xc], esi
jle case.0x495619.5
push esi
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.00484c70
mov ecx, edi
push dword [eax + 4]
push dword [eax]
call fcn.00495060
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x495936
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor esi, esi
cmp dword [ebp + 0xc], esi
jle case.0x495619.5
nop dword [eax]
mov ecx, edi
call fcn.00496970
push eax
push esi
lea eax, [esp + 0x60]
mov ecx, ebx
push eax
call fcn.00484c70
mov ecx, eax
call fcn.00484af0
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x495970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.00484c50
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00484cc0
lea ecx, [esp + 0x10]
call fcn.00484ed0
push dword [0x884adc]
mov ebx, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], connect
mov dword [esp + 0x58], 0x80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], 0x80
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 0x80]
jl 0x495a08
cmp edx, dword [eax + 0x10]
ja 0x495a08
mov dword [eax + 0xc], edx
jmp 0x495a16
push 0x80
mov ecx, eax
call fcn.0046a3c0
mov ecx, eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x54], ecx
mov ecx, edi
push ebx
mov dword [esp + 0x54], 0x80000080
call fcn.00495f90
xor esi, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], connect
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x495a93
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebx + ebx*2]
lea edx, [ecx*8 + 0x7f]
and edx, 0xffffff80
mov ecx, dword [eax + 0xc]
lea esi, [ecx + edx]
cmp edx, dword [eax + 8]
jg 0x495a83
cmp esi, dword [eax + 0x10]
ja 0x495a83
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x34]
jmp 0x495a95
push edx
mov ecx, eax
call fcn.0046a3c0
mov esi, dword [esp + 0x34]
mov ecx, eax
jmp 0x495a95
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x30], ecx
or eax, 0x80000000
mov dword [esp + 0x3c], ecx
mov edx, ebx
mov dword [esp + 0x38], eax
sub edx, esi
lea eax, [esi + esi*2]
test edx, edx
jle 0x495af8
lea ecx, [ecx + eax*8]
add ecx, 8
nop dword [eax]
lea eax, [ecx - 8]
test eax, eax
je 0x495af0
mov dword [ecx - 8], 0
mov dword [ecx - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
add ecx, 0x18
sub edx, 1
jne 0x495ac0
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00484f00
xor ecx, ecx
mov dword [esp + 0x14], ecx
test ebx, ebx
jle 0x495bc2
xor ebx, ebx
nop word [eax + eax]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x60], esi
cmp byte [eax + ecx], 0
je 0x495bb0
push dword [ebx + esi]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.00484ce0
cmp dword [ebx + esi + 0x10], 0
jne 0x495b5e
push dword [ebp + 0xc]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.004955f0
jmp 0x495ba3
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x495ba3
lea eax, [esp + 0x28]
push eax
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
call fcn.00484c70
mov ecx, eax
call fcn.00484b70
mov eax, dword [esp + 0x60]
mov ecx, edi
push dword [ebx + eax + 0x10]
lea eax, [esp + 0x2c]
push eax
call fcn.004955f0
lea ecx, [esp + 0x28]
call fcn.00484c00
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x495b65
lea ecx, [esp + 0x2c]
call fcn.00484c00
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 0x18
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x58]
jl 0x495b20
mov edi, dword [esp + 0x3c]
xor ecx, ecx
mov eax, dword [esp + 0x34]
cmp edi, dword [esp + 0x30]
push dword [0x884adc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmove eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
lea eax, [eax + eax*2]
lea esi, [eax*8 + 0x7f]
and esi, 0xffffff80
call ebx
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x495c13
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x495c13
cmp dword [eax + 0x14], edi
je 0x495c13
mov dword [eax + 0xc], edi
jmp 0x495c1c
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], 0
test eax, eax
js 0x495c49
and eax, 0x3fffffff
mov ecx, 0x7d8954
lea eax, [eax + eax*2]
shl eax, 3
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x34]
call dword [eax + 0x10]
mov edi, dword [esp + 0x50]
xor ecx, ecx
mov eax, dword [esp + 0x48]
cmp edi, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
push dword [0x884adc]
cmove eax, ecx
mov dword [esp + 0x34], 0
add esi, 0x7f
mov dword [esp + 0x3c], connect
mov dword [esp + 0x4c], eax
and esi, 0xffffff80
call ebx
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x495c9d
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x495c9d
cmp dword [eax + 0x14], edi
je 0x495c9d
mov dword [eax + 0xc], edi
jmp 0x495ca6
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], 0
test eax, eax
js 0x495ccd
and eax, 0x3fffffff
mov ecx, 0x7d8954
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x48]
call dword [eax + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], connect
call fcn.00484dd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8