Function at 0x10002fc0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x24
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax + 0x4b4]
mov ebx, eax
lea eax, [esp + 0x10]
lea ebp, [ebx + 0x4b0]
mov word [eax], 0
push ebp
mov byte [eax + 2], 0
mov dword [ebx + 0x49c], 2
lea eax, [ebx + 0x49c]
mov dword [ebx + 0x4a0], ecx
push eax
mov dword [ebp], 2
push 0xffffffffffffffff
mov ecx, dword [ebx + 0x4a0]
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x10003479
cmp dword [ebx + 0x49c], 2
je 0x10003042
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [ebx + 0x4a0]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebx + 0x4a8], ecx
xor ecx, ecx
mov eax, dword [ebx + 0x4a0]
inc eax
mov dword [ebx + 0x4a0], eax
mov cl, byte [eax]
mov eax, dword [ebx + 0x4a8]
shl eax, 8
or ecx, eax
sub ecx, 2
mov dword [ebx + 0x4a8], ecx
cmp ecx, 5
jb 0x100032e8
lea eax, [esp + 0x14]
push ebp
lea ecx, [ebx + 0x49c]
mov dword [ebx + 0x4a0], eax
mov dword [ebx + 0x49c], 5
push ecx
mov dword [ebp], 2
push 0xffffffffffffffff
mov eax, dword [ebx + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x10003479
mov eax, dword [ebx + 0x49c]
mov edi, 0x1002d038
mov ecx, 5
sub dword [ebx + 0x4a8], eax
mov esi, dword [ebx + 0x4a0]
repe cmpsb byte [esi], byte es:[edi]
jne 0x10003206
cmp dword [ebx + 0x4a8], 9
jb 0x10003206
cmp dword [ebx + 0x494], 1
je 0x10003206
cmp dword [ebx + 0x490], 1
je 0x10003206
lea eax, [esp + 0x14]
push ebp
mov dword [ebx + 0x490], 1
lea ecx, [ebx + 0x49c]
mov dword [ebx + 0x4a0], eax
mov dword [ebx + 0x49c], 9
push ecx
mov dword [ebp], 2
push 0xffffffffffffffff
mov eax, dword [ebx + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x10003479
mov eax, dword [ebx + 0x49c]
xor ecx, ecx
sub dword [ebx + 0x4a8], eax
mov eax, dword [ebx + 0x4a0]
add eax, 2
mov dword [ebx + 0x4a0], eax
mov cl, byte [eax]
mov eax, dword [ebx + 0x4ac]
mov dword [eax + 0x78], ecx
xor ecx, ecx
mov edx, dword [ebx + 0x4a0]
xor eax, eax
inc edx
mov dword [ebx + 0x4a0], edx
mov cl, byte [edx]
mov al, byte [edx + 1]
shl ecx, 8
mov edx, dword [ebx + 0x4ac]
or ecx, eax
mov dword [edx + 0x7c], ecx
mov edx, dword [ebx + 0x4a0]
add edx, 2
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x4a0], edx
mov cl, byte [edx]
mov al, byte [edx + 1]
shl ecx, 8
mov edx, dword [ebx + 0x4ac]
or ecx, eax
mov dword [edx + 0x84], ecx
mov eax, dword [ebx + 0x4a0]
add eax, 2
mov dword [ebx + 0x4a0], eax
mov al, byte [eax]
mov byte [esp + 0x10], al
mov eax, dword [ebx + 0x4a0]
inc eax
mov dword [ebx + 0x4a0], eax
mov al, byte [eax]
mov byte [esp + 0x11], al
inc dword [ebx + 0x4a0]
mov byte [esp + 0x12], 0x18
jmp 0x100032e8
mov edi, 0x1002d030
mov ecx, 5
mov esi, dword [ebx + 0x4a0]
repe cmpsb byte [esi], byte es:[edi]
jne 0x100032e8
cmp dword [ebx + 0x4a8], 3
jb 0x100032e8
cmp dword [ebx + 0x494], 1
je 0x100032e8
cmp dword [ebx + 0x490], 1
jne 0x100032e8
lea eax, [esp + 0x14]
push ebp
lea ecx, [ebx + 0x49c]
mov dword [ebx + 0x4a0], eax
mov dword [ebx + 0x49c], 3
push ecx
mov dword [ebp], 2
push 0xffffffffffffffff
mov eax, dword [ebx + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x10003479
mov eax, dword [ebx + 0x49c]
xor ecx, ecx
sub dword [ebx + 0x4a8], eax
mov eax, dword [ebx + 0x4a0]
mov cl, byte [eax]
cmp ecx, 0x11
je 0x100032a9
cmp ecx, 0x13
je 0x100032b7
jmp 0x100032e8
inc eax
mov dword [ebx + 0x4a0], eax
mov byte [esp + 0x12], 8
jmp 0x100032c3
inc eax
mov dword [ebx + 0x4a0], eax
mov byte [esp + 0x12], 0x18
mov eax, dword [ebx + 0x4a0]
mov al, byte [eax]
mov byte [esp + 0x10], al
mov eax, dword [ebx + 0x4a0]
inc eax
mov dword [ebx + 0x4a0], eax
mov al, byte [eax]
mov byte [esp + 0x11], al
inc dword [ebx + 0x4a0]
cmp byte [esp + 0x10], 0
je 0x1000342b
cmp byte [esp + 0x11], 0
je 0x1000342b
mov eax, dword [ebx + 0x4ac]
mov edi, 3
or dword [eax + 0xe8], 0x80
cmp byte [esp + 0x12], 8
jne 0x1000331f
mov edi, 0x303
mov al, byte [esp + 0x12]
xor ecx, ecx
shr al, 3
mov cl, al
xor eax, eax
mov al, byte [esp + 0x11]
imul ecx, eax
xor eax, eax
mov al, byte [esp + 0x10]
imul ecx, eax
add edi, ecx
mov eax, dword [ebx + 0x4ac]
cmp dword [eax + 0x90], 0
je 0x1000342b
lea eax, [edi - 3]
cmp dword [ebx + 0x4a8], eax
jb 0x1000342b
push edi
call sub.LTKRN70N.dll_Ordinal_203
mov esi, eax
test esi, esi
jne 0x10003379
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x10]
lea edx, [esi + 3]
mov cx, word [eax]
mov word [esi], cx
lea ecx, [edi - 3]
mov al, byte [eax + 2]
push ebp
mov byte [esi + 2], al
lea eax, [ebx + 0x49c]
push eax
mov dword [ebx + 0x4a0], edx
push 0xffffffffffffffff
mov dword [ebx + 0x49c], ecx
mov dword [ebp], 2
mov edx, dword [ebx + 0x4a0]
push edx
call fcn.1000e960
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
je 0x100033d9
push esi
call sub.LTKRN70N.dll_Ordinal_208
mov eax, dword [ebx + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [ebx + 0x49c]
lea ecx, [ebx + 0x4a0]
push ecx
sub dword [ebx + 0x4a8], eax
push edi
mov dword [ebx + 0x4a0], esi
push edi
push 0xe0
mov edi, dword [ebx + 0x4ac]
call dword [edi + 0x90]
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
push esi
je 0x10003426
call sub.LTKRN70N.dll_Ordinal_208
mov eax, dword [ebx + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret
call sub.LTKRN70N.dll_Ordinal_208
cmp dword [ebx + 0x4a8], 0
je 0x10003477
push ebp
lea eax, [ebx + 0x49c]
mov dword [ebx + 0x4a0], 0
mov dword [ebx + 0x49c], 0
push eax
mov dword [ebp], 3
mov ecx, dword [ebx + 0x4a8]
mov edx, dword [ebx + 0x4a0]
push ecx
push edx
call fcn.1000e960
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x10003479
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret