Function at 0x4774e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x42c
lea eax, [esp + 0x20]
mov dword [esp + 0x14], eax
xor eax, eax
push esi
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x228], eax
mov eax, dword [ecx + 0xac]
mov ecx, dword [ecx + 0xb0]
lea edx, [esp + 0x230]
mov esi, 0x80000100
push edi
lea ecx, [eax + ecx*4 - 4]
lea edi, [eax + 4]
cmp edi, ecx
mov dword [esp + 0x228], edx
mov edx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x230], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edi
jae 0x4778b4
push ebx
push ebp
jmp 0x477550
movzx ebp, word [edi + 2]
mov ebx, dword [esp + 0x440]
mov ecx, ebp
and ecx, 0x1f
mov eax, 1
shl eax, cl
mov ecx, ebp
sar ecx, 5
mov dword [esp + 0x18], ebp
and eax, dword [ebx + ecx*4]
test byte [edi], 1
mov dword [esp + 0x1c], eax
je 0x4775bd
test eax, eax
lea eax, [esp + 0x24]
jne 0x47758b
lea eax, [esp + 0x230]
mov esi, dword [eax + 4]
xor ecx, ecx
test esi, esi
jle 0x4775a5
mov edx, dword [eax]
cmp word [edx], bp
je 0x4775a8
add ecx, 1
add edx, 2
cmp ecx, esi
jl 0x477596
or ecx, 0xffffffff
lea edx, [esi - 1]
mov dword [eax + 4], edx
mov eax, dword [eax]
mov dx, word [eax + edx*2]
mov word [eax + ecx*2], dx
jmp 0x477896
mov ecx, dword [esp + 0x10]
shl ebp, 4
add ebp, dword [ecx + 0xa0]
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jle 0x4776f4
jmp 0x4775e0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xa0]
mov edx, dword [esp + 0x24]
movzx esi, word [edx + ebx*2]
mov edi, dword [ebp + 4]
shl esi, 4
mov edx, dword [esi + eax + 4]
sub edx, dword [ebp]
sub edi, dword [esi + eax]
add esi, eax
or edx, edi
test edx, 0x80008000
mov ecx, ebp
jne 0x4776d8
test byte [ebp + 0xc], 1
jne 0x47765e
test byte [esi + 0xc], 1
jne 0x47765a
mov edi, dword [esp + 0x444]
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x47763f
push 8
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea ecx, [ecx + eax*8]
add eax, 1
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
jmp 0x4776d8
mov ecx, esi
mov esi, ebp
sub esi, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
and eax, 0xfffffffe
add eax, dword [ecx + 0xd8]
sar esi, 4
cmp byte [esp + 0x448], 0
je 0x4776a8
mov edx, dword [eax + 0xc]
lea edi, [eax + 4]
and edx, 0x3fffffff
cmp dword [edi + 4], edx
jne 0x477699
push 2
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov word [ecx + eax*2], si
add dword [edi + 4], 1
jmp 0x4776d8
mov edi, dword [eax + 8]
xor ecx, ecx
test edi, edi
jle 0x4776c3
mov edx, dword [eax + 4]
cmp word [edx], si
je 0x4776c6
add ecx, 1
add edx, 2
cmp ecx, edi
jl 0x4776b4
or ecx, 0xffffffff
add dword [eax + 8], 0xffffffff
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dx, word [eax + edx*2]
mov word [eax + ecx*2], dx
add ebx, 1
cmp ebx, dword [esp + 0x28]
jl 0x4775e0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x238]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x477852
xor ebx, ebx
cmp dword [esp + 0x234], ebx
jle 0x47781f
jmp 0x477710
mov edx, dword [esp + 0x230]
movzx esi, word [edx + ebx*2]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0xa0]
mov edi, dword [ebp + 4]
shl esi, 4
mov edx, dword [esi + eax + 4]
sub edx, dword [ebp]
sub edi, dword [esi + eax]
add esi, eax
or edx, edi
test edx, 0x80008000
mov ecx, ebp
jne 0x47780b
test byte [ebp + 0xc], 1
jne 0x477791
test byte [esi + 0xc], 1
jne 0x47778d
mov edi, dword [esp + 0x444]
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x477772
push 8
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
lea ecx, [ecx + eax*8]
add eax, 1
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
jmp 0x47780b
mov ecx, esi
mov esi, ebp
sub esi, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
and eax, 0xfffffffe
add eax, dword [ecx + 0xd8]
sar esi, 4
cmp byte [esp + 0x448], 0
je 0x4777db
mov edx, dword [eax + 0xc]
lea edi, [eax + 4]
and edx, 0x3fffffff
cmp dword [edi + 4], edx
jne 0x4777cc
push 2
push edi
call fcn.00402730
add esp, 8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov word [ecx + eax*2], si
add dword [edi + 4], 1
jmp 0x47780b
mov edi, dword [eax + 8]
xor ecx, ecx
test edi, edi
jle 0x4777f6
mov edx, dword [eax + 4]
cmp word [edx], si
je 0x4777f9
add ecx, 1
add edx, 2
cmp ecx, edi
jl 0x4777e7
or ecx, 0xffffffff
add dword [eax + 8], 0xffffffff
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dx, word [eax + edx*2]
mov word [eax + ecx*2], dx
add ebx, 1
cmp ebx, dword [esp + 0x234]
jl 0x477710
mov esi, dword [esp + 0x2c]
and esi, 0x3fffffff
cmp dword [esp + 0x28], esi
jne 0x47783a
lea eax, [esp + 0x24]
push 2
push eax
call fcn.00402730
add esp, 8
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x18]
mov edx, dword [esp + 0x24]
mov word [edx + eax*2], cx
add dword [esp + 0x28], 1
jmp 0x477892
and edx, 0x3fffffff
cmp dword [esp + 0x234], edx
jne 0x477873
lea ecx, [esp + 0x230]
push 2
push ecx
call fcn.00402730
add esp, 8
mov ecx, dword [esp + 0x234]
mov dx, word [esp + 0x18]
mov eax, dword [esp + 0x230]
mov word [eax + ecx*2], dx
add dword [esp + 0x234], 1
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x238]
add edi, 4
cmp edi, dword [esp + 0x20]
mov dword [esp + 0x14], edi
jb 0x477550
pop ebp
pop ebx
test edx, edx
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x4778e8
and edx, 0x3fffffff
mov esi, edx
mov edx, dword [0x4c6060]
push edx
call edi
mov edx, dword [esp + 0x228]
push 0x17
lea ecx, [esi + esi]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov esi, dword [esp + 0x24]
test esi, esi
js 0x47790c
mov eax, dword [0x4c6060]
push eax
and esi, 0x3fffffff
call edi
mov edx, dword [esp + 0x1c]
push 0x17
lea ecx, [esi + esi]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
add esp, 0x42c
ret 0xc