Function at 0x1019ea0
Capabilities:
Get thread local storage value

Disassembly:
mov al, byte [edi + 8]
neg al
push 2
sbb eax, eax
and eax, 2
push eax
push dword [esi + 4]
jmp 0x1019f57
cmp byte [edi + 8], 0
je 0x1019ed0
test byte [esi + 0x58], 2
je 0x1019ed0
jmp 0x1067528
test byte [esi + 0x64], 1
je 0x1019ed0
jmp 0x10675d6
cmp eax, 0xa
je 0x1019d9f
jle 0x1019ed0
jmp 0x10207a2
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.01019de2
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x10673d8
mov edi, dword [edi + 8]
test edi, edi
je 0x101d777
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x14]
test ebx, ebx
je 0x101d777
jmp 0x10673f8
mov edi, dword [eax]
xor ebx, ebx
inc ebx
cmp edi, ebx
jb 0x1019ed7
push dword [ebp + 0x14]
mov eax, dword [esi + 0x1c]
push dword [ebp + 0x10]
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
push esi
call dword [eax + 0xc]
inc ebx
cmp ebx, edi
ja 0x1019ed7
jmp 0x1019e7c
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 8]
jne 0x1019ede
mov ecx, dword [ecx + 0xbc]
test ecx, ecx
je 0x10207d1
cmp ecx, 0x12
je 0x1067625
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x1019e73
pop edi
pop esi
pop ebx
leave
ret 0x10
dec eax
jne 0x1019ed0
mov eax, dword [ecx + 0xbc]
cmp eax, 0x1d
jg 0x1019f62
je 0x1020766
cmp eax, 0xe
jg 0x101d77f
je 0x10160f8
cmp eax, 7
je 0x101d71c
cmp eax, 8
jne 0x1019d8f
cmp eax, 0x31
je 0x10675e1
mov eax, dword [edi + 8]
xor ecx, ecx
mov cl, byte [esi + 0x64]
shr ecx, 1
and ecx, 1
xor edx, edx
xor edi, edi
test ecx, ecx
je 0x1019f43
test al, 2
jne 0x10675f0
test al, 1
je 0x1019f43
or edx, 4
or edi, 0x40
push 6
push edx
push 0
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetMessageFilter]
push 0x60
push edi
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetStyle]
jmp 0x1019ed0
cmp eax, 0x2c
jg 0x1019f93
je 0x1016126
sub eax, 0x25
je 0x1067591
dec eax
je 0x1067550
sub eax, 3
je 0x101610d
dec eax
dec eax
jne 0x1019ed0
jmp 0x106750e
mov ecx, eax
sub ecx, 0x2d
je 0x1067610
dec ecx
je 0x10675fb
sub ecx, 3
jne 0x1019ed0
jmp 0x1019f13
cmp dword [edi + 8], 0xfffffffe
je 0x101d74b
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0xc]
mov ecx, dword [ebx + 0x14]
push 1
push 0
push esi
call fcn.0101c32b
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0101c32b
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x1019ed0
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0101a8e9
test eax, eax
je 0x101d777
push dword [edi + 8]
mov ecx, dword [ebp + 0x10]
push dword [ecx + 8]
mov edx, dword [eax]
push esi
push ebx
mov ecx, eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x18]
jmp 0x101d814
sub eax, 0x11
je 0x101d794
dec eax
je 0x106740b
sub eax, 4
jne 0x1019ed0
mov al, byte [esi + 0x64]
xor edi, edi
xor bl, bl
test al, 0x10
mov dword [ebp - 0x10], edi
mov byte [ebp - 1], 0
jne 0x101d7d1
test al, al
js 0x106747c
push 0
push 2
push dword [0x112d738]
mov ecx, esi
call fcn.010182e7
mov edi, eax
mov ax, word [edi + 2]
cmp ax, 9
jne 0x101d81e
cmp byte [edi + 8], 2
je 0x101d81e
mov byte [ebp - 1], 1
mov bl, 1
mov al, byte [ebp - 1]
neg bl
push 0x600
sbb ebx, ebx
and ebx, 0x400
neg al
sbb eax, eax
and eax, 0x200
or ebx, eax
push ebx
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetStyle]
test edi, edi
je 0x101d809
mov ecx, edi
call fcn.01018251
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1019ed0
call fcn.01018251
jmp 0x1019ed0
cmp ax, 0xb
jne 0x101d7d7
jmp 0x10674db
mov cx, word [edi + 2]
cmp cx, 9
mov al, 1
jne 0x1020797
cmp byte [edi + 8], 2
je 0x106744e
neg al
mov ecx, 0x800
push ecx
sbb eax, eax
and eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetStyle]
jmp 0x101d794
cmp cx, 0xb
jne 0x102077c
jmp 0x1067459
cmp eax, 0xc
jg 0x1019ed0
jmp 0x101d794
cmp ax, 9
jne 0x101d7ae
jmp 0x101d7d1
cmp al, 6
je 0x101d7d1
jmp 0x101d7d7
mov ebx, dword [ebp - 0x18]
jmp 0x1020844
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 8]
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
jne 0x106764f
test edi, edi
je 0x10207cc
push dword [0x111a324]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0xc]
mov ecx, dword [ebx + 0x14]
push 1
push 0
push esi
call fcn.0101c32b
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0101c32b
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0101a8e9
test eax, eax
jne 0x1020881
mov ecx, dword [ebp - 0x10]
call fcn.01018251
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.0102343b
mov dword [ebp - 0xc], eax
push 3
push 0
push ebx
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetParent]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], eax
je 0x1019ed0
cmp dword [ebp - 8], 0
jne 0x1067687
cmp dword [ebp - 0xc], 0
je 0x1019ed0
push dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
jmp 0x1019ed0
mov edx, dword [eax]
push 1
lea ecx, [ebp - 0x14]
push ecx
push edi
mov ecx, eax
call dword [edx + 8]
jmp 0x102082f
test ebx, ebx
je 0x10673ea
push dword [ebx + 8]
mov ecx, eax
push dword [ebx + 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push esi
call dword [eax + 0x18]
jmp 0x1019dbd
push dword [ebx + 8]
mov eax, dword [edi]
push dword [ebx + 0x10]
mov ecx, edi
push esi
call dword [eax + 8]
jmp 0x101d777
test byte [esi + 0x64], 1
je 0x1019ed0
test byte [esi + 0x58], 2
je 0x1019ed0
mov ecx, esi
call fcn.01015f74
cmp byte [edi + 8], 0
mov ebx, eax
je 0x106743e
push esi
push 0x8005
or ebx, 4
call fcn.010e6db2
jmp 0x1067441
and ebx, 0xfffffffb
push ebx
mov ecx, esi
call fcn.010160bc
jmp 0x1019ed0
cmp byte [edi + 0xf], 0xff
jne 0x1067475
jmp 0x102077c
mov cl, byte [edi + 0x14]
shr cl, 2
and cl, 7
cmp cl, 1
je 0x1067475
cmp cl, 2
je 0x1067475
cmp cl, 7
jne 0x102077c
xor al, al
jmp 0x102077c
test al, 0x20
jne 0x101d7d1
mov ecx, esi
call fcn.010e38b9
mov ecx, eax
sar ecx, 2
and ecx, 3
test al, 3
jne 0x106749c
cmp ecx, 3
jne 0x10674a0
mov byte [ebp - 1], 1
test ecx, ecx
je 0x10674a6
mov bl, 1
cmp byte [ebp - 1], 0
je 0x10674b4
test bl, bl
jne 0x101d7d7
push 0
push 2
push dword [0x113163c]
mov ecx, esi
call fcn.010182e7
mov dword [ebp - 0x10], eax
mov ax, word [eax + 2]
cmp ax, 0xb
jne 0x10207b0
jmp 0x101d7d1
mov al, byte [edi + 0x14]
mov cl, al
and cl, 3
cmp cl, 2
je 0x101d7d1
test cl, cl
jne 0x101d7d7
shr al, 2
and al, 7
cmp al, 4
je 0x101d7d1
cmp al, 5
jne 0x10207bf
jmp 0x101d7d1
test byte [esi + 0x64], 1
je 0x1019ed0
push esi
push 0x800a
call fcn.010e6db2
jmp 0x1019ed0
mov ecx, esi
call fcn.01015f74
test byte [esi + 0x5c], 2
mov edi, eax
je 0x1067547
push esi
push 0x8005
or edi, 4
call fcn.010e6db2
jmp 0x106754a
and edi, 0xfffffffb
push edi
jmp 0x1067442
mov ecx, dword [ebp + 0x10]
mov eax, 0xf000
test dword [ecx + 8], eax
je 0x106756a
test dword [edi + 8], eax
jne 0x106756a
push eax
mov ecx, esi
call fcn.010e1e0d
mov eax, dword [ebp + 0x10]
mov ebx, 0xf00
test dword [eax + 8], ebx
je 0x1019ed0
test dword [edi + 8], ebx
jne 0x1019ed0
push ebx
mov ecx, esi
call fcn.010e1e0d
jmp 0x1019ed0
test byte [esi + 0x65], 4
je 0x10675c3
mov ecx, esi
call fcn.010e38e9
mov ebx, 0xf00
test ebx, eax
mov dword [ebp - 0x18], eax
je 0x10675c3
call fcn.010e37c4
test al, al
je 0x10675c3
push ebx
push dword [ebp - 0x18]
mov ecx, esi
call fcn.010e2438
jmp 0x1019ed0
xor eax, eax
mov al, byte [edi + 8]
push eax
push dword [esi + 4]
call fcn.010e78cb
jmp 0x1019ed0
push esi
push 0x800c
jmp 0x106751e
mov eax, dword [esi + 0x58]
movzx ecx, byte [edi + 8]
and eax, 3
jmp 0x1019f29
push 2
pop edx
push 0x20
pop edi
jmp 0x1019f39
test byte [esi + 0x64], 1
je 0x1019ed0
push esi
push 0x800e
jmp 0x106751e
test byte [esi + 0x64], 1
je 0x1019ed0
push esi
push 0x800d
jmp 0x106751e
cmp word [edi + 2], 0xffff
je 0x1019ed0
mov edi, dword [esi + 4]
call dword [sym.imp.DUSER.dll_GetGadgetFocus]
cmp eax, edi
je 0x1019ed0
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetFocus]
jmp 0x1019ed0
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0101a8e9
test eax, eax
je 0x106766c
mov edx, dword [eax]
push 1
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.01018251
and dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.0102343b
mov dword [ebp - 8], eax
jmp 0x10207f3
push dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
jmp 0x1020868