Function at 0x10017220
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
lea ebp, [esp - 0x354]
sub esp, 0x354
push 0xffffffffffffffff
push 0x1003a076
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp + 0x350], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 0x320]
push 0x10004940
push 0x10008b20
push 6
push 8
push eax
call fcn.100252a6
mov byte [ebp - 4], 1
lea eax, [ebp]
push 0x10004940
push 0x10008b20
push 0x64
push 8
push eax
call fcn.100252a6
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
mov ecx, dword [ebp + 0x35c]
mov edx, str.CustomActionData
push eax
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
call fcn.10010bc0
push ecx
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp + 0x320]
call fcn.10017770
mov ecx, dword [ebp + 0x334]
add esp, 0xc
test ecx, ecx
je 0x100172fc
call fcn.10017aa0
mov ecx, dword [ebp + 0x33c]
test ecx, ecx
je 0x1001730b
call fcn.10017aa0
mov ecx, dword [ebp + 0x344]
test ecx, ecx
je 0x1001731a
call fcn.10017aa0
mov ecx, dword [ebp + 0x334]
lea eax, [ebp + 0x330]
push eax
push 0x10046970
mov edx, 0x1004cc24
call fcn.1000f460
mov esi, dword [ebp + 0x334]
add esp, 8
xor ecx, ecx
test esi, esi
je 0x1001736a
movzx eax, word [esi]
xor edx, edx
test ax, ax
je 0x1001736a
mov edi, eax
cmp di, 0x2c
lea eax, [ecx + 1]
movzx edi, word [esi + edx*2 + 2]
lea edx, [edx + 1]
cmovne eax, ecx
mov ecx, eax
test di, di
jne 0x10017351
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10017516
cmp word [esi], 0
je 0x10017516
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 3
xor ecx, ecx
mov eax, esi
cmp word [esi], cx
je 0x100173aa
nop dword [eax]
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100173a0
lea edi, [ecx + 1]
mov edx, 2
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x3c], edi
lea ecx, [ebp + 4]
mov ebx, eax
mov dword [ebp - 0x10], ecx
xor edi, edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], edi
nop
movzx eax, word [esi]
cmp eax, 0x2c
je 0x100173ed
test ax, ax
jne 0x1001746b
xor eax, eax
mov word [ebx + edi*2], ax
mov eax, dword [ecx]
test eax, eax
je 0x10017403
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edx, 2
mov dword [ecx], 0
mov dword [ecx - 4], 0
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
push edi
mov dword [ecx - 4], edx
mov edx, ebx
mov dword [ecx], eax
mov ecx, eax
call fcn.10007d70
mov ecx, dword [ebp - 0x10]
xor edx, edx
add esp, 4
mov eax, dword [ecx]
add ecx, 8
mov dword [ebp - 0x10], ecx
mov word [eax + edi*2], dx
xor edi, edi
mov edx, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x20], edx
cmp edx, dword [ebp - 0x14]
jge 0x10017481
movzx eax, word [esi]
test ax, ax
je 0x10017481
cmp ax, 0x2c
je 0x10017479
movzx eax, ax
mov word [ebx + edi*2], ax
inc edi
add esi, 2
jmp 0x100173e0
mov byte [ebp - 4], 2
test ebx, ebx
je 0x10017493
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], eax
test edx, edx
jle 0x10017516
mov ebx, dword [ebp + eax*8 + 4]
xor esi, esi
mov eax, ebx
cmp word [eax], si
je 0x100174ba
nop
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x100174b0
xor ecx, ecx
mov edi, str.MB_ABORTRETRYIGNORE
mov dword [ebp - 0x10], ecx
xor eax, eax
test esi, esi
jle 0x100174e8
mov edx, edi
nop dword [eax]
mov cx, word [ebx + eax*2]
cmp cx, word [edx]
jne 0x1001772e
inc eax
add edx, 2
cmp eax, esi
jl 0x100174d0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x1001750a
lea eax, [ecx*8]
mov dword [ebp - 0x24], 0
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
or ecx, dword [eax*8 + 0x1004ce14]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x20]
jl 0x100174a2
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
cmove ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 4
mov dword [ebp - 0x24], ebx
jle 0x10017606
mov ecx, dword [ebp + 0x344]
lea edx, [ebp - 0x14]
push 0xa
mov dword [ebp - 0x14], 0xffffffff
call fcn.1000fd60
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10017606
lea eax, [ebp - 0x1c]
push eax
push 0x100171d0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x1c], esi
jne 0x10017606
push 1
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 5
push 0
push 1
push edi
call dword [sym.imp.msi.dll_MsiRecordSetStringW]
mov ebx, dword [ebp + 0x35c]
mov esi, dword [sym.imp.msi.dll_MsiProvideComponentW]
push edi
push 0x4200000
push ebx
call esi
push edi
push 0x4300000
xor eax, 1
push ebx
mov dword [ebp - 0x28], eax
call esi
push edi
push 0x4400000
xor eax, 1
push ebx
mov dword [ebp - 0x14], eax
call esi
push edi
push 0x4500000
push dword [ebp + 0x35c]
mov ebx, eax
xor ebx, 1
call esi
xor eax, 1
movzx esi, al
shl esi, 8
movzx eax, bl
or esi, eax
mov eax, dword [ebp - 0x14]
shl esi, 8
movzx eax, al
or esi, eax
mov eax, dword [ebp - 0x28]
shl esi, 8
movzx eax, al
or esi, eax
mov byte [ebp - 4], 2
test edi, edi
je 0x10017600
push edi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 0x324], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
jne 0x10017630
push 2
push 0x40
call esi
xor ecx, ecx
mov dword [ebp + 0x320], 0xffffffff
mov dword [ebp + 0x324], eax
mov word [eax], cx
mov eax, dword [ebp + 0x32c]
test eax, eax
jne 0x1001765b
push 2
push 0x40
call esi
mov dword [ebp + 0x32c], eax
xor ecx, ecx
mov dword [ebp + 0x328], 0xffffffff
mov word [eax], cx
mov eax, dword [ebp + 0x32c]
push ebx
push eax
push dword [ebp + 0x324]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x14], eax
xor esi, esi
mov edx, 0x1004cc28
xor ecx, ecx
nop dword [eax + eax]
mov eax, dword [ebp + ecx*4 - 0x14]
cmp eax, dword [edx]
jne 0x10017747
inc ecx
add edx, 4
cmp ecx, 1
jl 0x10017680
cmp esi, 0xffffffff
je 0x100176b5
imul eax, esi, 0x2c
add eax, str.IDABORT
push eax
push dword [ebp + 0x33c]
push dword [ebp + 0x35c]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 1
lea eax, [ebp]
push 0x10004940
push 0x64
push 8
push eax
call fcn.10025191
mov byte [ebp - 4], 0
lea eax, [ebp + 0x320]
push 0x10004940
push 6
push 8
push eax
call fcn.10025191
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100176f9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x350]
xor ecx, ebp
call fcn.10024a34
lea esp, [ebp + 0x354]
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
add edi, 0x38
inc ecx
mov dword [ebp - 0x10], ecx
cmp word [edi], 0
jne 0x100174c4
jmp 0x1001750a
inc esi
imul eax, esi, 0x2c
cmp dword [eax + 0x1004cc28], 0
lea edx, [eax + 0x1004cc28]
jne 0x10017676
jmp 0x100176b5