Function at 0x100074a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x250
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
test ecx, ecx
je 0x100074e1
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100074f1
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10007501
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp edi, 1
je 0x100077a5
test edi, 4
je 0x10007528
test byte [0x1001a0b8], 8
jne 0x100077b0
and edi, 0xfffffffb
je 0x10007798
test edi, 0xa
jne 0x10007558
test byte [0x1001a0b8], 1
jne 0x100077e0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x3ec
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x21c]
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintPrinters
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
je 0x100075b0
test byte [0x1001a0b8], 2
je 0x1000754a
mov dword [esp + 0xc], str.Cant_create_Printers_key_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000754a
lea eax, [ebp - 0x210]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyA]
sub esp, 0x30
test eax, eax
jne 0x10007988
test byte [0x1001a0b8], 8
jne 0x10007930
mov eax, dword [ebp - 0x21c]
cmp esi, 4
je 0x100079f0
ja 0x10007968
cmp esi, 1
je 0x10007810
cmp esi, 2
jne 0x100079d0
mov edx, dword [ebp - 0x210]
imul ecx, edx, 0x54
mov dword [ebp - 0x228], ecx
xor edi, edi
mov ecx, dword [ebp - 0x228]
cmp dword [ebp + 8], ecx
cmovae edi, ebx
test edx, edx
je 0x10007b2f
mov ecx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x220], esi
xor edx, edx
mov esi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov ebx, edx
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x20a]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x10007a10
test byte [0x1001a0b8], 8
jne 0x10007840
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
lea eax, [ebp - 0x20a]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
jne 0x10007a36
cmp esi, dword [ebp + 8]
jae 0x10007830
mov eax, dword [ebp - 0x22c]
lea ecx, [eax + esi]
mov eax, dword [ebp + 8]
sub eax, esi
mov edx, dword [ebp - 0x220]
cmp edx, 4
je 0x100078d0
cmp edx, 5
je 0x100078a0
cmp edx, 1
mov dword [esp], eax
lea edx, [ebp - 0x214]
mov dword [esp + 4], edx
mov edx, edi
mov eax, dword [ebp - 0x218]
je 0x10007880
call fcn.10006eb0
add esi, dword [ebp - 0x214]
lea eax, [edi + 0x54]
test edi, edi
cmovne edi, eax
mov eax, dword [ebp - 0x218]
add ebx, 1
mov dword [esp], eax
mov eax, dword [ebp - 0x224]
call eax
sub esp, 4
cmp ebx, dword [ebp - 0x210]
jae 0x10007a74
mov eax, dword [ebp - 0x21c]
jmp 0x1000769f
test byte [0x1001a0b8], 1
jne 0x10007900
mov eax, 1
jmp 0x1000754c
mov dword [esp + 0xc], str.ignoring_PRINTER_ENUM_CONNECTIONS_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000751f
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.dwType___08lx_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x1000753d
mov edx, dword [ebp - 0x210]
mov ecx, edx
shl ecx, 4
mov dword [ebp - 0x228], ecx
jmp 0x10007667
xor ecx, ecx
xor eax, eax
jmp 0x1000771b
lea eax, [ebp - 0x20a]
call fcn.10002fe0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Printer__ld_is__s_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x100076d6
call fcn.10003550
add esi, dword [ebp - 0x214]
lea eax, [edi + 0x10]
test edi, edi
cmovne edi, eax
jmp 0x10007764
lea edx, [ebp - 0x214]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x218]
mov edx, edi
call fcn.10003a00
add esi, dword [ebp - 0x214]
lea eax, [edi + 0x14]
test edi, edi
cmovne edi, eax
jmp 0x10007764
lea edx, [ebp - 0x214]
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x218]
mov edx, edi
call fcn.10003920
add esi, dword [ebp - 0x214]
lea eax, [edi + 0xc]
test edi, edi
cmovne edi, eax
jmp 0x10007764
mov dword [esp + 0xc], str.We_dont_handle_PRINTER_ENUM_CONNECTIONS_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x100077a5
mov eax, dword [ebp - 0x210]
mov dword [esp + 0xc], str.Found__ld_printers_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.100032c0
jmp 0x10007631
cmp esi, 5
jne 0x100079d0
mov edx, dword [ebp - 0x210]
lea ecx, [edx + edx*4]
shl ecx, 2
mov dword [ebp - 0x228], ecx
jmp 0x10007667
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x1001a0b8], 2
je 0x1000754a
mov dword [esp + 0xc], str.Cant_query_Printers_key_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000754a
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x7c
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000754a
mov edx, dword [ebp - 0x210]
lea ecx, [edx + edx*2]
shl ecx, 2
mov dword [ebp - 0x228], ecx
jmp 0x10007667
test byte [0x1001a0b8], 2
jne 0x10007b02
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov eax, dword [ebp - 0x224]
call eax
sub esp, 4
jmp 0x1000754a
test byte [0x1001a0b8], 2
je 0x10007a1d
lea eax, [ebp - 0x20a]
call fcn.10002fe0
mov dword [esp + 0xc], str.Cant_open_key__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10007a1d
mov ebx, dword [ebp - 0x22c]
mov dword [ebp - 0x228], esi
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov eax, dword [ebp - 0x224]
call eax
mov edx, dword [ebp + 0xc]
sub esp, 4
test edx, edx
je 0x10007aa6
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x228]
mov dword [eax], esi
mov eax, dword [ebp - 0x228]
cmp dword [ebp + 8], eax
jb 0x10007ad5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10007ac3
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0
jmp 0x100077a5
test ebx, ebx
je 0x10007af0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memset
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
jmp 0x1000754a
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.Cant_enum_key_number__ld_n
mov dword [esp + 8], str.WINSPOOL_EnumPrintersW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x10007a1d
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x224], esi
jmp 0x10007a86