Function at 0x1001a9e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
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 + 0x30]
cmp dword [edi + 0x18], 0
jne 0x1001aa0f
cmp dword [edi + 0x1c], 0
je 0x1001aa0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
test byte [esi + 0x5d38], 4
jne 0x1001aa2e
mov eax, dword [esi + 0x584]
jmp 0x1001aa40
cmp dword [edi + 0x14], 0
je 0x1001aa3e
mov dword [esp + 0x24], 0
jmp 0x1001aa44
mov eax, dword [edi]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x59c]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esi + 0x588]
add eax, 0x4c
push eax
push 1
push ecx
call fcn.1000ed20
add esp, 0x10
test byte [esi + 0x5d38], 4
jne 0x1001aa75
mov eax, dword [esi + 0x584]
jmp 0x1001aa87
cmp dword [edi + 0x18], 0
jne 0x1001aa85
mov dword [esp + 0x20], 0
jmp 0x1001aa8b
mov eax, dword [edi]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x58c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esi + 0x588]
add eax, 0x5c
push eax
push 2
push ecx
call fcn.1000ed20
add esp, 0x10
cmp dword [esp + 0x20], 4
jbe 0x1001aabf
mov eax, 0xffffffcd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x24], 4
jbe 0x1001aad3
mov eax, 0xffffffce
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x20]
mov ecx, eax
shl eax, 4
add ecx, eax
cmp dword [esp + 0x20], 0
jbe 0x1001ab32
mov edi, dword [esp + 0x18]
mov ebx, 0x10
mov dword [esp + 0x14], 0
shl edi, 2
mov eax, dword [esi + 0x588]
mov ebp, dword [esp + 0x14]
xor edx, edx
mov eax, dword [eax + edi + 0x5c]
mov dl, byte [eax + ebp]
add ecx, edx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jb 0x1001ab05
mov eax, dword [esp + 0x20]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], eax
jb 0x1001aaf1
mov dword [esp + 0x18], 0
cmp dword [esp + 0x24], 0
jbe 0x1001ab82
mov edi, dword [esp + 0x18]
mov ebx, 0x10
mov dword [esp + 0x14], 0
shl edi, 2
mov eax, dword [esi + 0x588]
mov ebp, dword [esp + 0x14]
xor edx, edx
mov eax, dword [eax + edi + 0x4c]
mov dl, byte [eax + ebp]
add ecx, edx
inc dword [esp + 0x14]
cmp dword [esp + 0x14], ebx
jb 0x1001ab55
mov eax, dword [esp + 0x24]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], eax
jb 0x1001ab41
add ecx, 2
lea eax, [esi + 0x5bc]
mov byte [esi + 0x5c1], 0xc4
push 2
lea edx, [esi + 0x5c0]
push eax
mov byte [esi + 0x5c2], ch
push 0xffffffffffffffff
mov byte [esi + 0x5c3], cl
push edx
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x1001ae09
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x24], ebx
jbe 0x1001ace5
mov edi, 0x10
mov eax, dword [esp + 0x18]
cmp dword [esi + eax*4 + 0x59c], eax
jne 0x1001acd3
lea eax, [esp + 0x14]
push 2
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 1
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001ae11
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esi + eax*4 + 0x59c]
mov eax, dword [edx]
mov ecx, dword [esi + 0x588]
mov ebp, dword [esp + 0x14]
mov ecx, dword [ecx + eax*4 + 0x4c]
xor eax, eax
mov al, byte [ecx + ebp]
add dword [esp + 0x1c], eax
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jb 0x1001ac33
mov ecx, dword [edx]
mov eax, dword [esi + 0x588]
push 2
mov edx, dword [eax + ecx*4 + 0x4c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
push ecx
push 0xffffffffffffffff
push edx
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001ae1f
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x588]
push 2
mov ecx, dword [esi + eax*4 + 0x59c]
mov eax, dword [edx + ecx*4 + 0x4c]
lea ecx, [esp + 0x20]
add eax, 0x10
push ecx
push 0xffffffffffffffff
push eax
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001ae2d
xor eax, eax
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x13]
mov dword [esi + ecx*4 + 0x59c], eax
inc byte [esp + 0x13]
mov eax, dword [esp + 0x24]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], eax
jb 0x1001abe3
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x20], ebx
jbe 0x1001ae07
mov edi, 0x10
mov eax, dword [esp + 0x18]
cmp dword [esi + eax*4 + 0x58c], eax
jne 0x1001adf5
add eax, edi
push 2
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push ecx
mov dword [esp + 0x1c], 1
push 0xffffffffffffffff
push eax
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001ae3b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
lea edx, [esi + eax*4 + 0x58c]
mov ecx, dword [edx]
mov eax, dword [esi + 0x588]
mov ebp, dword [eax + ecx*4 + 0x5c]
mov ecx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ebp + ecx]
add dword [esp + 0x1c], eax
inc dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jb 0x1001ad58
mov eax, dword [edx]
mov ecx, dword [esi + 0x588]
push 2
mov edx, dword [ecx + eax*4 + 0x5c]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push 0xffffffffffffffff
push edx
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001ae49
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x588]
push 2
mov ecx, dword [esi + eax*4 + 0x58c]
mov eax, dword [edx + ecx*4 + 0x5c]
lea ecx, [esp + 0x20]
add eax, 0x10
push ecx
push 0xffffffffffffffff
push eax
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
cmp eax, ebx
jne 0x1001ae57
xor eax, eax
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x13]
mov dword [esi + ecx*4 + 0x58c], eax
inc byte [esp + 0x13]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x18]
cmp dword [esp + 0x18], eax
jb 0x1001ad02
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret