Function at 0x10076170
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 0x10110cbd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x100761e0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0x30]
push esi
push ecx
call eax
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ebp - 0x20]
jmp 0x100761f1
xor edx, edx
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 2
test edx, edx
je 0x10076369
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10076255
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x30]
push fcn.10076e70
push ecx
call eax
add esp, 0xc
jmp 0x10076308
mov eax, dword [ecx + 8]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x35]
push dword [0x1017537c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1007629d
mov ecx, dword [eax + 4]
jmp 0x1007629f
xor ecx, ecx
push ecx
push dword [ebp - 0x44]
mov edx, 0x18
call fcn.1002b430
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x50]
mov dword [eax], 0x10076f40
mov dword [ebp - 0x34], eax
call fcn.10057a90
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0x44]
add esp, 8
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x10076308
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x10076330
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10076330
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10076330
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 7
cmp dword [ebp - 0x20], 0
je 0x1007634b
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
call eax
add esp, 4
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.100b8868
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x50]
call fcn.10027870
mov byte [ebp - 4], 6
call fcn.10029eb0
int3