Function at 0x10011250
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]
cmp dword [eax + 0x79c], 0
mov edi, eax
jne 0x10011474
xor ecx, ecx
mov ebx, dword [edi + 0x5a08]
mov esi, ebx
mov edx, dword [esp + 0x28]
shr esi, 0x10
mov eax, esi
and eax, 0xffffffe7
shr eax, 3
mov eax, dword [eax + edx]
test ah, 0x80
je 0x100112aa
add ax, 0x40
mov ebp, esi
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 0x100112f0
add edx, eax
cmp edx, 0x10
ja 0x100112d0
shl eax, 2
mov cl, 0x10
sub cl, dl
shr esi, cl
and esi, dword [eax + 0x1002d7f0]
mov ecx, esi
jmp 0x100112e1
shl eax, 2
mov cl, 0x20
sub cl, dl
shr ebx, cl
and ebx, dword [eax + 0x1002d7f0]
mov ecx, ebx
test dword [eax + 0x1002d768], ecx
jne 0x100112f0
or ecx, dword [eax + 0x1002d7b0]
inc ecx
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
mov cl, byte [edi + 0x7a8]
shl ax, cl
mov ecx, dword [esp + 0x20]
mov word [ecx], ax
mov cl, dl
shl dword [edi + 0x5a08], cl
sub dword [edi + 0x5a0c], edx
add dword [edi + 0x5a14], edx
cmp dword [edi + 0x5a00], 0
jne 0x10011474
lea esi, [edi + 0x59fc]
cmp dword [esi], 1
jne 0x10011348
mov eax, dword [edi + 0x59f0]
cmp dword [edi + 0x59ec], eax
jae 0x10011474
xor ebx, ebx
mov eax, dword [edi + 0x5a14]
cmp eax, 8
jl 0x10011474
sub eax, 8
mov dword [edi + 0x5a14], eax
add dword [edi + 0x5a0c], 8
mov eax, dword [edi + 0x5a10]
mov cl, byte [edi + 0x5a14]
shl eax, cl
or dword [edi + 0x5a08], eax
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x100113e5
cmp dword [esi], 1
je 0x10011474
lea ebp, [edi + 0x59e8]
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x1001148f
cmp dword [esi], 1
jne 0x100113cf
cmp dword [esp + 0x18], ebx
je 0x10011474
mov eax, dword [ebp]
mov dword [edi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [edi + 0x59f0], eax
mov ecx, dword [edi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [edi + 0x5a10], eax
cmp eax, 0xff
jne 0x1001134a
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x1001145c
cmp dword [esi], 1
je 0x10011474
lea ebp, [edi + 0x59e8]
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x1001149d
cmp dword [esi], 1
jne 0x10011446
cmp dword [esp + 0x18], ebx
je 0x10011474
mov eax, dword [ebp]
mov dword [edi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [edi + 0x59f0], eax
mov eax, dword [edi + 0x59ec]
cmp byte [eax], bl
je 0x1001134a
mov dword [edi + 0x5a00], 1
mov eax, dword [edi + 0x798]
test eax, eax
je 0x100114ab
dec eax
pop ebp
mov dword [edi + 0x798], eax
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [edi + 0x79c]
test esi, esi
jne 0x100114b6
inc esi
cmp dword [edi + 0x7a0], esi
jl 0x1001188d
mov edx, dword [edi + 0x5a08]
mov ecx, dword [esp + 0x2c]
mov ebx, edx
shr ebx, 0x10
mov eax, ebx
and eax, 0xffffffcf
shr eax, 4
mov ecx, dword [eax + ecx]
test ch, 0x80
je 0x100114fc
add cx, 0x10
mov eax, ebx
shl cx, 6
and ax, 0x3f
add cx, ax
mov eax, dword [esp + 0x2c]
movzx ebp, cx
mov ecx, dword [eax + ebp*4]
mov eax, ecx
sar eax, 8
and ecx, 0xff
je 0x10011897
mov ebp, ecx
sar ebp, 4
and ecx, 0xf
mov dword [esp + 0x18], ebp
jne 0x100116b9
cmp ebp, 0xf
jne 0x10011a3f
add esi, 0x10
mov cl, al
shl edx, cl
mov dword [edi + 0x5a08], edx
sub dword [edi + 0x5a0c], eax
add dword [edi + 0x5a14], eax
cmp dword [edi + 0x5a00], 0
jne 0x10011881
lea ebp, [edi + 0x59fc]
cmp dword [ebp], 1
jne 0x1001156c
mov eax, dword [edi + 0x59f0]
cmp dword [edi + 0x59ec], eax
jae 0x10011881
xor ebx, ebx
mov eax, dword [edi + 0x5a14]
cmp eax, 8
jl 0x10011881
sub eax, 8
mov dword [edi + 0x5a14], eax
add dword [edi + 0x5a0c], 8
mov eax, dword [edi + 0x5a10]
mov cl, byte [edi + 0x5a14]
shl eax, cl
or dword [edi + 0x5a08], eax
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x10011611
cmp dword [ebp], 1
je 0x10011881
lea eax, [esp + 0x14]
push ebp
push eax
lea ecx, [edi + 0x59e8]
push 0xffffffffffffffff
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x10011a23
cmp dword [ebp], 1
jne 0x100115f5
cmp dword [esp + 0x14], ebx
je 0x10011881
mov eax, dword [edi + 0x59e8]
mov dword [edi + 0x59ec], eax
mov eax, dword [edi + 0x59e8]
add eax, dword [esp + 0x14]
mov dword [edi + 0x59f0], eax
mov ecx, dword [edi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [edi + 0x5a10], eax
cmp eax, 0xff
jne 0x1001156e
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x1001169c
cmp dword [ebp], 1
je 0x10011881
lea eax, [esp + 0x14]
push ebp
push eax
lea ecx, [edi + 0x59e8]
push 0xffffffffffffffff
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x10011a31
cmp dword [ebp], 1
jne 0x10011680
cmp dword [esp + 0x14], ebx
je 0x10011881
mov eax, dword [edi + 0x59e8]
mov dword [edi + 0x59ec], eax
mov eax, dword [edi + 0x59e8]
add eax, dword [esp + 0x14]
mov dword [edi + 0x59f0], eax
mov eax, dword [edi + 0x59ec]
cmp byte [eax], bl
je 0x1001156e
mov dword [edi + 0x5a00], 1
jmp 0x10011881
add eax, ecx
lea ebp, [ecx*4]
cmp eax, 0x10
ja 0x100116cb
mov cl, 0x10
jmp 0x100116cf
mov ebx, edx
mov cl, 0x20
sub cl, al
shr ebx, cl
and ebx, dword [ebp + 0x1002d7f0]
test dword [ebp + 0x1002d768], ebx
jne 0x100116e8
or ebx, dword [ebp + 0x1002d7b0]
inc ebx
mov cl, al
shl edx, cl
mov dword [edi + 0x5a08], edx
sub dword [edi + 0x5a0c], eax
add dword [edi + 0x5a14], eax
cmp dword [edi + 0x5a00], 0
jne 0x1001186a
lea ebp, [edi + 0x59fc]
cmp dword [ebp], 1
jne 0x10011729
mov eax, dword [edi + 0x59f0]
cmp dword [edi + 0x59ec], eax
jae 0x1001186a
mov eax, dword [edi + 0x5a14]
cmp eax, 8
jl 0x1001186a
sub eax, 8
mov dword [edi + 0x5a14], eax
add dword [edi + 0x5a0c], 8
mov eax, dword [edi + 0x5a10]
mov cl, byte [edi + 0x5a14]
shl eax, cl
or dword [edi + 0x5a08], eax
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x100117cd
cmp dword [ebp], 1
je 0x1001186a
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [edi + 0x59e8]
push 0xffffffffffffffff
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x10011c22
cmp dword [ebp], 1
jne 0x100117b1
cmp dword [esp + 0x10], 0
je 0x1001186a
mov eax, dword [edi + 0x59e8]
mov dword [edi + 0x59ec], eax
mov eax, dword [edi + 0x59e8]
add eax, dword [esp + 0x10]
mov dword [edi + 0x59f0], eax
mov ecx, dword [edi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [edi + 0x5a10], eax
cmp eax, 0xff
jne 0x10011729
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x10011851
cmp dword [ebp], 1
je 0x1001186a
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [edi + 0x59e8]
push 0xffffffffffffffff
push ecx
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x10011c30
cmp dword [ebp], 1
jne 0x10011835
cmp dword [esp + 0x10], 0
je 0x1001186a
mov eax, dword [edi + 0x59e8]
mov dword [edi + 0x59ec], eax
mov eax, dword [edi + 0x59e8]
add eax, dword [esp + 0x10]
mov dword [edi + 0x59f0], eax
mov eax, dword [edi + 0x59ec]
cmp byte [eax], 0
je 0x10011729
mov dword [edi + 0x5a00], 1
add esi, dword [esp + 0x18]
mov cl, byte [edi + 0x7a8]
shl bx, cl
mov ecx, dword [esp + 0x20]
inc esi
mov word [ecx + esi*2 - 2], bx
cmp dword [edi + 0x7a0], esi
jge 0x100114c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov cl, al
shl dword [edi + 0x5a08], cl
sub dword [edi + 0x5a0c], eax
add dword [edi + 0x5a14], eax
cmp dword [edi + 0x5a00], 0
jne 0x1001188d
lea esi, [edi + 0x59fc]
cmp dword [esi], 1
jne 0x100118cd
mov eax, dword [edi + 0x59f0]
cmp dword [edi + 0x59ec], eax
jae 0x1001188d
xor ebx, ebx
mov eax, dword [edi + 0x5a14]
cmp eax, 8
jl 0x1001188d
sub eax, 8
mov dword [edi + 0x5a14], eax
add dword [edi + 0x5a0c], 8
mov eax, dword [edi + 0x5a10]
mov cl, byte [edi + 0x5a14]
shl eax, cl
or dword [edi + 0x5a08], eax
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x10011966
cmp dword [esi], 1
je 0x1001188d
lea ebp, [edi + 0x59e8]
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x10011a07
cmp dword [esi], 1
jne 0x10011950
cmp dword [esp + 0x18], ebx
je 0x1001188d
mov eax, dword [ebp]
mov dword [edi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [edi + 0x59f0], eax
mov ecx, dword [edi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [edi + 0x5a10], eax
cmp eax, 0xff
jne 0x100118cf
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x100119e5
cmp dword [esi], 1
je 0x1001188d
lea ebp, [edi + 0x59e8]
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x10011a15
cmp dword [esi], 1
jne 0x100119cf
cmp dword [esp + 0x18], ebx
je 0x1001188d
mov eax, dword [ebp]
mov dword [edi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [edi + 0x59f0], eax
mov eax, dword [edi + 0x59ec]
cmp byte [eax], bl
je 0x100118cf
xor eax, eax
pop ebp
mov dword [edi + 0x5a00], 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, 1
mov cl, byte [esp + 0x18]
shl esi, cl
cmp dword [esp + 0x18], 0
mov dword [edi + 0x798], esi
je 0x10011a8c
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp eax, 0x10
mov ebp, dword [ecx*4 + 0x1002d7f0]
ja 0x10011a75
mov cl, 0x10
sub cl, al
shr ebx, cl
and ebp, ebx
jmp 0x10011a83
mov edx, dword [edi + 0x5a08]
mov cl, 0x20
sub cl, al
shr edx, cl
and ebp, edx
lea ecx, [esi + ebp]
mov dword [edi + 0x798], ecx
mov cl, al
shl dword [edi + 0x5a08], cl
sub dword [edi + 0x5a0c], eax
add dword [edi + 0x5a14], eax
cmp dword [edi + 0x5a00], 0
jne 0x10011bf6
lea esi, [edi + 0x59fc]
cmp dword [esi], 1
jne 0x10011aca
mov eax, dword [edi + 0x59f0]
cmp dword [edi + 0x59ec], eax
jae 0x10011bf6
xor ebx, ebx
mov eax, dword [edi + 0x5a14]
cmp eax, 8
jl 0x10011bf6
sub eax, 8
mov dword [edi + 0x5a14], eax
add dword [edi + 0x5a0c], 8
mov eax, dword [edi + 0x5a10]
mov cl, byte [edi + 0x5a14]
shl eax, cl
or dword [edi + 0x5a08], eax
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x10011b67
cmp dword [esi], 1
je 0x10011bf6
lea ebp, [edi + 0x59e8]
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x10011c06
cmp dword [esi], 1
jne 0x10011b51
cmp dword [esp + 0x18], ebx
je 0x10011bf6
mov eax, dword [ebp]
mov dword [edi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [edi + 0x59f0], eax
mov ecx, dword [edi + 0x59ec]
xor eax, eax
mov al, byte [ecx]
mov dword [edi + 0x5a10], eax
cmp eax, 0xff
jne 0x10011acc
mov eax, dword [edi + 0x59ec]
inc eax
mov dword [edi + 0x59ec], eax
cmp dword [edi + 0x59f0], eax
ja 0x10011bde
cmp dword [esi], 1
je 0x10011bf6
lea ebp, [edi + 0x59e8]
push esi
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x10011c14
cmp dword [esi], 1
jne 0x10011bc8
cmp dword [esp + 0x18], ebx
je 0x10011bf6
mov eax, dword [ebp]
mov dword [edi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x18]
mov dword [edi + 0x59f0], eax
mov eax, dword [edi + 0x59ec]
cmp byte [eax], bl
je 0x10011acc
mov dword [edi + 0x5a00], 1
xor eax, eax
pop ebp
dec dword [edi + 0x798]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret