Function at 0x40f200
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x604]
sub esp, 0x604
push 0xffffffffffffffff
push 0x522fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x600], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov eax, dword [ebp + 0x60c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
push 0x535a4c
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov dword [ebp - 4], esi
mov byte [ebp - 4], 1
push esi
lea edx, [ebp - 0x1c]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.InstallingComponents
mov eax, dword [edi + 0x320c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f4cf
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x28]
push ecx
push esi
push esi
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40f2c9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406150
xor eax, eax
jmp 0x40f515
xor ebx, ebx
mov dword [ebp - 0x34], ebx
cmp ebx, dword [ebp - 0x28]
jge 0x40f4cf
push 0x200
push esi
lea eax, [ebp + 0x400]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x18], pe_nt_image_headers32
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp + 0x400]
push edx
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40f4c7
push str.InstallOrder
lea ecx, [ebp + 0x400]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x40f4c7
push 0x535a4c
lea ecx, [ebp - 0x14]
call fcn.00405ec0
lea edx, [ebp + 0x400]
push edx
push str.InstallingComponents
push 0x535a74
lea eax, [ebp - 0x14]
push eax
call fcn.004081a0
push 0x200
push esi
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0x1c
push str.Class
mov edx, dword [ebp - 0x14]
push edx
call fcn.004290f0
push eax
mov eax, pe_nt_image_headers32
lea edx, [ebp]
call fcn.004051f0
test eax, eax
jne 0x40f4c7
push str.Printer
lea eax, [ebp]
push eax
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x40f4c7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x14]
call fcn.004290f0
push 4
push 4
lea ecx, [ebp - 0x20]
push ecx
push str.InstallNow
mov edx, dword [eax]
push edx
mov edx, edi
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x40f3d6
mov dword [ebp - 0x20], esi
mov edi, 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, edi
call fcn.004920e0
add esp, 0x14
test eax, eax
je 0x40f3ff
mov dword [ebp - 0x18], esi
push str.Driver
mov eax, dword [ebp - 0x14]
push eax
call fcn.004290f0
push eax
mov eax, pe_nt_image_headers32
lea edx, [ebp + 0x200]
call fcn.004051f0
test eax, eax
je 0x40f437
push 0x200
push esi
lea ecx, [ebp + 0x200]
push ecx
call fcn.004fd670
add esp, 0xc
cmp dword [ebp - 0x20], esi
je 0x40f4c7
cmp dword [ebp - 0x18], 1
jne 0x40f4c7
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x40f46c
mov eax, dword [ebp + 0x610]
cmp eax, esi
je 0x40f46c
lea edx, [ebp + 0x400]
push edx
push eax
push ecx
call fcn.004fa94e
add esp, 0xc
xor eax, eax
cmp eax, esi
je 0x40f4a4
cmp eax, esi
je 0x40f4a4
lea eax, [ebp + 0x200]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40f480
sub eax, edx
sar eax, 1
je 0x40f4a4
lea eax, [ebp + 0x200]
push eax
xor eax, eax
push eax
push eax
call fcn.004fa94e
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x40f4b1
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406150
mov eax, 1
jmp 0x40f515
add ebx, 1
jmp 0x40f2cb
mov dword [ebp - 4], esi
jmp 0x40f4f5
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x40f503
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 - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x600]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x604
mov esp, ebp
pop ebp
ret 8