Function at 0x10035ef0
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 0x1010e82d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
push esi
push edi
mov eax, dword [0x10163164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x10036110
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10035f65
push dword [ebx + 8]
push 0x100364c0
push edi
call eax
add esp, 0xc
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 4
mov eax, dword [ecx + 8]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x54], eax
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x50], eax
lea eax, [edx + 0x14]
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x4c]
push eax
mov dword [edx + 0x10], 0
call fcn.10029930
mov dword [ebp - 4], 0
lea eax, [ebp - 0x11]
push dword [0x1017537c]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10035fce
mov ecx, dword [eax + 4]
jmp 0x10035fd0
xor ecx, ecx
push ecx
push dword [ebp - 0x20]
mov edx, 0x38
call fcn.1002b430
mov ecx, dword [ebp - 0x60]
mov esi, eax
mov edx, dword [ebp - 0x5c]
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [esi + 4], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [ebp - 0x58]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10029930
mov dword [esi], 0x100368a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 0
call fcn.10036400
mov dword [ebp - 4], 1
cmp dword [ebp - 0x3c], 0
je 0x1003606a
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x4c]
push ecx
mov eax, dword [eax]
call eax
add esp, 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100360b5
push ecx
lea ecx, [eax + 0x18]
mov dword [ebp - 0x50], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.1002a4d0
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x100360a3
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 4
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100360b5
mov eax, dword [eax]
push eax
mov eax, dword [eax + 4]
call eax
add esp, 4
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x100360dd
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100360dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x100360dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
push edi
call dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10035f4f
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x10035f4f
lea ecx, [ebp - 0x2c]
call fcn.10027870
mov dword [ebp - 4], 5
call fcn.10029eb0
int3