Function at 0x4629b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xe04]
sub esp, 0xe04
push 0xffffffffffffffff
push 0x521aa0
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 esi, ecx
mov edi, edx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x12], 1
xor ebx, ebx
mov dword [ebp - 0x24], 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 - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x462cfa
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462a34
sub eax, edx
sar eax, 1
je 0x462cfa
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.InstallingComponents
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x462cfa
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push ebx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x462cfa
cmp dword [ebp - 0x2c], ebx
je 0x462cfa
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 [esi + 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 0x462af8
push 0x200
push ebx
lea edx, [ebp + 0xa00]
push edx
call fcn.004fd670
add esp, 0xc
mov byte [ebp - 0x11], bl
xor edi, edi
mov dword [ebp - 0x34], edi
cmp edi, dword [ebp - 0x2c]
jge 0x462c42
push 0x200
push ebx
lea eax, [ebp + 0xc00]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x30], pe_nt_image_headers32
lea ecx, [ebp - 0x40]
push ecx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp + 0xc00]
push eax
push edi
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x462cf2
push str.InstallOrder
lea edx, [ebp + 0xc00]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
je 0x462cf2
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 [esi + 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 0x462cf2
lea eax, [ebp + 0x800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462bc5
sub eax, edx
sar eax, 1
je 0x462cf2
push str.Printer
lea edx, [ebp + 0x800]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x462cf2
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 0x462cf2
mov byte [ebp - 0x11], 1
mov edi, 1
cmp dword [ebp - 0x28], edi
je 0x462c55
cmp byte [ebp - 0x11], bl
je 0x462ced
push 0x200
push ebx
lea edx, [ebp + 0xc00]
push edx
call fcn.004fd670
mov eax, dword [esi + 4]
push edi
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 0x462ced
lea eax, [ebp + 0xc00]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x462c95
sub eax, edx
sar eax, 1
je 0x462ced
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 4]
push ebx
push 4
push 4
push str.Share
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp]
call fcn.004924c0
push ebx
push str.Share_Name
lea edx, [ebp]
push edx
mov eax, dword [esi + 4]
push eax
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.00419c20
push esi
push str.Set_Printer_Name_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 0x2c
mov dword [ebp - 4], edi
jmp 0x462d3d
add edi, 1
jmp 0x462afd
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 0x462d5a
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