Function at 0x4a3ee0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64b97d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x6e1c7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x8c], esi
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x20], eax
sub eax, 1
je 0x4a3f7d
mov esi, dword [esi + 4]
mov edi, dword [ebx + 0x10]
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
cmp eax, edi
mov edx, eax
cmovae edx, edi
sub eax, edx
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
add dword [eax], edx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
mov eax, dword [esi + 0x1c]
sub ecx, dword [eax]
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x4a3f69
test edi, edi
jne 0x4a3f77
mov esi, dword [ebp - 0x8c]
mov edi, dword [esi + 0x24]
jmp 0x4a4154
mov esi, dword [ebp - 0x8c]
mov ecx, dword [esi + 4]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x88], eax
movlpd qword [ebp - 0x1c], xmm0
movups xmmword [ebp - 0x80], xmm0
mov eax, dword [ecx + 0x20]
movq qword [ebp - 0x70], xmm0
mov dword [ebp - 0x68], 0
mov edx, dword [eax]
mov eax, dword [ecx + 0x1c]
lea ecx, [ebp - 0x80]
mov eax, dword [eax]
sub edx, eax
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.004a4a60
push dword [esi + 0x24]
mov edx, ecx
movq qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
call fcn.004a4970
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], eax
mov ecx, eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x60], 0
add esp, 4
mov dword [ebp - 0x5c], 0
xor edx, edx
mov dword [ebp - 0x50], eax
mov eax, dword [ecx]
add edx, dword [ecx + 4]
add ecx, 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
cmp ecx, eax
jne 0x4a4003
cmp dword [esi + 0x1c], 0x10
mov dword [ebp - 0x54], ecx
lea ecx, [esi + 8]
mov dword [ebp - 0x84], edx
mov edi, ecx
jb 0x4a402b
mov edi, dword [ecx]
mov eax, dword [ecx + 0x10]
add eax, edi
cmp dword [ecx + 0x14], 0x10
jb 0x4a4038
mov ecx, dword [ecx]
movups xmm0, xmmword [ebp - 0x64]
push eax
push ecx
sub esp, 0x1c
mov eax, esp
sub esp, 0x1c
mov ecx, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x44]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x2c]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
lea ecx, [ebp - 0x48]
call fcn.004aa0f0
mov edi, dword [ebp - 0x30]
add esp, 0x40
mov edx, dword [ebp - 0x84]
cmp edi, edx
je 0x4a409d
cmp byte [ebp - 0x2c], 0
je 0x4a409d
sub edi, dword [ebp - 0x68]
add edi, dword [esi + 0x18]
xor ecx, ecx
mov dword [esi + 0x24], edi
jmp 0x4a413f
mov eax, dword [ebp - 0x88]
mov esi, dword [ebp - 0x88]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax]
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
sub ecx, dword [eax]
mov eax, dword [esi]
mov esi, dword [ebp - 0x8c]
cmp ecx, dword [eax + 0x38]
jne 0x4a40d2
xor ecx, ecx
mov dword [esi + 0x24], 0xffffffff
or edi, 0xffffffff
jmp 0x4a413f
cmp edi, edx
jne 0x4a40d8
mov edi, edx
mov eax, dword [ebp - 0x88]
sub edi, dword [ebp - 0x68]
mov dword [esi + 0x24], edi
mov dword [ebp - 0x24], 0x10000
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
mov esi, dword [edx + 0x38]
mov ecx, dword [eax]
mov eax, dword [edx + 0x1c]
mov edx, dword [edx + 0x44]
sub ecx, dword [eax]
sub esi, ecx
mov dword [ebp - 0x84], esi
mov esi, dword [ebp - 0x88]
mov eax, dword [esi]
mov esi, dword [ebp - 0x8c]
sub edx, dword [eax + 0x3c]
lea eax, [ebp - 0x84]
sub edx, ecx
cmp dword [ebp - 0x84], 0x10000
lea ecx, [ebp - 0x24]
cmovb ecx, eax
mov eax, 0x200
cmp edx, eax
cmova eax, edx
mov ecx, dword [ecx]
cmp ecx, eax
cmovae ecx, eax
cmp dword [ebx + 0x14], 0
jne 0x4a42e0
test ecx, ecx
jne 0x4a42e0
mov ecx, dword [ebx + 8]
cmp edi, 0xffffffff
jne 0x4a416a
call fcn.0044fbb0
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], 3
jmp 0x4a4170
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x84], eax
test ecx, ecx
jne 0x4a4188
mov edi, dword [esi + 0x24]
cmp edi, 0xffffffff
jne 0x4a418a
xor edi, edi
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004a3c20
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x98], edi
mov eax, dword [ecx]
mov dword [ebp - 0xa0], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 0
lea edi, [esi + 0x2c]
mov eax, dword [esi + 0x28]
push dword [0x6efacc]
mov esi, dword [edi]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a41e7
cmp dword [eax], esi
je 0x4a42c0
mov eax, dword [eax + 8]
test eax, eax
jne 0x4a41d8
lea eax, [ebp - 0xe0]
push eax
push 0x78
mov dword [ebp - 0x20], eax
call fcn.00475b10
mov esi, eax
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe0]
push eax
lea ecx, [esi + 0x20]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x4b1ad0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
call fcn.004b1bc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0047a430
lea ecx, [ebp - 0x20]
call fcn.004b1a50
mov esi, dword [ebp - 0xa4]
test esi, esi
je 0x4a42a0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4a42a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4a42a0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xac]
test ecx, ecx
je 0x4a4305
mov edx, dword [ecx]
lea eax, [ebp - 0xd0]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x4a4305
cmp dword [eax + 4], 0
je 0x4a41e7
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.004b41a0
add esp, 8
jmp 0x4a4275
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 4]
call fcn.004a5790
mov ecx, dword [esi]
lea edx, [ecx + 0x44]
push edx
push esi
push 0
push eax
lea eax, [ecx + 4]
mov ecx, dword [ecx]
push eax
add ecx, 0x14
call fcn.004b0220
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006021fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10