Function at 0x465220
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 0x465255
push 1
push 1
push esi
call sym.SystemInformer.exe_PhSetFlagsAllEMenuItems
jmp 0x465877
cmp edi, 1
jne 0x46576b
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
test eax, eax
js 0x465269
jne 0x4652d6
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 0x4652d6
mov edi, dword ds:[ecx]
xor edx, edx
test edi, edi
je 0x4652d6
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x4652c5
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x4652d6
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x4652b2
test eax, eax
je 0x4652d6
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 0x4652f8
cmp dword [eax], 0
je 0x4652f8
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 0x465313
cmp dword [eax], 0
je 0x465313
push eax
call sym.SystemInformer.exe_PhDoesFileExist
test al, al
jne 0x465325
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 0x465365
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 0x465365
cmp dword [esp + 0x14], 0
je 0x465365
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 0x4653ac
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x46537f
cmp dword [eax], 0
jne 0x4653ac
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 0x4653bb
push 1
push 1
jmp 0x465406
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x465411
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 0x465411
test byte [esp + 0x1c], 1
je 0x465411
test byte ds:[esp + 0x20], 1
je 0x465411
push 2
push 2
push 0x9c72
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62dbb0], 0x3e
jae 0x465422
push 1
push 1
jmp 0x46544d
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
call fcn.0051da60
test al, al
je 0x465458
lea eax, ds:[esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x635d20]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x465458
push 2
push 2
push 0x9d79
push esi
call sym.SystemInformer.exe_PhSetFlagsEMenuItem
cmp dword [0x62dbb0], 0x72
nop
jae 0x4654dd
mov eax, dword [esi + 0x24]
test eax, eax
je 0x46549d
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46549d
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
je 0x465493
nop
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46549d
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c94
jne 0x465480
test edx, edx
je 0x46549d
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4654dd
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4654dd
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
je 0x4654d3
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4654dd
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c95
jne 0x4654c0
test edx, edx
je 0x4654dd
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x100
je 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], 0x9c48
je 0x465518
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x465525
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c48
jne 0x465505
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], 0x9c86
je 0x465555
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46555f
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c86
jne 0x465542
test edx, edx
je 0x46555f
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [ebx]
test dword [eax + 0x7c], 0x800
jne 0x4655df
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4655a5
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4655a5
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
je 0x46559a
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4655a5
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c49
jne 0x465587
test edx, edx
je 0x4655a5
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4655df
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x4655df
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
je 0x4655d5
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x4655df
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c87
jne 0x4655c2
test edx, edx
je 0x4655df
push edx
call sym.SystemInformer.exe_PhDestroyEMenuItem
cmp dword [0x62dbb0], 0x72
jb 0x46568d
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
test edi, edi
jle 0x46568d
call fcn.0051da00
mov edi, edi
test al, al
je 0x465653
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
push eax
push dword [0x635d1c]
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x465653
mov edi, dword ds:[esi + 0x24]
test edi, edi
je 0x46568d
mov edx, dword [edi]
xor eax, eax
test edx, edx
je 0x46568d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c94
je 0x465683
lea ebx, [ebx]
inc eax
cmp eax, edx
jae 0x46568d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c94
jne 0x465640
jmp 0x465683
mov edi, dword [esi + 0x24]
test edi, edi
je 0x46568d
mov edx, dword ds:[edi]
xor eax, eax
test edx, edx
je 0x46568d
mov edi, dword [edi + 8]
mov ecx, dword [edi]
cmp dword [ecx + 4], 0x9c95
je 0x465683
inc eax
cmp eax, edx
jae 0x46568d
mov ecx, dword [edi + eax*4]
cmp dword [ecx + 4], 0x9c95
jne 0x465672
test ecx, ecx
je 0x46568d
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 0x465742
cmp dword [0x635f50], 3
lea ecx, [esp + 0x14]
push ecx
jl 0x4656c7
mov edx, 8
mov ecx, eax
call fcn.00523b40
jmp 0x4656d7
push 8
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
je 0x465742
test eax, eax
js 0x465742
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 0x4656ff
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 0x465723
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 0x465742
test bl, bl
je 0x465751
push 2
push 2
jmp 0x465746
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.00464fc0
jmp 0x465874
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 0x4657e5
mov edi, dword [ecx]
xor edx, edx
test edi, edi
je 0x4657e5
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
je 0x4657d3
lea ebx, [ebx]
inc edx
lea ecx, [ecx + 4]
cmp edx, edi
jae 0x4657e5
mov eax, dword [ecx]
cmp dword [eax + 4], 0x9c69
jne 0x4657c0
test eax, eax
je 0x4657e5
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 0x46581c
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46581c
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
je 0x465815
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46581c
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c65
jne 0x465802
test edx, edx
je 0x46581c
and dword [edx], 0xfffffffe
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x46585a
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
je 0x46585a
mov eax, dword [eax + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
je 0x465853
lea ebx, [ebx]
inc ecx
lea eax, [eax + 4]
cmp ecx, edi
jae 0x46585a
mov edx, dword [eax]
cmp dword [edx + 4], 0x9c68
jne 0x465840
test edx, edx
je 0x46585a
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 0x465860
mov edi, dword [ebp + 8]
mov eax, dword ds:[esi + 0x24]
test eax, eax
je 0x465a2e
mov edx, dword [eax]
xor ecx, ecx
test edx, edx
je 0x465a2e
mov eax, dword [eax + 8]
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
je 0x4658b9
inc ecx
lea eax, [eax + 4]
cmp ecx, edx
jae 0x465a2e
mov esi, dword [eax]
cmp dword [esi + 4], 0x9c6a
jne 0x4658a2
lea esp, [esp]
test esi, esi
je 0x465a2e
cmp edi, 1
jne 0x465a2b
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 0x465904
mov ecx, edi
mov dword [esp + 0x14], ecx
jmp 0x465918
push eax
push 0x1000
lea eax, [esp + 0x1c]
push eax
call sym.SystemInformer.exe_PhOpenProcess
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x46592e
cmp dword [0x62dbb0], 0x3e
jb 0x46592e
call fcn.00509c80
mov byte [esp + 0x24], al
lea eax, [esp + 0x18]
push eax
push 0x5098c0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, edi
test edi, edi
jne 0x465953
mov eax, dword [esp + 0x14]
test eax, eax
je 0x465953
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 0x465a2b
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 0x4659d9
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.0057ee0f
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x465a03
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.0057ee0f
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jne 0x465a2e
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.0057ee0f
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.0057ee0f
mov esp, ebp
pop ebp
ret 4