Function at 0x10056010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10284f40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x24], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x28]
push eax
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.10070140
test al, al
je 0x10056272
mov esi, dword [ebp - 0x24]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
test esi, esi
je 0x10056099
mov eax, dword [ebp - 0x28]
mov edi, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
lock inc dword [esi + 8]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test esi, esi
je 0x100560c6
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100560c6
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100560c6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], ecx
test edi, edi
je 0x100560f1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lock inc dword [edi + 8]
mov byte [ebp - 4], 1
mov esi, dword [ecx + 8]
push dword [0x10295998]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10056120
cmp dword [eax], esi
je 0x100561e1
mov eax, dword [eax + 8]
test eax, eax
jne 0x10056111
lea eax, [ebp - 0x34]
push eax
push 0x30
call fcn.1004a2e0
mov esi, eax
add esp, 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x10089e00
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
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
lock inc dword [eax + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x10056217
mov eax, dword [ebp - 0x20]
add eax, 0x38
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], 0
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x100561fe
mov dword [ecx + 0x14], esi
jmp 0x10056201
cmp dword [eax + 4], 0
je 0x10056120
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.1008c950
add esp, 8
jmp 0x10056217
mov dword [eax + 0x54], esi
mov dword [eax + 0x58], esi
mov ecx, 1
add eax, 0x34
xchg dword [eax], ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10056230
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x10056230
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
add ecx, 0x5c
push esi
call fcn.10055270
test edi, edi
je 0x10056252
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x10056252
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100e40d6
mov esp, ebp
pop ebp
ret 4
call fcn.100485a0
int3