Function at 0x100365b0
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 0x1010e8b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x48], edx
mov edx, dword [ecx + 0xc]
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x20], eax
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x3c], eax
lea esi, [ecx + 0x14]
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
je 0x100367a5
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1003665b
lea ecx, [ebp - 0x4c]
push ecx
push fcn.100364d0
push esi
call eax
add esp, 0xc
jmp 0x1003671e
mov eax, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100366ad
mov ecx, dword [eax + 4]
jmp 0x100366af
xor ecx, ecx
push ecx
push dword [ebp - 0x2c]
mov edx, 0x1c
call fcn.1002b430
mov ecx, dword [ebp - 0x18]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xc], edi
mov dword [eax + 0x14], ecx
lea ecx, [ebp - 0x38]
mov dword [eax], 0x10036b30
mov dword [ebp - 0x24], eax
call fcn.10036380
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push esi
call dword [ebp - 0x2c]
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1003671e
mov ecx, dword [eax]
push 0
push eax
call ecx
add esp, 8
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10036769
push ecx
lea ecx, [eax + 0x18]
mov dword [ebp - 0x3c], 0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
call fcn.1002a4d0
mov eax, dword [ebp - 0x24]
add esp, 4
test eax, eax
je 0x10036757
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 4
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10036769
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 4
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x10036791
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10036791
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x10036791
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x38]
call fcn.10027870
mov byte [ebp - 4], 5
call fcn.10029eb0
int3