Function at 0x1002b383
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a867
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002b3b7
push 0x1e17
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x1002b730
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x88], 0x6482
mov byte [ebp - 0x13], 0
movzx eax, byte [ebp - 0x13]
test eax, eax
je 0x1002b3ed
push 0x70f7
push 1
call fcn.100271c7
pop ecx
pop ecx
mov byte [ebp - 0x11], 0
push 0
push 0x4077
lea eax, [ebp - 0x11]
push eax
call fcn.1002d931
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x1002b730
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x18], 0xfffffffd
mov dword [ebp - 0x68], 0xffffffff
push 1
lea ecx, [ebp - 0x78]
call fcn.10016d5e
and dword [ebp - 4], 0
mov dword [ebp - 0x60], 0xa8f1edd1
push 2
lea ecx, [ebp - 0x84]
call fcn.10016d5e
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
jmp 0x1002b466
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jge 0x1002b47c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x78]
call fcn.10016dfc
or dword [eax], 0xffffffff
jmp 0x1002b45f
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x4a3d
push 0x4993
call fcn.10027207
add esp, 0x14
push 0x51d6
lea eax, [ebp - 0x84]
push eax
push 0x2204
lea eax, [ebp - 0x60]
push eax
push 0
push 0xc9
push 0x4cd6
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x277f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.1002e0a8
add esp, 0x30
mov dword [ebp - 0x18], 0
jmp 0x1002b4e9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jg 0x1002b529
mov dword [ebp - 0x20], 0
jmp 0x1002b4ff
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jg 0x1002b527
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x1002b525
push 0
push 0x646f
push 0x1fdd
call fcn.10028983
add esp, 0xc
jmp 0x1002b4f8
jmp 0x1002b4e2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.10016de0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10016de0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x1002b6cd
push 1
lea ecx, [ebp - 0x50]
call fcn.10016d5e
mov dword [ebp - 4], 2
mov dword [ebp - 0x44], 0xfffffffb
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x10], 0
jmp 0x1002b582
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1002b598
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10016dfc
and dword [eax], 0
jmp 0x1002b57b
mov dword [ebp - 0x10], 0
jmp 0x1002b5a8
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x1002b5bb
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x2c], 0xdedb
jmp 0x1002b5a1
push 4
pop eax
imul eax, eax, 0
mov esi, dword [ebp + eax - 0x2c]
push 0
lea ecx, [ebp - 0x50]
call fcn.10016dfc
cmp esi, dword [eax]
jle 0x1002b5dc
mov dword [ebp - 0x40], 1
jmp 0x1002b5e0
and dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10016dfc
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jl 0x1002b5fa
mov dword [ebp - 0x34], 1
jmp 0x1002b5fe
and dword [ebp - 0x34], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10016dfc
cmp dword [eax], 0x6e229edc
jl 0x1002b619
mov dword [ebp - 0x64], 1
jmp 0x1002b61d
and dword [ebp - 0x64], 0
push 0
lea ecx, [ebp - 0x50]
call fcn.10016dfc
push 0
lea ecx, [ebp - 0x50]
call fcn.10016dfc
cmp dword [eax], 0
je 0x1002b64c
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x2c], 0
je 0x1002b64c
mov dword [ebp - 0x5c], 1
jmp 0x1002b650
and dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0xfecafe8
je 0x1002b662
mov dword [ebp - 0x58], 1
jmp 0x1002b666
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x58]
je 0x1002b677
mov dword [ebp - 0x38], 1
jmp 0x1002b67b
and dword [ebp - 0x38], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp dword [ebp - 0x38], eax
je 0x1002b69f
push 0
lea ecx, [ebp - 0x50]
call fcn.10016dfc
cmp dword [eax], 0
jne 0x1002b69f
and dword [ebp - 0x3c], 0
jmp 0x1002b6a6
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10016de0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [ecx], eax
jmp 0x1002b730
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x1002b730
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x1c], 0
jmp 0x1002b6f1
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xfffffff1
jg 0x1002b70f
push 0
push 0x282c
call fcn.1002877b
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
je 0x1002b70d
jmp 0x1002b6ea
jmp 0x1002b6ea
push 0
push 0x15ba
push 0x2667
push 0x728
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1002e28f
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret