Function at 0x1004ce30
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x460
push 0xffffffffffffffff
push 0x1007b4c5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100c0040]
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 0x100a416c
push 0x100a6c10
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 0x1004cee4
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 0x100a6c10
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.1004cc70
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 0x1004cf2b
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x1004cf21
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 0x1004cf6f
mov ecx, edi
sub ecx, ebx
nop
mov word [edx], ax
add edx, 2
movzx eax, word [ecx + edx]
test ax, ax
jne 0x1004cf60
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], 0x100a46cc
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.10055bd0
push 0
lea eax, [ebp]
push 0x22c
push eax
call fcn.10033390
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 0x1004cff8
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 0x100a46cc
test edi, edi
je 0x1004cfe6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x1004d135
push ebx
jmp 0x1004d12f
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 0x1004d01a
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 0x1004d02e
cmp esi, 0xa
jl 0x1004d000
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 0x1004d07a
mov eax, dword [ebp + ebx*4 + 0x22c]
push edi
push 0x1004cb50
mov dword [edi], eax
call dword [sym.imp.USER32.dll_EnumWindows]
inc ebx
cmp ebx, esi
jl 0x1004d060
xor ebx, ebx
cmp dword [edi + 0x1996c], ebx
jbe 0x1004d0f1
lea esi, [edi + 0xc]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004d0e2
push 0
push 0
push 0x10
push dword [esi]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x1004d0e2
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.10035200
inc ebx
add esi, 0x20c
cmp ebx, dword [edi + 0x1996c]
jb 0x1004d087
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], 0x100a46cc
test eax, eax
je 0x1004d123
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 0x1004d135
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.10053e7d
lea esp, [ebp + 0x460]
pop ebp
ret 4