Function at 0x465420
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x62d040]
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 0x465455
push 1
push 1
push esi
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
jmp 0x465a77
cmp edi, 1
jne 0x46596b
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
test eax, eax
js 0x465469
jne 0x4654d6
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 0x4654d6
mov edi, dword ds:[ecx]
xor edx, edx
test edi, edi
je 0x4654d6
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x4654c5
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x4654d6
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x4654b2
test eax, eax
je 0x4654d6
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 0x4654f8
cmp dword [eax], 0
je 0x4654f8
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 0x465513
cmp dword [eax], 0
je 0x465513
push eax
call sym.SystemInformer.exe_PhDoesFileExist
test al, al
jne 0x465525
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 0x465565
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 0x465565
cmp dword [esp + 0x14], 0
je 0x465565
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 0x4655ac
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x46557f
cmp dword [eax], 0
jne 0x4655ac
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 [0x62dbb0], 0x69
jae 0x4655bb
push 1
push 1
jmp 0x465606
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x465611
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 0x465611
test byte [esp + 0x1c], 1
je 0x465611
test byte ds:[esp + 0x20], 1
je 0x465611
push 2
push 2
push 0x9c72
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62dbb0], 0x3e
jae 0x465622
push 1
push 1
jmp 0x46564d
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
call fcn.0051d5c0
test al, al
je 0x465658
lea eax, ds:[esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x635d20]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x465658
push 2
push 2
push 0x9d79
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62dbb0], 0x72
nop
jae 0x4656dd
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46569d
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46569d
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
je 0x465693
nop
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46569d
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
jne 0x465680
test edx, edx
je 0x46569d
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4656dd
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4656dd
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
je 0x4656d3
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4656dd
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
jne 0x4656c0
test edx, edx
je 0x4656dd
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x100
je 0x46575f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x465725
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465725
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
je 0x465718
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465725
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
jne 0x465705
test edx, edx
je 0x465725
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46575f
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46575f
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
je 0x465755
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46575f
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
jne 0x465742
test edx, edx
je 0x46575f
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x800
jne 0x4657df
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4657a5
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4657a5
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
je 0x46579a
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4657a5
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
jne 0x465787
test edx, edx
je 0x4657a5
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4657df
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4657df
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
je 0x4657d5
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4657df
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
jne 0x4657c2
test edx, edx
je 0x4657df
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
cmp dword [0x62dbb0], 0x72
jb 0x46588d
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
test edi, edi
jle 0x46588d
call fcn.0051d560
mov edi, edi
test al, al
je 0x465853
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x635d1c]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x465853
mov edi, dword ds:[esi + 0x24]
test edi, edi
je 0x46588d
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x46588d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c94
je 0x465883
lea ebx, [ebx]
inc eax
cmp eax, edx
jae 0x46588d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c94
jne 0x465840
jmp 0x465883
mov edi, dword [esi + 0x24]
test edi, edi
je 0x46588d
mov edx, dword ds:[edi]
xor eax, eax
test edx, edx
je 0x46588d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c95
je 0x465883
inc eax
cmp eax, edx
jae 0x46588d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c95
jne 0x465872
test ecx, ecx
je 0x46588d
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 0x465942
cmp dword [0x635f50], 3
lea ecx, [esp + 0x14]
push ecx
jl 0x4658c7
mov edx, 8
mov ecx, eax
call fcn.00523600
jmp 0x4658d7
push 8
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x465942
test eax, eax
js 0x465942
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 0x4658ff
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 0x465923
cmp dword [esp + 0x2c], 0
setne bl
push dword [esp + 0x14]
mov byte [0x637040], bl
call dword [sym.imp.ntdll.dll_NtClose]
test bh, bh
je 0x465942
test bl, bl
je 0x465951
push 2
push 2
jmp 0x465946
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.004651c0
jmp 0x465a74
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 0x4659e5
mov edi, dword [ecx]
xor edx, edx
test edi, edi
je 0x4659e5
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x4659d3
lea ebx, [ebx]
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x4659e5
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x4659c0
test eax, eax
je 0x4659e5
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 0x465a1c
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465a1c
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
je 0x465a15
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465a1c
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
jne 0x465a02
test edx, edx
je 0x465a1c
and dword [edx], 0xfffffffe
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x465a5a
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465a5a
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
je 0x465a53
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465a5a
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
jne 0x465a40
test edx, edx
je 0x465a5a
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 0x465a60
mov edi, dword [ebp + 8]
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x465c2e
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
je 0x465c2e
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
je 0x465ab9
inc ecx
lea eax, [eax + 4]
cmp ecx, edx
jae 0x465c2e
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
jne 0x465aa2
lea esp, [esp]
test esi, esi
je 0x465c2e
cmp edi, 1
jne 0x465c2b
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 0x465b04
mov ecx, edi
mov dword [esp + 0x14], ecx
jmp 0x465b18
push eax
push 0x1000
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenProcess
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x465b2e
cmp dword [0x62dbb0], 0x3e
jb 0x465b2e
call fcn.00509c00
mov byte [esp + 0x24], al
lea eax, [esp + 0x18]
push eax
push 0x509840
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, edi
test edi, edi
jne 0x465b53
mov eax, dword [esp + 0x14]
test eax, eax
je 0x465b53
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 [0x63703c], ecx
test ecx, ecx
je 0x465c2b
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 0x465bd9
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.0057e94f
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x465c03
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.0057e94f
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x465c2e
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.0057e94f
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.0057e94f
mov esp, ebp
pop ebp
ret 4