Function at 0x10010a70
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov edi, dword [esp + 0x20]
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
xor edi, edi
mov ecx, dword [esi + 0x5a08]
mov ebx, ecx
mov edx, dword [esp + 0x28]
shr ebx, 0x10
mov eax, ebx
and eax, 0xffffffe7
shr eax, 3
mov eax, dword [eax + edx]
test ah, 0x80
je 0x10010aca
add ax, 0x40
mov ebp, ebx
shl ax, 5
and bp, 0x1f
add ax, bp
movzx ebp, ax
mov eax, dword [edx + ebp*4]
mov edx, eax
sar edx, 8
and eax, 0xff
je 0x10010b10
add edx, eax
cmp edx, 0x10
ja 0x10010af0
shl eax, 2
mov cl, 0x10
sub cl, dl
shr ebx, cl
and ebx, dword [eax + 0x1002d7f0]
mov edi, ebx
jmp 0x10010b01
shl eax, 2
mov edi, ecx
mov cl, 0x20
sub cl, dl
shr edi, cl
and edi, dword [eax + 0x1002d7f0]
test dword [eax + 0x1002d768], edi
jne 0x10010b10
or edi, dword [eax + 0x1002d7b0]
inc edi
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
add eax, edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
mov word [ecx], ax
mov cl, dl
shl dword [esi + 0x5a08], cl
sub dword [esi + 0x5a0c], edx
add dword [esi + 0x5a14], edx
cmp dword [esi + 0x5a00], 0
jne 0x10010c8f
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x10010b5f
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10010c8f
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10010c8f
sub eax, 8
mov dword [esi + 0x5a14], eax
add dword [esi + 0x5a0c], 8
mov eax, dword [esi + 0x5a10]
mov cl, byte [esi + 0x5a14]
shl eax, cl
or dword [esi + 0x5a08], eax
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10010bfc
cmp dword [edi], 1
je 0x10010c8f
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10010e7d
cmp dword [edi], 1
jne 0x10010be6
cmp dword [esp + 0x18], ebx
je 0x10010c8f
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [esi + 0x59f0], eax
mov ecx, dword [esi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [esi + 0x5a10], eax
cmp eax, 0xff
jne 0x10010b61
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10010c77
cmp dword [edi], 1
je 0x10010c8f
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10010e8b
cmp dword [edi], 1
jne 0x10010c61
cmp dword [esp + 0x18], ebx
je 0x10010c8f
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x10010b61
mov dword [esi + 0x5a00], 1
mov ebp, 1
mov edx, dword [esi + 0x5a08]
mov ecx, dword [esp + 0x2c]
mov edi, edx
shr edi, 0x10
mov eax, edi
and eax, 0xffffffcf
shr eax, 4
mov ecx, dword [eax + ecx]
test ch, 0x80
je 0x10010cce
add cx, 0x10
mov eax, edi
shl cx, 6
and ax, 0x3f
add cx, ax
mov eax, dword [esp + 0x2c]
movzx ebx, cx
mov ecx, dword [eax + ebx*4]
mov eax, ecx
sar eax, 8
and ecx, 0xff
je 0x1001107e
mov ebx, ecx
sar ebx, 4
and ecx, 0xf
mov dword [esp + 0x18], ebx
jne 0x10010e99
add ebp, 0x10
mov cl, al
shl edx, cl
mov dword [esi + 0x5a08], edx
sub dword [esi + 0x5a0c], eax
add dword [esi + 0x5a14], eax
cmp dword [esi + 0x5a00], 0
jne 0x1001106b
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x10010d34
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x1001106b
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x1001106b
sub eax, 8
mov dword [esi + 0x5a14], eax
add dword [esi + 0x5a0c], 8
mov eax, dword [esi + 0x5a10]
mov cl, byte [esi + 0x5a14]
shl eax, cl
or dword [esi + 0x5a08], eax
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10010dd7
cmp dword [edi], 1
je 0x1001106b
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esi + 0x59e8]
push 0xffffffffffffffff
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001120a
cmp dword [edi], 1
jne 0x10010dbb
cmp dword [esp + 0x14], ebx
je 0x1001106b
mov eax, dword [esi + 0x59e8]
mov dword [esi + 0x59ec], eax
mov eax, dword [esi + 0x59e8]
add eax, dword [esp + 0x14]
mov dword [esi + 0x59f0], eax
mov ecx, dword [esi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [esi + 0x5a10], eax
cmp eax, 0xff
jne 0x10010d36
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10010e60
cmp dword [edi], 1
je 0x1001106b
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esi + 0x59e8]
push 0xffffffffffffffff
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10011218
cmp dword [edi], 1
jne 0x10010e44
cmp dword [esp + 0x14], ebx
je 0x1001106b
mov eax, dword [esi + 0x59e8]
mov dword [esi + 0x59ec], eax
mov eax, dword [esi + 0x59e8]
add eax, dword [esp + 0x14]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x10010d36
mov dword [esi + 0x5a00], 1
jmp 0x1001106b
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
add eax, ecx
lea ebx, [ecx*4]
cmp eax, 0x10
ja 0x10010eab
mov cl, 0x10
jmp 0x10010eaf
mov edi, edx
mov cl, 0x20
sub cl, al
shr edi, cl
and edi, dword [ebx + 0x1002d7f0]
test dword [ebx + 0x1002d768], edi
jne 0x10010ec8
or edi, dword [ebx + 0x1002d7b0]
inc edi
mov cl, al
shl edx, cl
mov dword [esi + 0x5a08], edx
sub dword [esi + 0x5a0c], eax
add dword [esi + 0x5a14], eax
cmp dword [esi + 0x5a00], 0
jne 0x1001105e
cmp dword [esi + 0x59fc], 1
jne 0x10010f06
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x1001105e
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x1001105e
sub eax, 8
mov dword [esi + 0x5a14], eax
add dword [esi + 0x5a0c], 8
mov eax, dword [esi + 0x5a10]
mov cl, byte [esi + 0x5a14]
shl eax, cl
or dword [esi + 0x5a08], eax
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10010fb7
cmp dword [esi + 0x59fc], 1
je 0x1001105e
lea eax, [esi + 0x59fc]
lea ecx, [esp + 0x10]
push eax
lea edx, [esi + 0x59e8]
push ecx
push 0xffffffffffffffff
push edx
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10011226
cmp dword [esi + 0x59fc], 1
jne 0x10010f9b
cmp dword [esp + 0x10], ebx
je 0x1001105e
mov eax, dword [esi + 0x59e8]
mov dword [esi + 0x59ec], eax
mov eax, dword [esi + 0x59e8]
add eax, dword [esp + 0x10]
mov dword [esi + 0x59f0], eax
mov ecx, dword [esi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [esi + 0x5a10], eax
cmp eax, 0xff
jne 0x10010f08
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10011046
cmp dword [esi + 0x59fc], 1
je 0x1001105e
lea eax, [esi + 0x59fc]
lea ecx, [esp + 0x10]
push eax
lea edx, [esi + 0x59e8]
push ecx
push 0xffffffffffffffff
push edx
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10011234
cmp dword [esi + 0x59fc], 1
jne 0x1001102a
cmp dword [esp + 0x10], ebx
je 0x1001105e
mov eax, dword [esi + 0x59e8]
mov dword [esi + 0x59ec], eax
mov eax, dword [esi + 0x59e8]
add eax, dword [esp + 0x10]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x10010f08
mov dword [esi + 0x5a00], 1
add ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov word [ecx + ebp*2], di
inc ebp
cmp ebp, 0x40
jb 0x10010c94
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov cl, al
shl dword [esi + 0x5a08], cl
sub dword [esi + 0x5a0c], eax
add dword [esi + 0x5a14], eax
cmp dword [esi + 0x5a00], 0
jne 0x10011074
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x100110b4
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10011074
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10011074
sub eax, 8
mov dword [esi + 0x5a14], eax
add dword [esi + 0x5a0c], 8
mov eax, dword [esi + 0x5a10]
mov cl, byte [esi + 0x5a14]
shl eax, cl
or dword [esi + 0x5a08], eax
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x1001114d
cmp dword [edi], 1
je 0x10011074
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x100111ee
cmp dword [edi], 1
jne 0x10011137
cmp dword [esp + 0x18], ebx
je 0x10011074
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [esi + 0x59f0], eax
mov ecx, dword [esi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [esi + 0x5a10], eax
cmp eax, 0xff
jne 0x100110b6
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x100111cc
cmp dword [edi], 1
je 0x10011074
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x100111fc
cmp dword [edi], 1
jne 0x100111b6
cmp dword [esp + 0x18], ebx
je 0x10011074
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x100110b6
xor eax, eax
pop ebp
mov dword [esi + 0x5a00], 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret