Function at 0x46c260
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554a3c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd0
mov eax, dword [0x5d8024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xc4], eax
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
call fcn.00471b70
mov eax, dword [ebp - 0xc4]
push 1
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
xor esi, esi
mov dword [ebp - 0xcc], eax
push 3
xor eax, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x44]
push 0x58d8c8
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00407c60
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
mov edx, 0x130
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
mov dword [ebp - 0xc8], eax
push edi
push 4
lea eax, [ecx - 0x5c]
cmove eax, edx
push 0x110a
mov dword [ebp - 0xe0], eax
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x46c539
push 5
push str.Child
lea ecx, [ebp - 0x44]
call fcn.00408620
push 4
push str.Cost
lea ecx, [ebp - 0x44]
call fcn.00408620
cmp dword [ebp - 0xcc], edi
mov edx, 0x58d8e4
mov eax, 0x58d8dc
cmovl edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c390
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00408620
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00465e60
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x46c3ee
mov ecx, eax
call fcn.00407f30
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407f30
push 1
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
cmp dword [ebp - 0x18], 8
mov edi, eax
mov esi, dword [sym.imp.msi.dll_MsiReinstallFeatureW]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
push edi
call esi
push dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x5c]
push eax
call fcn.0046d070
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x46c43c
mov eax, dword [eax]
push eax
push 1
push edi
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407f30
mov esi, dword [ebp - 0xc4]
mov ecx, dword [esi]
lea edx, [ebp - 0x74]
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov byte [ebp - 4], 7
sub esp, 0x18
mov edi, dword [esi + 4]
mov ecx, esp
mov dword [ebp - 0xd0], esp
mov eax, dword [edi]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov esi, dword [eax + 8]
xor eax, eax
push eax
push 0x585748
mov word [ecx], ax
call fcn.00407c60
mov byte [ebp - 4], 8
sub esp, 0x18
lea eax, [ebp - 0x74]
mov dword [ebp - 0xd8], esp
mov ecx, esp
push eax
call fcn.00406c50
mov byte [ebp - 4], 9
push 0x7e3
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc0]
call fcn.004df8b0
mov byte [ebp - 4], 0xa
mov ecx, edi
push eax
call esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xa4]
call fcn.00407f30
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.00407f30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.00407f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407f30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00407f30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00521dac
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
mov esi, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xe0]
inc esi
push edi
mov dword [ebp - 0xd8], esi
call fcn.00452b80
mov esi, eax
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xd0]
push eax
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
mov eax, dword [ebp - 0xc4]
push 1
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
add dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xdc]
cmp eax, 0xffffffff
cmove eax, dword [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
cmp eax, 3
je 0x46c5a7
cmp eax, 1
je 0x46c5a7
cmp eax, 4
jne 0x46c5b6
mov esi, dword [ebp - 0xd4]
inc esi
mov dword [ebp - 0xd4], esi
jmp 0x46c5bc
mov esi, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xe0]
push edi
push 1
push 0x110a
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test edi, edi
jne 0x46c533
push 6
push str.Parent
lea ecx, [ebp - 0x44]
call fcn.00408620
push 4
push str.Cost
lea ecx, [ebp - 0x44]
call fcn.00408620
cmp dword [ebp - 0xcc], 0
mov edi, 0x58d8e4
mov eax, 0x58d8dc
mov edx, edi
cmovl edx, eax
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xd0], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c620
sub ecx, dword [ebp - 0xd0]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00408620
cmp dword [ebp - 0xc8], 0
mov eax, 0x58d8dc
cmovl edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c651
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.00408620
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00465e60
mov edi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x46c6af
mov ecx, eax
call fcn.00407f30
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407f30
push 4
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
push 0
push edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x5c]
push eax
call fcn.0046d070
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x46c6fb
mov eax, dword [eax]
push eax
push 1
push edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407f30
push esi
mov esi, dword [sym.imp.msi.dll_MsiRecordSetStringW]
push 2
push edi
call esi
push dword [ebp - 0xd8]
push 3
push edi
call esi
push dword [ebp - 0xc8]
mov esi, dword [ebp - 0xc4]
lea eax, [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.0046d070
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x46c74b
mov eax, dword [eax]
push eax
push 4
push edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00407f30
jmp 0x46c454