Function at 0x10003490
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov eax, dword [0x1002b150]
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebp, [eax + 0x49c]
lea ebx, [eax + 0x4b4]
lea edi, [eax + 0x4b0]
mov esi, eax
push edi
mov dword [ebp], 2
push ebp
mov dword [esi + 0x4a0], ebx
push 0xffffffffffffffff
mov dword [edi], 2
mov eax, dword [esi + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x1000379c
cmp dword [ebp], 2
je 0x100034f8
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 0x4a0]
xor eax, eax
mov al, byte [ecx]
mov dword [esi + 0x4a8], eax
xor eax, eax
mov ecx, dword [esi + 0x4a0]
inc ecx
mov dword [esi + 0x4a0], ecx
mov al, byte [ecx]
mov ecx, dword [esi + 0x4a8]
shl ecx, 8
or eax, ecx
sub eax, 2
mov dword [esi + 0x4a8], eax
mov dword [ebp], eax
cmp dword [esi + 0x4a8], 0x12
jbe 0x10003543
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
ret
push edi
mov dword [esi + 0x4a0], ebx
push ebp
mov dword [edi], 2
push 0xffffffffffffffff
mov eax, dword [esi + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x1000379c
mov eax, dword [esi + 0x4a0]
mov cl, byte [eax]
cmp cl, 8
je 0x1000358c
cmp cl, 0x10
je 0x1000358c
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
ret
inc eax
xor ecx, ecx
mov dword [esi + 0x4a0], eax
mov cl, byte [eax]
mov eax, dword [esi + 0x4ac]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x4a0]
inc eax
xor ecx, ecx
mov dword [esi + 0x4a0], eax
mov edx, dword [esi + 0x4ac]
mov cl, byte [eax]
mov eax, dword [edx + 4]
add edx, 4
shl eax, 8
or ecx, eax
mov dword [edx], ecx
xor ecx, ecx
mov eax, dword [esi + 0x4a0]
inc eax
mov dword [esi + 0x4a0], eax
mov cl, byte [eax]
mov eax, dword [esi + 0x4ac]
mov dword [eax], ecx
mov eax, dword [esi + 0x4a0]
inc eax
xor ecx, ecx
mov dword [esi + 0x4a0], eax
mov edx, dword [esi + 0x4ac]
mov cl, byte [eax]
mov eax, dword [edx]
shl eax, 8
or ecx, eax
mov dword [edx], ecx
inc dword [esi + 0x4a0]
mov eax, dword [esi + 0x4ac]
mov edx, dword [eax + 4]
mov dword [eax + 0x130], edx
mov ecx, dword [esi + 0x4a0]
mov al, byte [ecx]
xor ecx, ecx
mov byte [esi + 0x4a4], al
inc dword [esi + 0x4a0]
mov cl, byte [esi + 0x4a4]
mov eax, dword [esi + 0x4ac]
mov dword [eax + 0xe4], ecx
mov al, byte [esi + 0x4a4]
cmp al, 1
je 0x10003656
cmp al, 3
je 0x10003656
cmp al, 4
je 0x10003656
mov eax, 0xfffffff7
pop ebp
pop edi
pop esi
pop ebx
ret
xor ecx, ecx
xor ebx, ebx
test al, al
je 0x100036d9
lea edi, [esi + 0x780]
mov edx, dword [esi + 0x4a0]
xor eax, eax
add edi, 4
add ecx, 4
mov al, byte [edx]
inc ebx
xor edx, edx
mov dword [edi - 4], eax
mov eax, dword [esi + 0x4a0]
inc eax
mov dword [esi + 0x4a0], eax
mov al, byte [eax]
shr al, 4
mov dl, al
mov eax, dword [esi + 0x4ac]
mov dword [eax + ecx + 0x18], edx
mov edx, dword [esi + 0x4a0]
mov al, byte [edx]
xor edx, edx
and al, 0xf
mov dl, al
mov eax, dword [esi + 0x4ac]
mov dword [eax + ecx + 0x28], edx
mov edx, dword [esi + 0x4a0]
inc edx
xor eax, eax
mov dword [esi + 0x4a0], edx
mov al, byte [edx]
mov dword [edi - 0x290], eax
xor eax, eax
inc dword [esi + 0x4a0]
mov al, byte [esi + 0x4a4]
cmp eax, ebx
ja 0x10003664
mov al, byte [esi + 0x4a4]
cmp al, 1
jne 0x1000374f
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x2c]
cmp dword [eax + 0x1c], ecx
jne 0x10003704
mov dword [eax + 0x2c], 1
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x2c]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi + 0x4ac]
mov dword [eax + 0x38], 0
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x28]
mov dword [eax + 0x34], ecx
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x34]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x24]
mov dword [eax + 0x30], ecx
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x30]
mov dword [eax + 0x20], ecx
jmp 0x1000376c
cmp al, 3
jne 0x1000376c
mov eax, dword [esi + 0x4ac]
mov dword [eax + 0x38], 0
mov eax, dword [esi + 0x4ac]
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x28], ecx
xor ebx, ebx
cmp byte [esi + 0x4a4], bl
jbe 0x1000379a
lea edx, [esi + 0x9928]
mov edi, edx
mov eax, 0xffffffff
mov ecx, 0x10
add edx, 0x40
rep stosd dword es:[edi], eax
inc ebx
xor eax, eax
mov al, byte [esi + 0x4a4]
cmp eax, ebx
ja 0x1000377c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret