Function at 0x100ff01
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 0x10103aa
dec eax
jne 0x10104d2
mov eax, dword [ecx + 0xbc]
cmp eax, 0x1d
jg 0x1010201
je 0x10100ac
cmp eax, 0xe
jg 0x101004f
je 0x1010034
cmp eax, 7
je 0x100ffd7
cmp eax, 8
je 0x101032d
cmp eax, 0xa
je 0x100ff74
jle 0x10104d2
cmp eax, 0xc
jle 0x10100fc
jmp 0x10104d2
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 0x100ffa9
test ebx, ebx
je 0x100ffa0
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 0x100ffca
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x14]
test ebx, ebx
je 0x100ffca
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 0x10104d2
cmp dword [edi + 8], 0xfffffffe
je 0x1010006
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.0100e0df
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100e0df
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x10104d2
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0100ee72
test eax, eax
je 0x100ffca
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 0x100ffca
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 0x10104d2
sub eax, 0x11
je 0x10100fc
dec eax
je 0x1010069
sub eax, 4
je 0x10100fc
jmp 0x10104d2
test byte [esi + 0x64], 1
je 0x10104d2
test byte [esi + 0x58], 2
je 0x10104d2
mov ecx, esi
call fcn.0100eeff
cmp byte [edi + 8], 0
mov ebx, eax
je 0x101009c
push esi
push 0x8005
or ebx, 4
call fcn.0101ba4c
jmp 0x101009f
and ebx, 0xfffffffb
push ebx
mov ecx, esi
call fcn.0100febd
jmp 0x10104d2
mov cx, word [edi + 2]
cmp cx, 9
mov al, 1
jne 0x10100c6
cmp byte [edi + 8], 2
jne 0x10100e6
cmp byte [edi + 0xf], 0xff
je 0x10100e6
jmp 0x10100e4
cmp cx, 0xb
jne 0x10100e6
mov cl, byte [edi + 0x14]
shr cl, 2
and cl, 7
cmp cl, 1
je 0x10100e4
cmp cl, 2
je 0x10100e4
cmp cl, 7
jne 0x10100e6
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 0x10101b9
test al, al
jns 0x101016e
test al, 0x20
jne 0x10101b9
mov ecx, esi
call fcn.0100eeaa
mov ecx, eax
sar ecx, 2
and ecx, 3
test al, 3
jne 0x1010136
cmp ecx, 3
jne 0x101013a
mov byte [ebp - 1], 1
test ecx, ecx
je 0x1010140
mov bl, 1
cmp byte [ebp - 1], 0
je 0x101014a
test bl, bl
jne 0x10101bf
push 0
push 2
push dword [0x1029380]
mov ecx, esi
call fcn.0100e50f
mov dword [ebp - 0x10], eax
mov ax, word [eax + 2]
cmp ax, 0xb
je 0x10101b9
cmp ax, 9
je 0x10101b9
push 0
push 2
push dword [0x102936c]
mov ecx, esi
call fcn.0100e50f
mov edi, eax
mov ax, word [edi + 2]
cmp ax, 9
jne 0x1010191
cmp byte [edi + 8], 2
jne 0x10101b9
cmp ax, 0xb
jne 0x10101bf
mov al, byte [edi + 0x14]
mov cl, al
and cl, 3
cmp cl, 2
je 0x10101b9
test cl, cl
jne 0x10101bf
shr al, 2
and al, 7
cmp al, 4
je 0x10101b9
cmp al, 5
je 0x10101b9
cmp al, 6
jne 0x10101bf
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 0x10101f1
mov ecx, edi
call fcn.010072f8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10104d2
jmp 0x100ffcd
cmp eax, 0x2c
jg 0x101031a
je 0x1010305
sub eax, 0x25
je 0x10102c0
dec eax
je 0x101027f
sub eax, 3
je 0x1010243
dec eax
dec eax
jne 0x10104d2
test byte [esi + 0x64], 1
je 0x10104d2
push esi
push 0x800a
call fcn.0101ba4c
jmp 0x10104d2
cmp byte [edi + 8], 0
je 0x10104d2
test byte [esi + 0x58], 2
je 0x10104d2
mov ecx, esi
call fcn.0100eeff
test byte [esi + 0x5c], 2
mov edi, eax
je 0x1010276
push esi
push 0x8005
or edi, 4
call fcn.0101ba4c
jmp 0x1010279
and edi, 0xfffffffb
push edi
jmp 0x10100a0
mov ecx, dword [ebp + 0x10]
mov eax, 0xf000
test dword [ecx + 8], eax
je 0x1010299
test dword [edi + 8], eax
jne 0x1010299
push eax
mov ecx, esi
call fcn.01010e58
mov eax, dword [ebp + 0x10]
mov ebx, 0xf00
test dword [eax + 8], ebx
je 0x10104d2
test dword [edi + 8], ebx
jne 0x10104d2
push ebx
mov ecx, esi
call fcn.01010e58
jmp 0x10104d2
test byte [esi + 0x65], 4
je 0x10102f2
mov ecx, esi
call fcn.0100eeda
mov ebx, 0xf00
test ebx, eax
mov dword [ebp - 0x18], eax
je 0x10102f2
call fcn.0100df65
test al, al
je 0x10102f2
push ebx
push dword [ebp - 0x18]
mov ecx, esi
call fcn.01011966
jmp 0x10104d2
xor eax, eax
mov al, byte [edi + 8]
push eax
push dword [esi + 4]
call fcn.0101a922
jmp 0x10104d2
test byte [esi + 0x64], 1
je 0x10104d2
push esi
push 0x800c
jmp 0x1010239
mov ecx, eax
sub ecx, 0x2d
je 0x1010395
dec ecx
je 0x1010380
sub ecx, 3
jne 0x10104d2
cmp eax, 0x31
jne 0x101033e
mov eax, dword [esi + 0x58]
movzx ecx, byte [edi + 8]
and eax, 3
jmp 0x101034b
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 0x1010367
test al, 2
je 0x101035d
push 2
pop edx
push 0x20
pop edi
test al, 1
je 0x1010367
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 0x1010044
test byte [esi + 0x64], 1
je 0x10104d2
push esi
push 0x800e
jmp 0x1010239
test byte [esi + 0x64], 1
je 0x10104d2
push esi
push 0x800d
jmp 0x1010239
mov ecx, dword [ecx + 0xbc]
test ecx, ecx
je 0x10103e7
cmp ecx, 0x12
jne 0x10104d2
cmp word [edi + 2], 0xffff
je 0x10104d2
mov edi, dword [esi + 4]
call dword [sym.imp.DUSER.dll_GetGadgetFocus]
cmp eax, edi
je 0x10104d2
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetFocus]
jmp 0x10104d2
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 0x1010438
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0100ee72
test eax, eax
je 0x1010422
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.0100e496
mov dword [ebp - 8], eax
test edi, edi
je 0x1010499
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.0100e0df
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100e0df
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0100ee72
test eax, eax
je 0x1010482
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.0100e496
mov dword [ebp - 0xc], eax
jmp 0x101049c
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 0x10104d2
cmp dword [ebp - 8], 0
je 0x10104c2
push dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
cmp dword [ebp - 0xc], 0
je 0x10104d2
push dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10104ff
mov edi, dword [eax]
xor ebx, ebx
inc ebx
cmp edi, ebx
jb 0x10104ff
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 0x10104e2
pop edi
pop esi
pop ebx
leave
ret 0x10