Function at 0x100fed5
Capabilities:
Get thread local storage value

Disassembly:
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]
je 0x101037e
dec eax
jne 0x10104a6
mov eax, dword [ecx + 0xbc]
cmp eax, 0x1d
jg 0x10101d5
je 0x1010080
cmp eax, 0xe
jg 0x1010023
je 0x1010008
cmp eax, 7
je 0x100ffab
cmp eax, 8
je 0x1010301
cmp eax, 0xa
je 0x100ff48
jle 0x10104a6
cmp eax, 0xc
jle 0x10100d0
jmp 0x10104a6
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0100828c
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x100ff7d
test ebx, ebx
je 0x100ff74
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]
mov edi, dword [edi + 8]
test edi, edi
je 0x100ff9e
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x14]
test ebx, ebx
je 0x100ff9e
push dword [ebx + 8]
mov eax, dword [edi]
push dword [ebx + 0x10]
mov ecx, edi
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
call fcn.010072f8
jmp 0x10104a6
cmp dword [edi + 8], 0xfffffffe
je 0x100ffda
push dword [0x1028cf0]
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.0100e0b3
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100e0b3
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x10104a6
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0100ee46
test eax, eax
je 0x100ff9e
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]
jmp 0x100ff9e
mov al, byte [edi + 8]
neg al
push 2
sbb eax, eax
and eax, 2
push eax
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetStyle]
jmp 0x10104a6
sub eax, 0x11
je 0x10100d0
dec eax
je 0x101003d
sub eax, 4
je 0x10100d0
jmp 0x10104a6
test byte [esi + 0x64], 1
je 0x10104a6
test byte [esi + 0x58], 2
je 0x10104a6
mov ecx, esi
call fcn.0100eed3
cmp byte [edi + 8], 0
mov ebx, eax
je 0x1010070
push esi
push 0x8005
or ebx, 4
call fcn.0101ba20
jmp 0x1010073
and ebx, 0xfffffffb
push ebx
mov ecx, esi
call fcn.0100fe91
jmp 0x10104a6
mov cx, word [edi + 2]
cmp cx, 9
mov al, 1
jne 0x101009a
cmp byte [edi + 8], 2
jne 0x10100ba
cmp byte [edi + 0xf], 0xff
je 0x10100ba
jmp 0x10100b8
cmp cx, 0xb
jne 0x10100ba
mov cl, byte [edi + 0x14]
shr cl, 2
and cl, 7
cmp cl, 1
je 0x10100b8
cmp cl, 2
je 0x10100b8
cmp cl, 7
jne 0x10100ba
xor al, al
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]
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 0x101018d
test al, al
jns 0x1010142
test al, 0x20
jne 0x101018d
mov ecx, esi
call fcn.0100ee7e
mov ecx, eax
sar ecx, 2
and ecx, 3
test al, 3
jne 0x101010a
cmp ecx, 3
jne 0x101010e
mov byte [ebp - 1], 1
test ecx, ecx
je 0x1010114
mov bl, 1
cmp byte [ebp - 1], 0
je 0x101011e
test bl, bl
jne 0x1010193
push 0
push 2
push dword [0x1029380]
mov ecx, esi
call fcn.0100e4e3
mov dword [ebp - 0x10], eax
mov ax, word [eax + 2]
cmp ax, 0xb
je 0x101018d
cmp ax, 9
je 0x101018d
push 0
push 2
push dword [0x102936c]
mov ecx, esi
call fcn.0100e4e3
mov edi, eax
mov ax, word [edi + 2]
cmp ax, 9
jne 0x1010165
cmp byte [edi + 8], 2
jne 0x101018d
cmp ax, 0xb
jne 0x1010193
mov al, byte [edi + 0x14]
mov cl, al
and cl, 3
cmp cl, 2
je 0x101018d
test cl, cl
jne 0x1010193
shr al, 2
and al, 7
cmp al, 4
je 0x101018d
cmp al, 5
je 0x101018d
cmp al, 6
jne 0x1010193
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 0x10101c5
mov ecx, edi
call fcn.010072f8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10104a6
jmp 0x100ffa1
cmp eax, 0x2c
jg 0x10102ee
je 0x10102d9
sub eax, 0x25
je 0x1010294
dec eax
je 0x1010253
sub eax, 3
je 0x1010217
dec eax
dec eax
jne 0x10104a6
test byte [esi + 0x64], 1
je 0x10104a6
push esi
push 0x800a
call fcn.0101ba20
jmp 0x10104a6
cmp byte [edi + 8], 0
je 0x10104a6
test byte [esi + 0x58], 2
je 0x10104a6
mov ecx, esi
call fcn.0100eed3
test byte [esi + 0x5c], 2
mov edi, eax
je 0x101024a
push esi
push 0x8005
or edi, 4
call fcn.0101ba20
jmp 0x101024d
and edi, 0xfffffffb
push edi
jmp 0x1010074
mov ecx, dword [ebp + 0x10]
mov eax, 0xf000
test dword [ecx + 8], eax
je 0x101026d
test dword [edi + 8], eax
jne 0x101026d
push eax
mov ecx, esi
call fcn.01010e2c
mov eax, dword [ebp + 0x10]
mov ebx, 0xf00
test dword [eax + 8], ebx
je 0x10104a6
test dword [edi + 8], ebx
jne 0x10104a6
push ebx
mov ecx, esi
call fcn.01010e2c
jmp 0x10104a6
test byte [esi + 0x65], 4
je 0x10102c6
mov ecx, esi
call fcn.0100eeae
mov ebx, 0xf00
test ebx, eax
mov dword [ebp - 0x18], eax
je 0x10102c6
call fcn.0100df39
test al, al
je 0x10102c6
push ebx
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0101193a
jmp 0x10104a6
xor eax, eax
mov al, byte [edi + 8]
push eax
push dword [esi + 4]
call fcn.0101a8f6
jmp 0x10104a6
test byte [esi + 0x64], 1
je 0x10104a6
push esi
push 0x800c
jmp 0x101020d
mov ecx, eax
sub ecx, 0x2d
je 0x1010369
dec ecx
je 0x1010354
sub ecx, 3
jne 0x10104a6
cmp eax, 0x31
jne 0x1010312
mov eax, dword [esi + 0x58]
movzx ecx, byte [edi + 8]
and eax, 3
jmp 0x101031f
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 0x101033b
test al, 2
je 0x1010331
push 2
pop edx
push 0x20
pop edi
test al, 1
je 0x101033b
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]
jmp 0x1010018
test byte [esi + 0x64], 1
je 0x10104a6
push esi
push 0x800e
jmp 0x101020d
test byte [esi + 0x64], 1
je 0x10104a6
push esi
push 0x800d
jmp 0x101020d
mov ecx, dword [ecx + 0xbc]
test ecx, ecx
je 0x10103bb
cmp ecx, 0x12
jne 0x10104a6
cmp word [edi + 2], 0xffff
je 0x10104a6
mov edi, dword [esi + 4]
call dword [sym.imp.DUSER.dll_GetGadgetFocus]
cmp eax, edi
je 0x10104a6
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetFocus]
jmp 0x10104a6
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
je 0x101040c
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0100ee46
test eax, eax
je 0x10103f6
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.010072f8
and dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.0100e46a
mov dword [ebp - 8], eax
test edi, edi
je 0x101046d
push dword [0x1028cf0]
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.0100e0b3
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100e0b3
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0100ee46
test eax, eax
je 0x1010456
mov edx, dword [eax]
push 1
lea ecx, [ebp - 0x14]
push ecx
push edi
mov ecx, eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x10]
call fcn.010072f8
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.0100e46a
mov dword [ebp - 0xc], eax
jmp 0x1010470
mov ebx, dword [ebp - 0x18]
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 0x10104a6
cmp dword [ebp - 8], 0
je 0x1010496
push dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
cmp dword [ebp - 0xc], 0
je 0x10104a6
push dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10104d3
mov edi, dword [eax]
xor ebx, ebx
inc ebx
cmp edi, ebx
jb 0x10104d3
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
jbe 0x10104b6
pop edi
pop esi
pop ebx
leave
ret 0x10