Function at 0x10019db0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x50
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 eax, dword [esp + 0x64]
mov dword [esi + 0x588], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x10019ded
cmp eax, 1
jl 0x10019de0
cmp eax, 5
jle 0x10019df9
mov eax, 0xffffffda
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x50
ret
mov dword [esi + 0x584], 1
jmp 0x10019e03
mov dword [esi + 0x584], 3
lea ecx, [esi + 0x51a]
lea eax, [esi + 0x5bc]
push 2
push eax
push 0xffffffffffffffff
mov byte [ecx], 0xff
mov byte [esi + 0x51b], 0xd8
push ecx
mov dword [eax], 2
call fcn.1000e380
add esp, 0x10
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x1001a17a
lea edx, [esi + 0x504]
mov eax, dword [str.JFIF]
mov ecx, str.JFIF
mov dword [edx], eax
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebp, dword [ecx + 8]
mov dword [edx + 8], ebp
mov ax, word [ecx + 0xc]
mov word [edx + 0xc], ax
lea edx, [esi + 0x512]
mov ebx, dword [str.JFXX]
mov ecx, dword [0x1002d074]
mov dword [edx], ebx
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x588]
test byte [eax + 0xe9], 1
jne 0x10019e8e
push 0xe0
jmp 0x10019e93
push 0xe1
call fcn.1001a200
add esp, 4
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x20], 0x1f
mov byte [eax + 0x5c1], 0xfe
mov edi, eax
mov eax, dword [esp + 0x20]
push 2
mov byte [edi + 0x5c2], ah
mov al, byte [esp + 0x24]
lea ecx, [edi + 0x5c0]
mov byte [edi + 0x5c3], al
lea eax, [edi + 0x5bc]
push eax
push 0xffffffffffffffff
push ecx
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x10019f17
lea eax, [esp + 0x20]
push 2
sub dword [esp + 0x24], 2
push eax
push 0xffffffffffffffff
push str.LEAD_Technologies_Inc._V1.01
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
mov eax, dword [0x1002b150]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [eax + 0x5ac]
mov edi, eax
mov dword [esp + 0x14], ebx
push ecx
mov eax, dword [edi + 0x584]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x588]
add eax, 0x3c
push eax
push ebx
push ecx
call fcn.1000ed20
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov edx, ecx
shl ecx, 6
add ecx, edx
add ecx, 2
lea eax, [edi + 0x5bc]
mov dword [esp + 0x14], ecx
push 2
mov byte [edi + 0x5c1], 0xdb
mov ecx, dword [esp + 0x18]
push eax
push 0xffffffffffffffff
lea edx, [edi + 0x5c0]
push edx
mov byte [edi + 0x5c2], ch
mov cl, byte [esp + 0x24]
mov byte [edi + 0x5c3], cl
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
cmp eax, ebx
jne 0x1001a07b
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], 0x40
jbe 0x1001a07b
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, cl
cmp dword [edi + ecx*4 + 0x5ac], eax
jne 0x1001a069
lea eax, [esp + 0x1c]
push 2
lea ecx, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x1001a07b
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edx, dword [edi + 0x588]
mov eax, dword [edi + eax*4 + 0x5ac]
mov ebp, dword [edx + eax*4 + 0x3c]
mov edx, 0x40
mov eax, dword [ebp]
cmp eax, 0xff
jb 0x1001a02f
mov eax, 0xff
mov byte [ecx], al
inc ecx
add ebp, 4
dec edx
jne 0x1001a020
lea eax, [esp + 0x14]
push 2
lea ecx, [esp + 0x24]
push eax
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x1001a07b
xor eax, eax
mov ecx, dword [esp + 0x10]
mov al, bl
inc bl
mov dword [edi + ecx*4 + 0x5ac], eax
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
ja 0x10019fcd
mov eax, dword [0x1002b150]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x20], 2
mov edi, eax
mov eax, dword [eax + 0x588]
cmp dword [eax + 0x10], 0
je 0x1001a13f
mov dword [esp + 0x20], 4
mov byte [edi + 0x5c1], 0xdd
mov eax, dword [esp + 0x20]
push 2
mov byte [edi + 0x5c2], ah
mov al, byte [esp + 0x24]
lea ecx, [edi + 0x5c0]
mov byte [edi + 0x5c3], al
lea eax, [edi + 0x5bc]
push eax
push 0xffffffffffffffff
push ecx
mov dword [eax], 4
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
test eax, eax
jne 0x1001a13f
mov dword [esp + 0x20], 0
mov eax, dword [edi + 0x588]
mov ecx, dword [eax + 0x10]
mov byte [edi + 0x51a], ch
push 2
inc dword [esp + 0x24]
mov eax, dword [edi + 0x588]
mov edx, dword [esp + 0x24]
mov cl, byte [eax + 0x10]
lea eax, [esp + 0x24]
push eax
mov byte [edx + edi + 0x51a], cl
push 0xffffffffffffffff
lea ecx, [edi + 0x51a]
inc dword [esp + 0x2c]
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [edi + 0x5d84], eax
mov eax, dword [esi + 0x588]
cmp dword [eax + 0xcc], 0
je 0x1001a15b
push 0xfe
call fcn.1001a200
add esp, 4
add esi, 0x676c
push esi
call fcn.1001a9e0
add esp, 4
call fcn.1001a7e0
push esi
call fcn.1001ae70
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x50
ret