Function at 0x100ef65
Capabilities:
Get thread local storage value

Disassembly:
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 0x100f40c
dec eax
jne 0x100f534
mov eax, dword [ecx + 0xbc]
cmp eax, 0x1d
jg 0x100f263
je 0x100f10e
cmp eax, 0xe
jg 0x100f0b1
je 0x100f096
cmp eax, 7
je 0x100f039
cmp eax, 8
je 0x100f38f
cmp eax, 0xa
je 0x100efd6
jle 0x100f534
cmp eax, 0xc
jle 0x100f15e
jmp 0x100f534
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.01007e94
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x100f00b
test ebx, ebx
je 0x100f002
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 0x100f02c
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x14]
test ebx, ebx
je 0x100f02c
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.010070e0
jmp 0x100f534
cmp dword [edi + 8], 0xfffffffe
je 0x100f068
push dword [0x1026bb8]
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.0100d140
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100d140
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x100f534
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0100df84
test eax, eax
je 0x100f02c
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 0x100f02c
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 0x100f534
sub eax, 0x11
je 0x100f15e
dec eax
je 0x100f0cb
sub eax, 4
je 0x100f15e
jmp 0x100f534
test byte [esi + 0x64], 1
je 0x100f534
test byte [esi + 0x58], 2
je 0x100f534
mov ecx, esi
call fcn.0100dffb
cmp byte [edi + 8], 0
mov ebx, eax
je 0x100f0fe
push esi
push 0x8005
or ebx, 4
call fcn.01019d32
jmp 0x100f101
and ebx, 0xfffffffb
push ebx
mov ecx, esi
call fcn.0100ef2b
jmp 0x100f534
mov cx, word [edi + 2]
cmp cx, 9
mov al, 1
jne 0x100f128
cmp byte [edi + 8], 2
jne 0x100f148
cmp byte [edi + 0xf], 0xff
je 0x100f148
jmp 0x100f146
cmp cx, 0xb
jne 0x100f148
mov cl, byte [edi + 0x14]
shr cl, 2
and cl, 7
cmp cl, 1
je 0x100f146
cmp cl, 2
je 0x100f146
cmp cl, 7
jne 0x100f148
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]
and byte [ebp - 1], 0
xor edi, edi
xor bl, bl
test al, 0x10
mov dword [ebp - 0x10], edi
jne 0x100f21b
test al, al
jns 0x100f1d0
test al, 0x20
jne 0x100f21b
mov ecx, esi
call fcn.0100dfb2
mov ecx, eax
sar ecx, 2
and ecx, 3
test al, 3
jne 0x100f198
cmp ecx, 3
jne 0x100f19c
mov byte [ebp - 1], 1
test ecx, ecx
je 0x100f1a2
mov bl, 1
cmp byte [ebp - 1], 0
je 0x100f1ac
test bl, bl
jne 0x100f221
push 0
push 2
push dword [0x1027248]
mov ecx, esi
call fcn.0100d652
mov dword [ebp - 0x10], eax
mov ax, word [eax + 2]
cmp ax, 0xb
je 0x100f21b
cmp ax, 9
je 0x100f21b
push 0
push 2
push dword [0x1027234]
mov ecx, esi
call fcn.0100d652
mov edi, eax
mov ax, word [edi + 2]
cmp ax, 9
jne 0x100f1f3
cmp byte [edi + 8], 2
jne 0x100f21b
cmp ax, 0xb
jne 0x100f221
mov al, byte [edi + 0x14]
mov cl, al
and cl, 3
cmp cl, 2
je 0x100f21b
test cl, cl
jne 0x100f221
shr al, 2
and al, 7
cmp al, 4
je 0x100f21b
cmp al, 5
je 0x100f21b
cmp al, 6
jne 0x100f221
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 0x100f253
mov ecx, edi
call fcn.010070e0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100f534
jmp 0x100f02f
cmp eax, 0x2c
jg 0x100f37c
je 0x100f367
sub eax, 0x25
je 0x100f322
dec eax
je 0x100f2e1
sub eax, 3
je 0x100f2a5
dec eax
dec eax
jne 0x100f534
test byte [esi + 0x64], 1
je 0x100f534
push esi
push 0x800a
call fcn.01019d32
jmp 0x100f534
cmp byte [edi + 8], 0
je 0x100f534
test byte [esi + 0x58], 2
je 0x100f534
mov ecx, esi
call fcn.0100dffb
test byte [esi + 0x5c], 2
mov edi, eax
je 0x100f2d8
push esi
push 0x8005
or edi, 4
call fcn.01019d32
jmp 0x100f2db
and edi, 0xfffffffb
push edi
jmp 0x100f102
mov ecx, dword [ebp + 0x10]
mov eax, 0xf000
test dword [ecx + 8], eax
je 0x100f2fb
test dword [edi + 8], eax
jne 0x100f2fb
push eax
mov ecx, esi
call fcn.0100fe26
mov eax, dword [ebp + 0x10]
mov ebx, 0xf00
test dword [eax + 8], ebx
je 0x100f534
test dword [edi + 8], ebx
jne 0x100f534
push ebx
mov ecx, esi
call fcn.0100fe26
jmp 0x100f534
test byte [esi + 0x65], 4
je 0x100f354
mov ecx, esi
call fcn.0100dfdd
mov ebx, 0xf00
test ebx, eax
mov dword [ebp - 0x18], eax
je 0x100f354
call fcn.0100cfe3
test al, al
je 0x100f354
push ebx
push dword [ebp - 0x18]
mov ecx, esi
call fcn.01010843
jmp 0x100f534
xor eax, eax
mov al, byte [edi + 8]
push eax
push dword [esi + 4]
call fcn.01018e11
jmp 0x100f534
test byte [esi + 0x64], 1
je 0x100f534
push esi
push 0x800c
jmp 0x100f29b
mov ecx, eax
sub ecx, 0x2d
je 0x100f3f7
dec ecx
je 0x100f3e2
sub ecx, 3
jne 0x100f534
cmp eax, 0x31
jne 0x100f3a0
mov eax, dword [esi + 0x58]
movzx ecx, byte [edi + 8]
and eax, 3
jmp 0x100f3ad
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 0x100f3c9
test al, 2
je 0x100f3bf
push 2
pop edx
push 0x20
pop edi
test al, 1
je 0x100f3c9
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 0x100f0a6
test byte [esi + 0x64], 1
je 0x100f534
push esi
push 0x800e
jmp 0x100f29b
test byte [esi + 0x64], 1
je 0x100f534
push esi
push 0x800d
jmp 0x100f29b
mov ecx, dword [ecx + 0xbc]
test ecx, ecx
je 0x100f449
cmp ecx, 0x12
jne 0x100f534
cmp word [edi + 2], 0xffff
je 0x100f534
mov edi, dword [esi + 4]
call dword [sym.imp.DUSER.dll_GetGadgetFocus]
cmp eax, edi
je 0x100f534
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetFocus]
jmp 0x100f534
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 0x100f49a
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0100df84
test eax, eax
je 0x100f484
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.010070e0
and dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.0100d5e7
mov dword [ebp - 8], eax
test edi, edi
je 0x100f4fb
push dword [0x1026bb8]
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.0100d140
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100d140
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0100df84
test eax, eax
je 0x100f4e4
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.010070e0
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.0100d5e7
mov dword [ebp - 0xc], eax
jmp 0x100f4fe
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 0x100f534
cmp dword [ebp - 8], 0
je 0x100f524
push dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
cmp dword [ebp - 0xc], 0
je 0x100f534
push dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100f561
mov edi, dword [eax]
xor ebx, ebx
inc ebx
cmp edi, ebx
jb 0x100f561
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 0x100f544
pop edi
pop esi
pop ebx
leave
ret 0x10