Function at 0x4655c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x62f040]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x10], ebx
mov esi, ecx
test edi, edi
jne 0x4655f5
push 1
push 1
push esi
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
jmp 0x465c17
cmp edi, 1
jne 0x465b0b
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
test eax, eax
js 0x465609
jne 0x465676
push 1
push 1
push esi
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
push 0
push 1
push 0x9c46
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
push 0
push 1
push 0x9c7c
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x465676
mov edi, dword ds:[ecx]
xor edx, edx
test edi, edi
je 0x465676
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x465665
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x465676
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x465652
test eax, eax
je 0x465676
and dword [eax], 0xfffffffe
push 1
push 1
push eax
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
mov eax, dword ds:[ebx]
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x465698
cmp dword [eax], 0
je 0x465698
push 1
push 1
push 0x9c60
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
mov eax, dword ds:[ebx]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4656b3
cmp dword [eax], 0
je 0x4656b3
push eax
call sym.SystemInformer.exe_PhDoesFileExist
test al, al
jne 0x4656c5
push 1
push 1
push 0x9d38
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x465705
push 0
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x1d
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x465705
cmp dword [esp + 0x14], 0
je 0x465705
push 2
push 2
push 0x9c66
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
mov eax, dword [ebx]
push dword [eax + 0x10]
call sym.SystemInformer.exe__PhFindProcessNode_4
test eax, eax
je 0x46574c
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x46571f
cmp dword [eax], 0
jne 0x46574c
push 1
push 1
push 0x9c85
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
push 1
push 1
push 0x9c86
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
push 1
push 1
push 0x9c87
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62fbb0], 0x69
jae 0x46575b
push 1
push 1
jmp 0x4657a6
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x4657b1
push 0
push 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
push ecx
push 0x4d
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x4657b1
test byte [esp + 0x1c], 1
je 0x4657b1
test byte ds:[esp + 0x20], 1
je 0x4657b1
push 2
push 2
push 0x9c72
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62fbb0], 0x3e
jae 0x4657c2
push 1
push 1
jmp 0x4657ed
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
call fcn.0051ea40
test al, al
je 0x4657f8
lea eax, ds:[esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x637c5c]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x4657f8
push 2
push 2
push 0x9d79
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62fbb0], 0x72
nop
jae 0x46587d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46583d
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46583d
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
je 0x465833
nop
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46583d
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
jne 0x465820
test edx, edx
je 0x46583d
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46587d
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46587d
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
je 0x465873
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46587d
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
jne 0x465860
test edx, edx
je 0x46587d
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x100
je 0x4658ff
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4658c5
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4658c5
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
je 0x4658b8
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4658c5
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
jne 0x4658a5
test edx, edx
je 0x4658c5
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4658ff
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4658ff
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
je 0x4658f5
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4658ff
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
jne 0x4658e2
test edx, edx
je 0x4658ff
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x800
jne 0x46597f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x465945
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465945
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
je 0x46593a
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465945
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
jne 0x465927
test edx, edx
je 0x465945
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46597f
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46597f
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
je 0x465975
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46597f
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
jne 0x465962
test edx, edx
je 0x46597f
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
cmp dword [0x62fbb0], 0x72
jb 0x465a2d
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
test edi, edi
jle 0x465a2d
call fcn.0051e9e0
mov edi, edi
test al, al
je 0x4659f3
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x637c58]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x4659f3
mov edi, dword ds:[esi + 0x24]
test edi, edi
je 0x465a2d
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x465a2d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c94
je 0x465a23
lea ebx, [ebx]
inc eax
cmp eax, edx
jae 0x465a2d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c94
jne 0x4659e0
jmp 0x465a23
mov edi, dword [esi + 0x24]
test edi, edi
je 0x465a2d
mov edx, dword ds:[edi]
xor eax, eax
test edx, edx
je 0x465a2d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c95
je 0x465a23
inc eax
cmp eax, edx
jae 0x465a2d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c95
jne 0x465a12
test ecx, ecx
je 0x465a2d
push ecx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword ds:[esp + 0x10]
xor bh, bh
xor bl, bl
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x465ae2
cmp dword [0x637e88], 3
lea ecx, [esp + 0x14]
push ecx
jl 0x465a67
mov edx, 8
mov ecx, eax
call fcn.00524b00
jmp 0x465a77
push 8
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x465ae2
test eax, eax
js 0x465ae2
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x34]
push eax
push 0x17
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x465a9f
cmp dword [esp + 0x2c], 0
setne bh
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x465ac3
cmp dword [esp + 0x2c], 0
setne bl
push dword [esp + 0x14]
mov byte [0x638f60], bl
call dword [sym.imp.ntdll.dll_NtClose]
test bh, bh
je 0x465ae2
test bl, bl
je 0x465af1
push 2
push 2
jmp 0x465ae6
push 1
push 1
push 0x9c62
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
mov ebx, dword [esp + 0x10]
mov ecx, esi
push 1
sub esp, 8
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
call fcn.00465360
jmp 0x465c14
push 1
push 1
push esi
mov dword [esp + 0x24], 0x9c47
mov dword [esp + 0x28], 0x9c48
mov dword [esp + 0x2c], 0x9c49
mov dword [esp + 0x30], 0x9d39
mov dword [esp + 0x34], 0x9d02
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x465b85
mov edi, dword [ecx]
xor edx, edx
test edi, edi
je 0x465b85
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x465b73
lea ebx, [ebx]
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x465b85
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x465b60
test eax, eax
je 0x465b85
and dword ds:[eax], 0xfffffffe
push 1
push 1
push eax
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
mov eax, dword [esi + 0x24]
test eax, eax
je 0x465bbc
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465bbc
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
je 0x465bb5
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465bbc
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
jne 0x465ba2
test edx, edx
je 0x465bbc
and dword [edx], 0xfffffffe
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x465bfa
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465bfa
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
je 0x465bf3
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465bfa
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
jne 0x465be0
test edx, edx
je 0x465bfa
and dword [edx], 0xfffffffe
xor edi, edi
lea esp, [esp]
push 0
push 1
push dword [esp + edi*4 + 0x20]
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
inc edi
cmp edi, 5
jb 0x465c00
mov edi, dword [ebp + 8]
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x465dce
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
je 0x465dce
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
je 0x465c59
inc ecx
lea eax, [eax + 4]
cmp ecx, edx
jae 0x465dce
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
jne 0x465c42
lea esp, [esp]
test esi, esi
je 0x465dce
cmp edi, 1
jne 0x465dcb
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ecx
mov edi, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp + 0x25], 1
test edi, edi
je 0x465ca4
mov ecx, edi
mov dword [esp + 0x14], ecx
jmp 0x465cb8
push eax
push 0x1000
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenProcess
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x465cce
cmp dword [0x62fbb0], 0x3e
jb 0x465cce
call fcn.0050a480
mov byte [esp + 0x24], al
lea eax, [esp + 0x18]
push eax
push 0x50a0c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, edi
test edi, edi
jne 0x465cf3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x465cf3
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x18]
cmovne ecx, eax
mov dword [0x638f5c], ecx
test ecx, ecx
je 0x465dcb
xor eax, eax
mov dword [esp + 0x30], 0x2c
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x38]
cmp eax, 6
jne 0x465d79
push 1
push 1
push 0x9c79
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x465da3
push 1
push 1
push 0x9c7a
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x465dce
push eax
push eax
push 0x9c78
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4
or dword [esi], 1
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058078f
mov esp, ebp
pop ebp
ret 4