Function at 0x4651a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x62e040]
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 0x4651d5
push 1
push 1
push esi
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
jmp 0x4657f7
cmp edi, 1
jne 0x4656eb
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
test eax, eax
js 0x4651e9
jne 0x465256
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 0x465256
mov edi, dword ds:[ecx]
xor edx, edx
test edi, edi
je 0x465256
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x465245
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x465256
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x465232
test eax, eax
je 0x465256
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 0x465278
cmp dword [eax], 0
je 0x465278
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 0x465293
cmp dword [eax], 0
je 0x465293
push eax
call sym.SystemInformer.exe_PhDoesFileExist
test al, al
jne 0x4652a5
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 0x4652e5
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 0x4652e5
cmp dword [esp + 0x14], 0
je 0x4652e5
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 0x46532c
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4652ff
cmp dword [eax], 0
jne 0x46532c
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 [0x62ebb0], 0x69
jae 0x46533b
push 1
push 1
jmp 0x465386
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x465391
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 0x465391
test byte [esp + 0x1c], 1
je 0x465391
test byte ds:[esp + 0x20], 1
je 0x465391
push 2
push 2
push 0x9c72
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62ebb0], 0x3e
jae 0x4653a2
push 1
push 1
jmp 0x4653cd
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
call fcn.0051e5e0
test al, al
je 0x4653d8
lea eax, ds:[esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x636c5c]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x4653d8
push 2
push 2
push 0x9d79
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62ebb0], 0x72
nop
jae 0x46545d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46541d
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46541d
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
je 0x465413
nop
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46541d
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
jne 0x465400
test edx, edx
je 0x46541d
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46545d
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46545d
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
je 0x465453
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46545d
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
jne 0x465440
test edx, edx
je 0x46545d
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x100
je 0x4654df
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4654a5
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4654a5
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
je 0x465498
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4654a5
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
jne 0x465485
test edx, edx
je 0x4654a5
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4654df
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4654df
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
je 0x4654d5
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4654df
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
jne 0x4654c2
test edx, edx
je 0x4654df
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x800
jne 0x46555f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x465525
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x465525
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
je 0x46551a
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465525
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
jne 0x465507
test edx, edx
je 0x465525
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46555f
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46555f
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
je 0x465555
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46555f
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
jne 0x465542
test edx, edx
je 0x46555f
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
cmp dword [0x62ebb0], 0x72
jb 0x46560d
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
test edi, edi
jle 0x46560d
call fcn.0051e580
mov edi, edi
test al, al
je 0x4655d3
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x636c58]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x4655d3
mov edi, dword ds:[esi + 0x24]
test edi, edi
je 0x46560d
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x46560d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c94
je 0x465603
lea ebx, [ebx]
inc eax
cmp eax, edx
jae 0x46560d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c94
jne 0x4655c0
jmp 0x465603
mov edi, dword [esi + 0x24]
test edi, edi
je 0x46560d
mov edx, dword ds:[edi]
xor eax, eax
test edx, edx
je 0x46560d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c95
je 0x465603
inc eax
cmp eax, edx
jae 0x46560d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c95
jne 0x4655f2
test ecx, ecx
je 0x46560d
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 0x4656c2
cmp dword [0x636e88], 3
lea ecx, [esp + 0x14]
push ecx
jl 0x465647
mov edx, 8
mov ecx, eax
call fcn.005246c0
jmp 0x465657
push 8
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x4656c2
test eax, eax
js 0x4656c2
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 0x46567f
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 0x4656a3
cmp dword [esp + 0x2c], 0
setne bl
push dword [esp + 0x14]
mov byte [0x637f60], bl
call dword [sym.imp.ntdll.dll_NtClose]
test bh, bh
je 0x4656c2
test bl, bl
je 0x4656d1
push 2
push 2
jmp 0x4656c6
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.00464f40
jmp 0x4657f4
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 0x465765
mov edi, dword [ecx]
xor edx, edx
test edi, edi
je 0x465765
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x465753
lea ebx, [ebx]
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x465765
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x465740
test eax, eax
je 0x465765
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 0x46579c
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46579c
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
je 0x465795
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46579c
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
jne 0x465782
test edx, edx
je 0x46579c
and dword [edx], 0xfffffffe
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x4657da
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4657da
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
je 0x4657d3
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4657da
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
jne 0x4657c0
test edx, edx
je 0x4657da
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 0x4657e0
mov edi, dword [ebp + 8]
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x4659ae
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
je 0x4659ae
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
je 0x465839
inc ecx
lea eax, [eax + 4]
cmp ecx, edx
jae 0x4659ae
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
jne 0x465822
lea esp, [esp]
test esi, esi
je 0x4659ae
cmp edi, 1
jne 0x4659ab
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 0x465884
mov ecx, edi
mov dword [esp + 0x14], ecx
jmp 0x465898
push eax
push 0x1000
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenProcess
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4658ae
cmp dword [0x62ebb0], 0x3e
jb 0x4658ae
call fcn.0050a060
mov byte [esp + 0x24], al
lea eax, [esp + 0x18]
push eax
push 0x509ca0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, edi
test edi, edi
jne 0x4658d3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4658d3
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 [0x637f5c], ecx
test ecx, ecx
je 0x4659ab
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 0x465959
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.005802ef
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x465983
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.005802ef
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x4659ae
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.005802ef
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.005802ef
mov esp, ebp
pop ebp
ret 4