Function at 0x100166d1
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064a3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x10016732
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
push dword [ebp - 0x44]
push 0x1e43
push 0x3479
push dword [ebp - 0x7c]
push 1
call fcn.10016a56
add esp, 0x18
jmp 0x10016a45
lea eax, [ebp + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x34], 0x6011
mov dword [ebp - 0xac], 0x1000856c
cmp dword [ebp - 0x34], 0x616b
jle 0x10016842
push 0x466
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [ebp - 0x2c], 0
jmp 0x1001678f
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x498e
jge 0x10016842
and dword [ebp - 0x30], 0
jmp 0x100167a9
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x5d92
jge 0x1001683d
and dword [ebp - 0x1c], 0
jmp 0x100167c3
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3c8d
jge 0x10016838
and dword [ebp - 0x24], 0
jmp 0x100167d9
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7dfd
jge 0x10016836
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
shl eax, cl
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xc8]
call fcn.1000d25a
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.1001a84e
push eax
call fcn.1004f3d6
pop ecx
lea ecx, [ebp - 0xc8]
call fcn.1001a844
jmp 0x100167d2
jmp 0x100167bc
jmp 0x100167a2
jmp 0x10016788
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x5edc
jge 0x10016861
push dword [ebp - 0xac]
call fcn.1004f3d6
pop ecx
jmp 0x1001687d
or dword [ebp - 4], 0xffffffff
jmp 0x10016887
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x38], 0x3c32
mov dword [ebp - 0x90], 0x100085c0
cmp dword [ebp - 0x38], 0x3f63
jle 0x1001696c
and dword [ebp - 0x20], 0
jmp 0x100168b8
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2df7
jge 0x1001696c
and dword [ebp - 0x14], 0
jmp 0x100168d2
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfe
jge 0x10016967
and dword [ebp - 0x18], 0
jmp 0x100168ec
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x58f6
jge 0x10016962
and dword [ebp - 0x28], 0
jmp 0x10016902
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x2ad3
jge 0x10016960
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x28]
shl eax, cl
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xe0]
call fcn.1000d25a
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.1001a84e
push eax
call fcn.1004f3d6
pop ecx
lea ecx, [ebp - 0xe0]
call fcn.1001a844
jmp 0x100168fb
jmp 0x100168e5
jmp 0x100168cb
jmp 0x100168b1
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x100169eb
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x70]
mov eax, dword [ecx + eax]
mov dword [edx], eax
jmp 0x10016a03
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
mov dword [ebp - 4], 2
cmp dword [ebp - 0x38], 0x3a92
jge 0x10016a1f
push dword [ebp - 0x90]
call fcn.1004f3d6
pop ecx
jmp 0x10016a3b
or dword [ebp - 4], 0xffffffff
jmp 0x10016a45
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret