Function at 0x4132e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xe04]
sub esp, 0xe04
push 0xffffffffffffffff
push 0x522ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0xe00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xe0c]
mov dword [ebp - 0x2c], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
push 0x535a4c
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.004290f0
test eax, eax
je 0x4133ae
call fcn.004290f0
cmp dword [eax], ebx
je 0x4133ae
cmp esi, ebx
je 0x4133ae
mov dword [esi], ebx
call fcn.004290f0
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.InstallingComponents
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413675
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x24]
push edx
push ebx
push ebx
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4133c4
mov dword [esi], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406150
xor eax, eax
jmp 0x4136bb
xor esi, esi
mov dword [ebp - 0x28], esi
cmp esi, dword [ebp - 0x24]
jge 0x413675
push 0x200
push ebx
lea ecx, [ebp + 0xa00]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x18], pe_nt_image_headers32
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 0xa00]
push eax
push esi
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41366a
push str.InstallOrder
lea edx, [ebp + 0xa00]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x41366d
push 0x535a4c
lea ecx, [ebp - 0x14]
call fcn.00405ec0
lea eax, [ebp + 0xa00]
push eax
push str.InstallingComponents
push 0x535a74
lea ecx, [ebp - 0x14]
push ecx
call fcn.004081a0
push 0x200
push ebx
lea edx, [ebp + 0x800]
push edx
call fcn.004fd670
add esp, 0x1c
push str.Class
mov eax, dword [ebp - 0x14]
push eax
call fcn.004290f0
push eax
mov eax, pe_nt_image_headers32
lea edx, [ebp + 0x800]
call fcn.004051f0
test eax, eax
jne 0x41366a
push str.Printer
lea ecx, [ebp + 0x800]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x41366a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x14]
call fcn.004290f0
push 4
push 4
lea edx, [ebp - 0x20]
push edx
push str.InstallNow
mov eax, dword [eax]
push eax
mov edx, esi
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x4134da
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x14]
call fcn.004290f0
push 4
push 4
lea ecx, [ebp - 0x18]
push ecx
push str.InstallStatus
mov edx, dword [eax]
push edx
mov edx, esi
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x413503
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x20], ebx
je 0x41366a
cmp dword [ebp - 0x18], 1
jne 0x41366a
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x200
push ebx
lea ecx, [ebp + 0xc00]
push ecx
call fcn.004fd670
add esp, 0x18
push str.Driver
mov edx, dword [ebp - 0x14]
push edx
call fcn.004290f0
push eax
mov eax, 0x400
lea edx, [ebp]
call fcn.004051f0
test eax, eax
je 0x41356c
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
push str.OEM_ID
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004290f0
push eax
mov eax, pe_nt_image_headers32
lea edx, [ebp + 0xc00]
call fcn.004051f0
test eax, eax
je 0x4135a4
push 0x200
push ebx
lea edx, [ebp + 0xc00]
push edx
call fcn.004fd670
add esp, 0xc
xor edi, edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x3200]
or ecx, dword [eax + 0x3204]
je 0x4135bd
mov edi, dword [eax + 0x3200]
mov esi, dword [ebp + 0xe10]
push esi
lea edx, [ebp]
push edx
lea ecx, [ebp + 0xc00]
call fcn.004136f0
test eax, eax
jne 0x41364c
cmp edi, 0x1111
je 0x413605
cmp edi, 0x1011
je 0x413605
cmp edi, 0x10
je 0x413605
cmp edi, 0x11
je 0x4135fa
cmp esi, 1
jne 0x413619
cmp edi, ebx
jne 0x413619
lea eax, [ebp + 0xc00]
push eax
xor ecx, ecx
jmp 0x413611
lea ecx, [ebp + 0xc00]
push ecx
mov ecx, 2
lea edx, [ebp]
call fcn.00413c80
push esi
push edi
lea edx, [ebp + 0xc00]
push edx
lea eax, [ebp]
push eax
push str.Success_to_update_configure_:___s___s__0x_04x___d___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x14
mov ecx, dword [ebp - 0x30]
mov dword [ecx], 1
mov esi, dword [ebp - 0x28]
add esi, 1
jmp 0x4133c6
push edi
lea edx, [ebp + 0xc00]
push edx
lea eax, [ebp]
push eax
push str.Fail_to_update_configure_:___s___s___d___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x10
mov esi, dword [ebp - 0x28]
add esi, 1
jmp 0x4133c6
mov dword [ebp - 4], ebx
jmp 0x41369b
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4136a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406150
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe00]
xor ecx, ebp
call fcn.004fa103
add ebp, 0xe04
mov esp, ebp
pop ebp
ret 8