Function at 0x10009090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test byte [0x1001a0b8], 8
jne 0x100095e0
test edi, edi
je 0x100090c0
test byte [0x1001a0b8], 1
jne 0x10009640
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
test esi, esi
je 0x100095c0
cmp dword [0x10021004], esi
jb 0x100095c0
mov eax, dword [0x10021008]
mov esi, dword [eax + esi*4 - 4]
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
test esi, esi
je 0x100095d0
mov eax, dword [esi]
test eax, eax
je 0x100095d0
lea edx, [ebp - 0x14]
call fcn.100027d0
test eax, eax
jne 0x100095d0
cmp dword [ebp + 0xc], 2
je 0x100091a0
mov eax, dword [ebp + 0xc]
sub eax, 8
cmp eax, 1
ja 0x10009620
mov eax, dword [ebx]
xor ebx, ebx
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x100095a3
xor edx, edx
call fcn.100029a0
mov ebx, eax
test eax, eax
je 0x1000918f
movzx eax, word [eax + 0x24]
movzx edx, word [ebx + 0x26]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_DevMode
add eax, edx
mov dword [esp], esi
mov dword [esp + 0x14], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov esi, dword [ebp - 0x14]
mov ebx, 1
jmp 0x100095a3
mov edx, dword [ebx + 4]
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
test edx, edx
je 0x100091eb
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Name
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 8]
test edx, edx
je 0x1000922d
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Share_Name
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x1000926f
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Port
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x100092b1
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Printer_Driver
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x100092f3
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Description
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x10009335
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Location
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x1000938a
xor edx, edx
call fcn.100029a0
mov edx, eax
test eax, eax
je 0x1000938a
movzx ecx, word [edx + 0x26]
movzx eax, word [eax + 0x24]
mov dword [esp + 0x10], edx
add eax, ecx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_DevMode
mov dword [esp], edi
call esi
mov edx, dword [ebp - 0x18]
sub esp, 0x18
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x100093cc
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Separator_File
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x1000940e
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Print_Processor
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x10009450
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Datatype
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x10009492
mov dword [esp], edx
mov dword [ebp - 0x18], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Parameters
mov dword [esp + 0x10], edx
mov dword [esp], edi
call esi
sub esp, 0x18
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Attributes
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x38]
sub esp, 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Priority
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x3c]
sub esp, 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Default_Priority
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x40]
sub esp, 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.StartTime
mov dword [esp], edi
call esi
mov eax, dword [ebx + 0x44]
mov ebx, 1
sub esp, 0x18
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.UntilTime
mov dword [esp], edi
call esi
mov esi, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], esi
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 0x1001a0a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p___ld___p___ld__n
mov dword [esp + 8], str.SetPrinterW
mov dword [esp + 0x14], eax
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x100090af
test byte [0x1001a0b8], 1
jne 0x10009670
mov eax, dword fs:[0x18]
mov esi, dword [ebp - 0x14]
mov dword [eax + 0x34], 0x7c
xor ebx, ebx
jmp 0x100095a3
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Ignoring_command__ld_n
mov dword [esp + 8], str.SetPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 0
call fcn.100032c0
jmp 0x100090c0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.Unimplemented_level__ld_n
mov dword [esp + 8], str.SetPrinterW
mov dword [esp + 4], 0x1001a0b8
mov dword [esp], 0
mov dword [esp + 0x10], eax
call fcn.100032c0
jmp 0x10009629