Function at 0x462d80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xe04]
sub esp, 0xe04
push 0xffffffffffffffff
push 0x521a60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 edi, ecx
mov esi, edx
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x12], 1
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x20], ebx
push 0x535a4c
lea ecx, [ebp - 0x18]
call fcn.00405c00
mov dword [ebp - 4], ebx
push 0x535a4c
lea ecx, [ebp - 0x1c]
call fcn.00405c00
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x463085
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462e07
sub eax, edx
sar eax, 1
je 0x463085
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.InstallingComponents
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x463085
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 - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x463085
cmp dword [ebp - 0x24], ebx
je 0x463085
mov dword [ebp - 0x28], ebx
push 0x800
push ebx
lea ecx, [ebp]
push ecx
call fcn.004fd670
push 0x200
push ebx
lea edx, [ebp + 0xa00]
push edx
call fcn.004fd670
mov eax, dword [edi + 4]
push 1
push 0x200
lea ecx, [ebp + 0xa00]
push ecx
push str.Default_Printer
push eax
mov edx, str.InstallingComponents
call fcn.004920e0
add esp, 0x2c
test eax, eax
je 0x462ecb
push 0x200
push ebx
lea edx, [ebp + 0xa00]
push edx
call fcn.004fd670
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x38], esi
cmp esi, dword [ebp - 0x24]
jge 0x46300d
mov byte [ebp - 0x11], bl
push 0x200
push ebx
lea eax, [ebp + 0xc00]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x2c], pe_nt_image_headers32
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp + 0xc00]
push eax
push esi
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x463005
push str.InstallOrder
lea edx, [ebp + 0xc00]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x463005
lea eax, [ebp + 0xc00]
push eax
push str.InstallingComponents
push 0x535a74
lea ecx, [ebp - 0x18]
push ecx
call fcn.004081a0
push 0x200
push ebx
lea edx, [ebp + 0x800]
push edx
call fcn.004fd670
mov eax, dword [edi + 4]
push 1
push 0x200
lea ecx, [ebp + 0x800]
push ecx
push str.Class
push eax
mov edx, dword [ebp - 0x18]
call fcn.004920e0
add esp, 0x30
test eax, eax
jne 0x463005
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462f94
sub eax, edx
sar eax, 1
je 0x463005
push str.Printer
lea edx, [ebp + 0x800]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x463005
add dword [ebp - 0x28], 1
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x3ff
mov ecx, dword [ebp - 0x18]
push ecx
push 0x400
lea edx, [ebp]
push edx
call fcn.004fa71b
lea eax, [ebp + 0xa00]
push eax
lea ecx, [ebp + 0xc00]
push ecx
call fcn.004f9f1e
add esp, 0x24
test eax, eax
jne 0x463005
mov al, 1
jmp 0x463010
add esi, 1
jmp 0x462ecd
mov al, byte [ebp - 0x11]
mov esi, 1
cmp dword [ebp - 0x28], esi
je 0x46301e
cmp al, bl
je 0x463080
push 0x200
push ebx
lea edx, [ebp + 0xc00]
push edx
call fcn.004fd670
mov eax, dword [edi + 4]
push esi
push 0x200
lea ecx, [ebp + 0xc00]
push ecx
push str.Printer
push eax
lea edx, [ebp]
call fcn.004920e0
add esp, 0x20
test eax, eax
jne 0x463080
push ebx
push str.Printer
lea edx, [ebp]
push edx
mov eax, dword [edi + 4]
push eax
mov edi, dword [ebp - 0x30]
mov ecx, edi
call fcn.00419c20
push edi
push str.Set_Printer_Name_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x18
mov dword [ebp - 4], esi
jmp 0x4630c8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00406150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406150
xor al, al
jmp 0x4630e5
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00406150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00406150
mov al, byte [ebp - 0x12]
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