Function at 0x414000
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x604]
sub esp, 0x604
push 0xffffffffffffffff
push 0x522e98
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 esi, ecx
mov ebx, edx
mov dword [ebp - 0x2c], ebx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
push 0x535a4c
lea ecx, [ebp - 0x14]
call fcn.00405c00
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
cmp ebx, edi
je 0x414300
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414075
sub eax, edx
sar eax, 1
je 0x414300
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.InstallingComponents
mov ecx, dword [esi + 0x320c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4142fb
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x28]
push edx
push edi
push edi
push edi
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x414300
xor ebx, ebx
mov dword [ebp - 0x30], ebx
cmp ebx, dword [ebp - 0x28]
jge 0x4142fb
push 0x200
push edi
lea ecx, [ebp + 0x200]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x18], pe_nt_image_headers32
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp + 0x200]
push eax
push ebx
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4142f3
push str.InstallOrder
lea edx, [ebp + 0x200]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x4142f3
push 0x535a4c
lea ecx, [ebp - 0x14]
call fcn.00405ec0
lea eax, [ebp + 0x200]
push eax
push str.InstallingComponents
push 0x535a74
lea ecx, [ebp - 0x14]
push ecx
call fcn.004081a0
push 0x200
push edi
lea edx, [ebp]
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]
call fcn.004051f0
test eax, eax
jne 0x4142f3
push str.Printer
lea ecx, [ebp]
push ecx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x4142f3
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
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 0x4141df
mov dword [ebp - 0x20], edi
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 0x414208
mov dword [ebp - 0x18], edi
push 0x200
push edi
lea eax, [ebp + 0x400]
push eax
call fcn.004fd670
add esp, 0xc
push str.Driver
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004290f0
push eax
mov eax, pe_nt_image_headers32
lea edx, [ebp + 0x400]
call fcn.004051f0
test eax, eax
je 0x414255
push 0x200
push edi
lea edx, [ebp + 0x400]
push edx
call fcn.004fd670
add esp, 0xc
cmp dword [ebp - 0x20], edi
je 0x4142f3
mov esi, 1
cmp dword [ebp - 0x18], esi
jne 0x4142f3
lea eax, [ebp + 0x400]
push eax
push str.Driver_Name_to_set_Duplex_:___s_
mov ecx, 0x649e50
call fcn.004918f0
push str.Duplex_On
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f9f1e
add esp, 0x10
push 2
lea ecx, [ebp + 0x400]
test eax, eax
jne 0x4142ce
push 2
call fcn.00414380
push 8
push 2
lea ecx, [ebp + 0x400]
call fcn.00414380
push 9
push 2
lea ecx, [ebp + 0x400]
call fcn.00414380
mov dword [ebp - 0x24], esi
add ebx, esi
jmp 0x4140d4
push esi
call fcn.00414380
push 8
push esi
lea ecx, [ebp + 0x400]
call fcn.00414380
push 9
push esi
lea ecx, [ebp + 0x400]
call fcn.00414380
mov dword [ebp - 0x24], esi
add ebx, 1
jmp 0x4140d4
mov dword [ebp - 4], edi
jmp 0x414334
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406150
xor eax, eax
jmp 0x414354
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x414342
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 - 0x24]
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