Function at 0x1000cd00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x24c
mov dword [ebp - 0x21c], ecx
test byte [0x1001a0b8], 8
jne 0x1000cf40
mov eax, ebx
call fcn.10004bb0
mov dword [ebp - 0x220], eax
test eax, eax
je 0x1000cf10
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, ebx
call fcn.10004d50
mov edi, eax
test eax, eax
je 0x1000cf00
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 eax, dword [ebp + 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x10], eax
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyA]
sub esp, 0x30
test eax, eax
jne 0x1000d0a0
test byte [0x1001a0b8], 8
jne 0x1000d058
mov eax, dword [ebp - 0x21c]
mov esi, dword [ebp + 0x1c]
mov eax, dword [eax*4 + 0x1001e8a0]
mov dword [ebp - 0x224], eax
test esi, esi
je 0x1000cfb0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
test ebx, ebx
je 0x1000cff6
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x214], edi
xor esi, esi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
imul ebx, eax
sub eax, dword [ebp + 8]
add ebx, dword [ebp + 8]
mov dword [ebp - 0x228], eax
jmp 0x1000ce92
mov ecx, dword [ebp + 8]
add ecx, edx
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp + 0x10]
sub ecx, edx
lea edx, [ebp - 0x210]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x20a]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x214]
call fcn.1000c1d0
test eax, eax
je 0x1000d090
mov eax, dword [ebp - 0x210]
add esi, 1
add dword [edi], eax
mov eax, dword [ebp - 0x224]
add ebx, eax
mov eax, dword [ebp + 0x18]
cmp esi, dword [eax]
jae 0x1000cff0
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x20a]
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x214]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x1000d030
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
test ecx, ecx
je 0x1000cf20
mov ecx, dword [ebp - 0x228]
add ecx, ebx
cmp dword [ebp + 0x10], ecx
cmovae eax, ebx
cmp dword [ebp + 0x10], edx
jae 0x1000ce20
mov dword [ebp - 0x218], 0
xor ecx, ecx
jmp 0x1000ce30
test byte [0x1001a0b8], 2
jne 0x1000cfc0
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
cmp dword [ebp + 0x10], edx
mov eax, 0
mov dword [ebp - 0x218], 0
jae 0x1000ce2b
jmp 0x1000ce30
mov esi, eax
mov eax, edx
call fcn.10002fe0
mov edi, eax
mov eax, esi
call fcn.10002fe0
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x24], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
mov esi, dword [ebp - 0x21c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s__s__ld__p__ld__ld__ld_n
mov dword [esp + 0x18], esi
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x1000cd21
mov ebx, dword [ebp + 0x18]
imul eax, dword [ebx]
mov dword [ebp + 0x1c], eax
jmp 0x1000cde6
mov dword [esp + 0xc], str.Cant_open_Drivers_key_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000cf10
mov edi, dword [ebp - 0x214]
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edi, dword [ebp + 0x14]
mov eax, 1
sub esp, 4
mov edi, dword [edi]
cmp dword [ebp + 0x10], edi
jae 0x1000cf12
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
jmp 0x1000cf10
mov edi, dword [ebp - 0x214]
test byte [0x1001a0b8], 2
jne 0x1000d0e8
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x1000cf10
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0xc], str.Found__ld_Drivers_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.100032c0
jmp 0x1000cdc8
mov edi, dword [ebp - 0x214]
jmp 0x1000d043
mov dword [esp], edi
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x1001a0b8], 2
je 0x1000cf10
mov dword [esp + 0xc], str.Cant_query_Drivers_key_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000cf10
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.Cant_enum_key_number__ld_n
mov dword [esp + 8], str.WINSPOOL_EnumPrinterDrivers
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000d043