Function at 0x1000b060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x304
mov dword [esp], 0x1001a060
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [0x1001a024]
sub esp, 4
test esi, esi
jne 0x1000b09d
jmp 0x1000b0d0
mov eax, dword [esi + 4]
cmovns eax, dword [esi + 8]
mov esi, eax
test eax, eax
je 0x1000b0d0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x1001a020]
test eax, eax
jne 0x1000b090
test edi, edi
jne 0x1000b3c0
mov dword [esp], 0x1001a060
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
je 0x1000b3d3
lea eax, [ebp - 0x2ec]
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
jne 0x1000b3e0
lea eax, [ebp - 0x2e8]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2ec]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x2f4], eax
call eax
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x2ec]
sub esp, 0xc
mov dword [esp], eax
call edi
sub esp, 4
test esi, esi
jne 0x1000b3ca
mov dword [ebp - 0x2f0], 0xc8
lea eax, [ebp - 0x2f0]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2dc]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Printer_Driver
mov eax, dword [ebp - 0x2e8]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [ebp - 0x2f8], eax
call eax
mov esi, eax
mov eax, dword [ebp - 0x2e8]
sub esp, 0x18
mov dword [esp], eax
call edi
sub esp, 4
test esi, esi
jne 0x1000b414
cmp dword [ebp - 0x2e0], 1
jne 0x1000b414
xor eax, eax
call fcn.10004d50
mov esi, eax
test eax, eax
je 0x1000b3d3
lea eax, [ebp - 0x2e4]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [ebp - 0x2dc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2f4]
call eax
sub esp, 0xc
mov dword [ebp - 0x2f4], eax
mov dword [esp], esi
call edi
mov esi, dword [ebp - 0x2f4]
sub esp, 4
test esi, esi
jne 0x1000b47e
mov dword [ebp - 0x2f0], 0x208
lea eax, [ebp - 0x2f0]
lea esi, [ebp - 0x214]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x208
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym.winspool.drv_GetPrinterDriverDirectoryW
sub esp, 0x18
test eax, eax
je 0x1000b3d3
mov eax, dword [ebp - 0x2f0]
mov ecx, 0x5c
shr eax, 1
mov dword [ebp + eax*2 - 0x216], 0x33005c
lea edx, [eax + 2]
mov word [ebp + eax*2 - 0x212], cx
mov eax, 0x104
sub eax, edx
add eax, eax
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f0]
mov dword [esp + 0x14], eax
lea eax, [esi + edx*2]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Configuration_File
mov eax, dword [ebp - 0x2e4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2f8]
call eax
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2e4]
sub esp, 0x18
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x2f4]
sub esp, 4
test edx, edx
jne 0x1000b4c5
cmp dword [ebp - 0x2e0], 1
jne 0x1000b4c5
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
mov edi, eax
test eax, eax
je 0x1000b56b
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 0x22]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x1000b3d3
mov edx, dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 2
mov dword [esp], edi
mov dword [esp + 4], str.DrvDeviceCapabilities
mov dword [ebp - 0x2f4], edx
call edx
sub esp, 8
mov dword [esi + 0x18], eax
mov dword [esp], edi
lea edi, [esi + 0x20]
mov dword [esp + 4], str.DrvDocumentPropertySheets
mov edx, dword [ebp - 0x2f4]
call edx
sub esp, 8
mov dword [esi + 0x1c], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov ebx, dword [0x1001a024]
test ebx, ebx
jne 0x1000b3a7
jmp 0x1000b501
lea ecx, [ebx + 4]
lea edx, [ebx + 8]
mov eax, ecx
cmovns eax, edx
mov edx, dword [eax]
test edx, edx
je 0x1000b506
mov ebx, edx
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [0x1001a020]
test eax, eax
jne 0x1000b390
jmp 0x1000b0b6
lock add dword [esi + 0x14], 1
jmp 0x1000b0b6
test byte [0x1001a0b8], 4
jne 0x1000b448
xor esi, esi
jmp 0x1000b0b6
test byte [0x1001a0b8], 2
je 0x1000b3d3
mov dword [esp + 0xc], str.Cant_create_Printers_key_n
xor esi, esi
mov dword [esp + 8], str.get_config_module
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 1
call fcn.100032c0
jmp 0x1000b0b6
test byte [0x1001a0b8], 4
je 0x1000b3d3
mov dword [esp + 0xc], str.Cant_get_Printer_Driver_name_n
xor esi, esi
mov dword [esp + 8], str.get_config_module
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1000b0b6
mov eax, ebx
xor esi, esi
call fcn.10002fe0
mov dword [esp + 0xc], str.Device__s_key_not_found_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_config_module
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1000b0b6
test byte [0x1001a0b8], 4
je 0x1000b3d3
xor esi, esi
lea eax, [ebp - 0x2dc]
call fcn.10002fe0
mov dword [esp + 0xc], str.Driver__s_key_not_found_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_config_module
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1000b0b6
test byte [0x1001a0b8], 4
je 0x1000b3d3
mov dword [esp + 0x10], edx
xor esi, esi
mov dword [esp + 0xc], str.no_configuration_file:__lu_n
mov dword [esp + 8], str.get_config_module
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1000b0b6
mov eax, 0x1001a024
mov dword [esi], ebx
mov edx, esi
mov dword [esi + 0xc], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [eax], esi
mov eax, dword [esi]
test eax, eax
je 0x1000b55d
test byte [eax + 0xc], 1
je 0x1000b55d
mov ecx, dword [eax]
mov ebx, dword [ecx + 4]
cmp ebx, eax
je 0x1000b5fc
test ebx, ebx
je 0x1000b5ae
test byte [ebx + 0xc], 1
je 0x1000b5ae
xor dword [ecx + 0xc], 1
xor dword [ebx + 0xc], 1
mov eax, dword [ecx + 8]
xor dword [eax + 0xc], 1
mov eax, dword [edx]
mov edx, dword [eax]
mov eax, dword [edx]
test eax, eax
jne 0x1000b527
mov eax, dword [0x1001a024]
and dword [eax + 0xc], 0xfffffffe
jmp 0x1000b0b6
test byte [0x1001a0b8], 4
je 0x1000b3d3
mov eax, esi
xor esi, esi
call fcn.10002fe0
mov dword [esp + 0xc], str.Could_not_load__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_config_module
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 2
call fcn.100032c0
jmp 0x1000b0b6
cmp dword [eax + 4], edx
je 0x1000b69f
mov eax, dword [edx]
and dword [eax + 0xc], 0xfffffffe
mov eax, dword [edx]
mov eax, dword [eax]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, dword [eax + 8]
test ebx, ebx
je 0x1000b694
cmp eax, dword [ebx + 4]
je 0x1000b68c
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 4]
mov dword [eax + 8], ebx
test ebx, ebx
je 0x1000b5ee
mov dword [ebx], eax
mov dword [ecx + 4], eax
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], ecx
jmp 0x1000b557
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x1000b621
test byte [ebx + 0xc], 1
je 0x1000b621
xor dword [ecx + 0xc], 1
xor dword [eax + 0xc], 1
mov eax, dword [ecx + 8]
xor dword [eax + 0xc], 1
mov eax, dword [edx]
mov edx, dword [eax]
jmp 0x1000b557
cmp dword [eax + 8], edx
je 0x1000b670
mov eax, dword [edx]
and dword [eax + 0xc], 0xfffffffe
mov eax, dword [edx]
mov eax, dword [eax]
or dword [eax + 0xc], 1
mov eax, dword [edx]
mov eax, dword [eax]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
test ebx, ebx
je 0x1000b668
cmp eax, dword [ebx + 4]
je 0x1000b663
mov dword [ebx + 8], ecx
mov ebx, dword [ecx + 8]
mov dword [eax + 4], ebx
test ebx, ebx
je 0x1000b655
mov dword [ebx], eax
mov dword [ecx + 8], eax
mov ebx, dword [eax]
mov dword [ecx], ebx
mov dword [eax], ecx
jmp 0x1000b557
mov dword [ebx + 4], ecx
jmp 0x1000b649
mov dword [0x1001a024], ecx
jmp 0x1000b649
mov dword [ecx + 4], edx
mov ecx, dword [edx + 4]
mov dword [eax + 8], ecx
test ecx, ecx
je 0x1000b67f
mov dword [ecx], eax
mov dword [edx + 4], eax
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax], edx
mov edx, eax
jmp 0x1000b626
mov dword [ebx + 4], ecx
jmp 0x1000b5e2
mov dword [0x1001a024], ecx
jmp 0x1000b5e2
mov dword [ecx + 8], edx
mov ecx, dword [edx + 8]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x1000b6ae
mov dword [ecx], eax
mov dword [edx + 8], eax
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [eax], edx
mov edx, eax
jmp 0x1000b5b7