Function at 0x100edb6
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 0x100f25d
dec eax
jne 0x100f385
mov eax, dword [ecx + 0xbc]
cmp eax, 0x1d
jg 0x100f0b4
je 0x100ef5f
cmp eax, 0xe
jg 0x100ef02
je 0x100eee7
cmp eax, 7
je 0x100ee8a
cmp eax, 8
je 0x100f1e0
cmp eax, 0xa
je 0x100ee27
jle 0x100f385
cmp eax, 0xc
jle 0x100efaf
jmp 0x100f385
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.01007eaf
mov ebx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x100ee5c
test ebx, ebx
je 0x100ee53
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 0x100ee7d
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x14]
test ebx, ebx
je 0x100ee7d
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.010070fe
jmp 0x100f385
cmp dword [edi + 8], 0xfffffffe
je 0x100eeb9
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.0100d0f1
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100d0f1
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x100f385
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.0100dde7
test eax, eax
je 0x100ee7d
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 0x100ee7d
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 0x100f385
sub eax, 0x11
je 0x100efaf
dec eax
je 0x100ef1c
sub eax, 4
je 0x100efaf
jmp 0x100f385
test byte [esi + 0x64], 1
je 0x100f385
test byte [esi + 0x58], 2
je 0x100f385
mov ecx, esi
call fcn.0100de5e
cmp byte [edi + 8], 0
mov ebx, eax
je 0x100ef4f
push esi
push 0x8005
or ebx, 4
call fcn.01019c0f
jmp 0x100ef52
and ebx, 0xfffffffb
push ebx
mov ecx, esi
call fcn.0100ed7c
jmp 0x100f385
mov cx, word [edi + 2]
cmp cx, 9
mov al, 1
jne 0x100ef79
cmp byte [edi + 8], 2
jne 0x100ef99
cmp byte [edi + 0xf], 0xff
je 0x100ef99
jmp 0x100ef97
cmp cx, 0xb
jne 0x100ef99
mov cl, byte [edi + 0x14]
shr cl, 2
and cl, 7
cmp cl, 1
je 0x100ef97
cmp cl, 2
je 0x100ef97
cmp cl, 7
jne 0x100ef99
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 0x100f06c
test al, al
jns 0x100f021
test al, 0x20
jne 0x100f06c
mov ecx, esi
call fcn.0100de15
mov ecx, eax
sar ecx, 2
and ecx, 3
test al, 3
jne 0x100efe9
cmp ecx, 3
jne 0x100efed
mov byte [ebp - 1], 1
test ecx, ecx
je 0x100eff3
mov bl, 1
cmp byte [ebp - 1], 0
je 0x100effd
test bl, bl
jne 0x100f072
push 0
push 2
push dword [0x1027248]
mov ecx, esi
call fcn.0100d54e
mov dword [ebp - 0x10], eax
mov ax, word [eax + 2]
cmp ax, 0xb
je 0x100f06c
cmp ax, 9
je 0x100f06c
push 0
push 2
push dword [0x1027234]
mov ecx, esi
call fcn.0100d54e
mov edi, eax
mov ax, word [edi + 2]
cmp ax, 9
jne 0x100f044
cmp byte [edi + 8], 2
jne 0x100f06c
cmp ax, 0xb
jne 0x100f072
mov al, byte [edi + 0x14]
mov cl, al
and cl, 3
cmp cl, 2
je 0x100f06c
test cl, cl
jne 0x100f072
shr al, 2
and al, 7
cmp al, 4
je 0x100f06c
cmp al, 5
je 0x100f06c
cmp al, 6
jne 0x100f072
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 0x100f0a4
mov ecx, edi
call fcn.010070fe
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100f385
jmp 0x100ee80
cmp eax, 0x2c
jg 0x100f1cd
je 0x100f1b8
sub eax, 0x25
je 0x100f173
dec eax
je 0x100f132
sub eax, 3
je 0x100f0f6
dec eax
dec eax
jne 0x100f385
test byte [esi + 0x64], 1
je 0x100f385
push esi
push 0x800a
call fcn.01019c0f
jmp 0x100f385
cmp byte [edi + 8], 0
je 0x100f385
test byte [esi + 0x58], 2
je 0x100f385
mov ecx, esi
call fcn.0100de5e
test byte [esi + 0x5c], 2
mov edi, eax
je 0x100f129
push esi
push 0x8005
or edi, 4
call fcn.01019c0f
jmp 0x100f12c
and edi, 0xfffffffb
push edi
jmp 0x100ef53
mov ecx, dword [ebp + 0x10]
mov eax, 0xf000
test dword [ecx + 8], eax
je 0x100f14c
test dword [edi + 8], eax
jne 0x100f14c
push eax
mov ecx, esi
call fcn.0100fc67
mov eax, dword [ebp + 0x10]
mov ebx, 0xf00
test dword [eax + 8], ebx
je 0x100f385
test dword [edi + 8], ebx
jne 0x100f385
push ebx
mov ecx, esi
call fcn.0100fc67
jmp 0x100f385
test byte [esi + 0x65], 4
je 0x100f1a5
mov ecx, esi
call fcn.0100de40
mov ebx, 0xf00
test ebx, eax
mov dword [ebp - 0x18], eax
je 0x100f1a5
call fcn.0100cf94
test al, al
je 0x100f1a5
push ebx
push dword [ebp - 0x18]
mov ecx, esi
call fcn.01010666
jmp 0x100f385
xor eax, eax
mov al, byte [edi + 8]
push eax
push dword [esi + 4]
call fcn.01018d01
jmp 0x100f385
test byte [esi + 0x64], 1
je 0x100f385
push esi
push 0x800c
jmp 0x100f0ec
mov ecx, eax
sub ecx, 0x2d
je 0x100f248
dec ecx
je 0x100f233
sub ecx, 3
jne 0x100f385
cmp eax, 0x31
jne 0x100f1f1
mov eax, dword [esi + 0x58]
movzx ecx, byte [edi + 8]
and eax, 3
jmp 0x100f1fe
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 0x100f21a
test al, 2
je 0x100f210
push 2
pop edx
push 0x20
pop edi
test al, 1
je 0x100f21a
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 0x100eef7
test byte [esi + 0x64], 1
je 0x100f385
push esi
push 0x800e
jmp 0x100f0ec
test byte [esi + 0x64], 1
je 0x100f385
push esi
push 0x800d
jmp 0x100f0ec
mov ecx, dword [ecx + 0xbc]
test ecx, ecx
je 0x100f29a
cmp ecx, 0x12
jne 0x100f385
cmp word [edi + 2], 0xffff
je 0x100f385
mov edi, dword [esi + 4]
call dword [sym.imp.DUSER.dll_GetGadgetFocus]
cmp eax, edi
je 0x100f385
push dword [esi + 4]
call dword [sym.imp.DUSER.dll_SetGadgetFocus]
jmp 0x100f385
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 0x100f2eb
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0100dde7
test eax, eax
je 0x100f2d5
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.010070fe
and dword [ebp - 0x18], 0
mov ecx, ebx
call fcn.0100d4e3
mov dword [ebp - 8], eax
test edi, edi
je 0x100f34c
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.0100d0f1
mov ecx, dword [ebx + 0x10]
push 1
push 0
push esi
call fcn.0100d0f1
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0100dde7
test eax, eax
je 0x100f335
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.010070fe
mov ebx, dword [edi + 4]
mov ecx, edi
call fcn.0100d4e3
mov dword [ebp - 0xc], eax
jmp 0x100f34f
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 0x100f385
cmp dword [ebp - 8], 0
je 0x100f375
push dword [ebp - 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
cmp dword [ebp - 0xc], 0
je 0x100f385
push dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100f3b2
mov edi, dword [eax]
xor ebx, ebx
inc ebx
cmp edi, ebx
jb 0x100f3b2
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 0x100f395
pop edi
pop esi
pop ebx
leave
ret 0x10