Function at 0x72948ee2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
cmp dword [0x72a4ee48], 1
push ebx
push esi
push edi
jne 0x72948f02
push 0x72a4ee00
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.729490f9
test eax, eax
je 0x729605fc
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x20
call fcn.72949133
push ebx
push eax
call fcn.729491a9
mov edi, dword [ebp - 0x1c]
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x7296061a
movzx eax, word [edi + 0x2a]
cmp dword [0x72a4efa0], ebx
mov dword [ebp - 0xc], eax
jne 0x72960675
mov eax, dword [ebp - 0x20]
mov esi, dword [edi + 4]
mov ecx, dword [eax + 0x20]
cmp ecx, ebx
jne 0x72960706
cmp esi, ebx
je 0x72948f85
mov dword [esi + 0x220], 0x7295ac08
mov dword [esi], 0x7295abf8
mov dword [esi + 0x24c], eax
add eax, 0x24
push eax
lea eax, [esi + 0x10]
push eax
mov dword [esi + 4], 1
mov dword [esi + 0xc], edi
call fcn.729491f6
mov ax, word [edi + 0x2a]
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.72949216
push esi
push dword [ebp + 8]
call fcn.72949335
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x7296071c
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
cmp dword [0x72a4ee48], ebx
mov dword [ebp - 0x14], 1
mov dword [eax + 8], ecx
je 0x72949017
push dword [0x72a4ef9c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x18]
push 1
push esi
push dword [ebp + 8]
call fcn.7294938f
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x72960713
push 1
push dword [ebp + 8]
call fcn.7294948c
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x10], esi
mov dword [esi], eax
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.7294948f
cmp eax, ebx
jl 0x72960726
cmp dword [0x72a4efa0], ebx
mov esi, dword [ebp - 0x18]
jne 0x72960731
mov eax, dword [edi + 0x14]
cmp dword [ebp - 0xc], ebx
mov dword [eax + 0xc], esi
mov dword [ebp - 4], ebx
jbe 0x729490c3
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
add eax, dword [edi + 0x30]
mov eax, dword [eax]
mov esi, eax
inc esi
neg esi
sbb esi, esi
and esi, eax
mov ecx, esi
call fcn.72949553
mov ecx, esi
mov dword [eax + 0x18], esi
call fcn.72949553
mov ebx, dword [eax + 4]
cmp dword [0x72a4efa0], 0
mov dword [ebx + 8], esi
jne 0x7296073d
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 4]
mov dword [eax], ebx
movzx eax, word [esi + 2]
mov ecx, dword [ecx + 0x30]
lea eax, [eax + eax*2]
shl eax, 4
mov eax, dword [ecx + eax + 8]
movzx eax, word [eax + 2]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x18]
test byte [eax + 0x28], 2
jne 0x729490b2
push 0
push dword [ebp - 4]
push edi
call fcn.7294956f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add dword [ebp - 8], 0x30
cmp eax, dword [ebp - 0xc]
jb 0x72949049
xor ebx, ebx
mov eax, dword [edi + 4]
push ebx
push 0x72949657
mov ecx, dword [eax + 0x24c]
call fcn.72949622
call fcn.72949665
cmp dword [0x72a4ee48], 1
jne 0x729490f0
push 0x72a4ee00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [0x72a4ee48], 1
jne 0x72960610
push 0x72a4ee00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x9cfe
jmp 0x729490f2
call fcn.72949665
push esi
call fcn.72945426
mov dword [ebp - 4], eax
cmp dword [ebp - 0x14], ebx
je 0x7296063e
push ebx
push dword [ebp + 8]
call fcn.7294948c
push dword [ebp + 8]
call fcn.7294d328
push edi
call fcn.7294d00b
cmp dword [0x72a4ee48], ebx
je 0x72960659
cmp dword [ebp - 0x10], ebx
je 0x72960659
push dword [ebp + 8]
call fcn.7294d249
cmp dword [0x72a4ee48], 1
jne 0x7296066d
push 0x72a4ee00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
jmp 0x729490f2
push dword [ebp + 8]
call fcn.72949953
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x72948f60
push dword [0x72a4ef9c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [eax + 0x18]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.7294938f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x10], ebx
jne 0x729606b6
push 0x8007000e
call fcn.72a18c72
push 1
push dword [ebp + 8]
call fcn.7294948c
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
mov dword [ebx], eax
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 0xc], ebx
jbe 0x729490d7
mov eax, ebx
add eax, dword [edi + 0x30]
mov ecx, dword [eax]
mov eax, ecx
inc eax
neg eax
sbb eax, eax
and eax, ecx
mov eax, dword [eax + 0x18]
test byte [eax + 0x28], 2
jne 0x729606f7
push 0
push esi
push edi
call fcn.7294956f
inc esi
add ebx, 0x30
cmp esi, dword [ebp - 0xc]
jae 0x729490d7
jmp 0x729606d5
mov edx, dword [0x72a4c7b8]
mov dword [ecx], edx
jmp 0x72948f71
mov dword [ebp - 4], 7
xor ebx, ebx
call fcn.72949665
jmp 0x72960628
push eax
call fcn.72945426
mov dword [ebp - 4], eax
jmp 0x7296071c
mov ecx, edi
call fcn.72a168b9
jmp 0x7294903b
mov ecx, esi
call fcn.72a1689b
jmp 0x72949081