Function at 0x10011c40
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x14
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 esi, eax
jne 0x10011dec
cmp dword [esi + 0x5a08], 0
jge 0x10011c7f
mov dx, 1
mov cl, byte [esi + 0x7a8]
shl dx, cl
mov eax, dword [esp + 0x28]
or word [eax], dx
shl dword [esi + 0x5a08], 1
dec dword [esi + 0x5a0c]
inc dword [esi + 0x5a14]
cmp dword [esi + 0x5a00], 0
jne 0x10011dec
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x10011cbc
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10011dec
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10011dec
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 0x10011d59
cmp dword [edi], 1
je 0x10011dec
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10011e87
cmp dword [edi], 1
jne 0x10011d43
cmp dword [esp + 0x20], ebx
je 0x10011dec
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
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 0x10011cbe
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10011dd4
cmp dword [edi], 1
je 0x10011dec
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10011e95
cmp dword [edi], 1
jne 0x10011dbe
cmp dword [esp + 0x20], ebx
je 0x10011dec
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x10011cbe
mov dword [esi + 0x5a00], 1
mov ecx, dword [esi + 0x79c]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x10011dfe
inc dword [esp + 0x18]
cmp dword [esi + 0x798], 0
jne 0x10012251
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x7a0], ecx
jl 0x10012251
mov ebx, dword [esi + 0x5a08]
mov ecx, dword [esp + 0x34]
mov edi, ebx
shr edi, 0x10
mov eax, edi
and eax, 0xffffffcf
shr eax, 4
mov ecx, dword [eax + ecx]
test ch, 0x80
je 0x10011e55
add cx, 0x10
mov eax, edi
shl cx, 6
and ax, 0x3f
add cx, ax
mov eax, dword [esp + 0x34]
movzx edx, cx
mov ecx, dword [eax + edx*4]
mov edx, ecx
sar edx, 8
and ecx, 0xff
je 0x100122b6
mov eax, ecx
sar eax, 4
and ecx, 0xf
mov dword [esp + 0x1c], eax
jne 0x10011ea3
cmp eax, 0xf
jne 0x1001244b
mov dword [esp + 0x20], 0
jmp 0x10011ee4
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
cmp ecx, 1
jne 0x1001262b
add edx, ecx
mov ebp, dword [ecx*4 + 0x1002d7f0]
cmp edx, 0x10
ja 0x10011ec4
mov cl, 0x10
sub cl, dl
shr edi, cl
and ebp, edi
jmp 0x10011ece
mov eax, ebx
mov cl, 0x20
sub cl, dl
shr eax, cl
and ebp, eax
test ebp, ebp
je 0x10011eda
mov edi, dword [esi + 0x764]
jmp 0x10011ee0
mov edi, dword [esi + 0x768]
mov dword [esp + 0x20], edi
mov cl, dl
shl ebx, cl
mov dword [esi + 0x5a08], ebx
sub dword [esi + 0x5a0c], edx
add dword [esi + 0x5a14], edx
cmp dword [esi + 0x5a00], 0
jne 0x10012054
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x10011f24
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10012054
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10012054
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 0x10011fc1
cmp dword [edi], 1
je 0x10012054
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10012638
cmp dword [edi], 1
jne 0x10011fab
cmp dword [esp + 0x14], ebx
je 0x10012054
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
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 0x10011f26
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x1001203c
cmp dword [edi], 1
je 0x10012054
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x10012646
cmp dword [edi], 1
jne 0x10012026
cmp dword [esp + 0x14], ebx
je 0x10012054
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x14]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x10011f26
mov dword [esi + 0x5a00], 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
lea ebp, [eax + ecx*2]
mov dx, word [ebp]
test dx, dx
je 0x1001220f
cmp dword [esi + 0x5a08], 0
jge 0x10012094
movsx ecx, dx
mov eax, dword [esi + 0x764]
test eax, ecx
jne 0x10012094
test dx, dx
jge 0x1001208d
mov eax, dword [esi + 0x768]
add ax, dx
mov word [ebp], ax
shl dword [esi + 0x5a08], 1
dec dword [esi + 0x5a0c]
inc dword [esi + 0x5a14]
cmp dword [esi + 0x5a00], 0
jne 0x10012215
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x100120d1
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10012215
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10012215
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 0x10012174
cmp dword [edi], 1
je 0x10012215
lea eax, [esp + 0x10]
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 0x10012654
cmp dword [edi], 1
jne 0x10012158
cmp dword [esp + 0x10], ebx
je 0x10012215
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 0x100120d3
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x100121f5
cmp dword [edi], 1
je 0x10012215
lea eax, [esp + 0x10]
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 0x10012662
cmp dword [edi], 1
jne 0x100121d9
cmp dword [esp + 0x10], ebx
je 0x10012215
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 0x100120d3
mov dword [esi + 0x5a00], 1
jmp 0x10012215
dec dword [esp + 0x1c]
js 0x1001222c
add ebp, 2
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x7a0], ecx
jge 0x1001205f
mov di, word [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov word [eax + ecx*2], di
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x7a0], ecx
jge 0x10011e1b
mov eax, dword [esi + 0x798]
test eax, eax
jle 0x10012809
dec eax
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x798], eax
cmp dword [esi + 0x7a0], ecx
jl 0x10012809
mov eax, dword [esp + 0x28]
lea ebp, [eax + ecx*2]
mov dx, word [ebp]
test dx, dx
je 0x100127f2
cmp dword [esi + 0x5a08], 0
jge 0x1001267d
movsx ecx, dx
mov eax, dword [esi + 0x764]
test eax, ecx
jne 0x1001267d
test dx, dx
jle 0x10012670
jmp 0x10012676
mov cl, dl
shl dword [esi + 0x5a08], cl
sub dword [esi + 0x5a0c], edx
add dword [esi + 0x5a14], edx
cmp dword [esi + 0x5a00], 0
jne 0x10012420
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x100122f4
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10012420
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10012420
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 0x10012391
cmp dword [edi], 1
je 0x10012420
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001242f
cmp dword [edi], 1
jne 0x1001237b
cmp dword [esp + 0x20], ebx
je 0x10012420
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
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 0x100122f6
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x10012408
cmp dword [edi], 1
je 0x10012420
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001243d
cmp dword [edi], 1
jne 0x100123f2
cmp dword [esp + 0x20], ebx
je 0x10012420
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x100122f6
mov dword [esi + 0x5a00], 1
mov dword [esi + 0x798], 1
jmp 0x10012251
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov ebx, 1
mov cl, byte [esp + 0x1c]
shl ebx, cl
cmp dword [esp + 0x1c], 0
mov dword [esi + 0x798], ebx
je 0x10012498
add edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp edx, 0x10
mov ebp, dword [eax*4 + 0x1002d7f0]
ja 0x10012481
mov cl, 0x10
sub cl, dl
shr edi, cl
and ebp, edi
jmp 0x1001248f
mov eax, dword [esi + 0x5a08]
mov cl, 0x20
sub cl, dl
shr eax, cl
and ebp, eax
lea eax, [ebx + ebp]
mov dword [esi + 0x798], eax
mov cl, dl
shl dword [esi + 0x5a08], cl
sub dword [esi + 0x5a0c], edx
add dword [esi + 0x5a14], edx
cmp dword [esi + 0x5a00], 0
jne 0x10012251
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x100124d6
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x10012251
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x10012251
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 0x10012573
cmp dword [edi], 1
je 0x10012251
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001260f
cmp dword [edi], 1
jne 0x1001255d
cmp dword [esp + 0x20], ebx
je 0x10012251
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
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 0x100124d8
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x100125f2
cmp dword [edi], 1
je 0x10012251
lea ebp, [esi + 0x59e8]
push edi
lea eax, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ebp
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001261d
cmp dword [edi], 1
jne 0x100125dc
cmp dword [esp + 0x20], ebx
je 0x10012251
mov eax, dword [ebp]
mov dword [esi + 0x59ec], eax
mov eax, dword [ebp]
add eax, dword [esp + 0x20]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x100124d8
mov dword [esi + 0x5a00], 1
jmp 0x10012251
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, 0xffffffc2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x768]
add ax, dx
mov word [ebp], ax
shl dword [esi + 0x5a08], 1
dec dword [esi + 0x5a0c]
inc dword [esi + 0x5a14]
cmp dword [esi + 0x5a00], 0
jne 0x100127f2
lea edi, [esi + 0x59fc]
cmp dword [edi], 1
jne 0x100126ba
mov eax, dword [esi + 0x59f0]
cmp dword [esi + 0x59ec], eax
jae 0x100127f2
xor ebx, ebx
mov eax, dword [esi + 0x5a14]
cmp eax, 8
jl 0x100127f2
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 0x1001275d
cmp dword [edi], 1
je 0x100127f2
lea eax, [esp + 0x20]
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 0x10012813
cmp dword [edi], 1
jne 0x10012741
cmp dword [esp + 0x20], ebx
je 0x100127f2
mov eax, dword [esi + 0x59e8]
mov dword [esi + 0x59ec], eax
mov eax, dword [esi + 0x59e8]
add eax, dword [esp + 0x20]
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 0x100126bc
mov eax, dword [esi + 0x59ec]
inc eax
mov dword [esi + 0x59ec], eax
cmp dword [esi + 0x59f0], eax
ja 0x100127da
cmp dword [edi], 1
je 0x100127f2
lea eax, [esp + 0x20]
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 0x10012821
cmp dword [edi], 1
jne 0x100127be
cmp dword [esp + 0x20], ebx
je 0x100127f2
mov eax, dword [esi + 0x59e8]
mov dword [esi + 0x59ec], eax
mov eax, dword [esi + 0x59e8]
add eax, dword [esp + 0x20]
mov dword [esi + 0x59f0], eax
mov eax, dword [esi + 0x59ec]
cmp byte [eax], bl
je 0x100126bc
mov dword [esi + 0x5a00], 1
add ebp, 2
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x7a0], ecx
jge 0x1001227d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret