Function at 0x10033720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100614ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10033751
push 1
call fcn.10033961
pop ecx
jmp 0x10033952
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10033789
push 0x2299
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x10033952
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100337cf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jg 0x10033952
mov dword [ebp - 0x24], 0xe3051ebf
push 3
lea ecx, [ebp - 0x70]
call fcn.1000f6e4
and dword [ebp - 4], 0
mov dword [ebp - 0x60], 0x4ddb84c6
mov dword [ebp - 0x64], 6
mov dword [ebp - 0x10], 0
jmp 0x1003380e
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10033827
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.1000f782
mov dword [eax], 0x1320
jmp 0x10033807
mov dword [ebp - 0x10], 0
jmp 0x10033837
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x1003384a
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x7c], 0
jmp 0x10033830
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.1000f782
imul esi, dword [eax], 0x276b
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.1000f782
cmp esi, dword [eax]
jge 0x10033877
mov dword [ebp - 0x34], 1
jmp 0x1003387b
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x100338ca
mov eax, dword [ebp - 0x18]
mov esi, 0xee61
sub esi, dword [eax]
push 2
lea ecx, [ebp - 0x70]
call fcn.1000f782
cmp esi, dword [eax]
jl 0x100338ca
mov eax, 0xfff6
test eax, eax
jne 0x100338ca
cmp dword [ebp - 0x60], 0
jne 0x100338ca
and dword [ebp - 0x2c], 0
jmp 0x100338d1
mov dword [ebp - 0x2c], 1
push 0
lea ecx, [ebp - 0x70]
call fcn.1000f782
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
je 0x100338f4
mov eax, 0xb7d6
test eax, eax
je 0x100338f4
mov dword [ebp - 0x30], 1
jmp 0x100338f8
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jle 0x1003390b
mov dword [ebp - 0x1c], 1
jmp 0x1003390f
and dword [ebp - 0x1c], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + eax - 0x7c], ecx
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x1c]
test eax, eax
jne 0x10033934
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10033934
and dword [ebp - 0x38], 0
jmp 0x1003393b
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x64], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1000f766
jmp 0x100337c4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret