Function at 0x100054c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x4c6
mov dword [ebp - 0x18], 0
mov eax, 0x5a
mov word [ebp - 0x28], ax
mov ecx, 0x3a
mov word [ebp - 0x26], cx
xor edx, edx
mov word [ebp - 0x24], dx
cmp dword [0x10009ccc], 0
je 0x10005509
mov eax, dword [0x10009ccc]
cmp dword [eax + 8], 0
jne 0x10005513
mov eax, 0x4c6
jmp 0x1000581b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x10005526
mov eax, 0x57
jmp 0x1000581b
mov edx, dword [ebp + 8]
mov ecx, 8
mov esi, dword [edx + 4]
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x4c], 0
jne 0x1000558a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
and ecx, 0x80
je 0x1000558a
cmp dword [ebp - 0x58], 1
je 0x10005560
cmp dword [ebp - 0x58], 2
je 0x10005560
mov eax, 0x42
jmp 0x1000581b
cmp dword [ebp - 0x58], 2
jne 0x1000557d
push str.Local_device_selection_is_not_implemented_for_printers._n
call 0x10000000
add esp, 4
mov eax, 0x4c6
jmp 0x1000581b
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x28]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
and ecx, 8
je 0x1000559f
mov eax, 0x43
jmp 0x1000581b
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
call edx
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100055c3
mov eax, dword [ebp - 4]
jmp 0x1000581b
cmp dword [ebp - 0x40], 0
je 0x10005617
mov eax, dword [ebp - 0x40]
push eax
call fcn.10003170
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100055e8
mov eax, 0x4b4
jmp 0x1000581b
imul ecx, dword [ebp - 8], 0x34
mov edx, dword [0x10009ccc]
lea eax, [edx + ecx + 0xc]
mov dword [ebp - 0xc], eax
movzx ecx, byte [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10005390
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x10005672
mov dword [ebp - 8], 0
jmp 0x10005629
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [0x10009ccc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 8]
jae 0x10005672
imul edx, dword [ebp - 8], 0x34
mov eax, dword [0x10009ccc]
lea ecx, [eax + edx + 0xc]
mov dword [ebp - 0xc], ecx
movzx edx, byte [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005390
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000566e
cmp dword [ebp - 4], 0x55
jne 0x10005670
jmp 0x10005672
jmp 0x10005620
cmp dword [ebp - 4], 0
jne 0x10005818
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
and ecx, 1
je 0x10005818
cmp dword [ebp - 0x58], 2
jne 0x100056a6
push str.Persistent_connection_are_not_supported_for_printers_n
call 0x10000000
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x1000581b
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x10005818
mov eax, 0x4e
mov word [ebp - 0x3c], ax
mov ecx, 0x65
mov word [ebp - 0x3a], cx
mov edx, 0x74
mov word [ebp - 0x38], dx
mov eax, 0x77
mov word [ebp - 0x36], ax
mov ecx, 0x6f
mov word [ebp - 0x34], cx
mov edx, 0x72
mov word [ebp - 0x32], dx
mov eax, 0x6b
mov word [ebp - 0x30], ax
mov ecx, 0x5c
mov word [ebp - 0x2e], cx
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 0x4c]
mov dx, word [ecx + eax]
mov word [ebp - 0x2c], dx
xor eax, eax
mov word [ebp - 0x2a], ax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000580e
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
push 4
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0
push str.ConnectionType
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
push 1
push 0
push str.ProviderName
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov ecx, dword [ebp - 0xc]
add ecx, 0x10
push ecx
push 4
push 0
push str.ProviderType
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x48]
push eax
push 1
push 0
push str.RemotePath
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], 2
mov edx, dword [ebp - 0x14]
push edx
push 0x10009cd0
push 1
push 0
push str.UserName
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret