Function at 0x10046c50
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x1006c2d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x45c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov ebx, dword [ebp + 0x468]
xor edi, edi
push eax
push 0x10093cf4
push 0x1009666c
mov dword [ebp - 0x14], edi
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea edx, [edi + 2]
cmp eax, 0xea
jne 0x10046d04
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc esi
mov eax, esi
mov dword [ebp - 0x10], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x1009666c
mov dword [ebp - 0x14], edi
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], 0
push eax
mov edx, edi
mov ecx, ebx
call fcn.10046a90
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
xor esi, esi
mov eax, edi
cmp word [edi], si
je 0x10046d4b
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x10046d41
inc esi
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
movzx ecx, word [edi]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov eax, ecx
mov dword [ebp - 0x20], esi
mov edx, ebx
test cx, cx
je 0x10046d8f
mov ecx, edi
sub ecx, ebx
nop
mov word [edx], ax
add edx, 2
movzx eax, word [ecx + edx]
test ax, ax
jne 0x10046d80
xor eax, eax
push eax
push 2
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x2c], 0x10094084
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 2
lea eax, [ebp]
push 0x22c
push 0
push eax
call fcn.1004f160
push 0
lea eax, [ebp]
push 0x22c
push eax
call fcn.1002d1b0
add esp, 0x18
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10046e18
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 0x10094084
test edi, edi
je 0x10046e06
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10046f55
push ebx
jmp 0x10046f4f
xor esi, esi
nop word [eax + eax]
push ebx
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10046e3a
mov eax, dword [ebp + 8]
mov dword [ebp + esi*4 + 0x22c], eax
inc esi
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x10046e4e
cmp esi, 0xa
jl 0x10046e20
push 0x19970
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x1996c], 0
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 8], ecx
test esi, esi
jle 0x10046e9a
mov eax, dword [ebp + ebx*4 + 0x22c]
push edi
push 0x10046970
mov dword [edi], eax
call dword [sym.imp.USER32.dll_EnumWindows]
inc ebx
cmp ebx, esi
jl 0x10046e80
xor ebx, ebx
cmp dword [edi + 0x1996c], ebx
jbe 0x10046f11
lea esi, [edi + 0xc]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10046f02
push 0
push 0
push 0x10
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x10046f02
xor eax, eax
mov word [ebp + 0x254], ax
lea eax, [ebp + 0x254]
push str.Closing_window
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp + 0x468]
lea ecx, [ebp + 0x254]
call fcn.1002f020
inc ebx
add esi, 0x20c
cmp ebx, dword [edi + 0x1996c]
jb 0x10046ea7
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0x10094084
test eax, eax
je 0x10046f43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10046f55
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
call fcn.1004d40a
lea esp, [ebp + 0x460]
pop ebp
ret 4