Function at 0x100057d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0xb0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x4c6
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x1000904c]
mov dword [ebp - 0x22], ecx
mov dx, word [0x10009050]
mov word [ebp - 0x1e], dx
cmp dword [0x1000b534], 0
je 0x10005823
mov eax, dword [0x1000b534]
cmp dword [eax + 8], 0
jne 0x1000582f
mov dword [ebp - 0xc], 0x4c6
jmp 0x10005cc2
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x10005848
mov dword [ebp - 0xc], 0x57
jmp 0x10005cc2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x44]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
call sub.MSVCRT.dll_memcpy
cmp dword [ebp - 0x34], 0
jne 0x100058d4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
and eax, 0x80
cmp eax, 0
je 0x100058d4
cmp dword [ebp - 0x40], 1
je 0x100058a3
cmp dword [ebp - 0x40], 2
je 0x100058a3
mov dword [ebp - 0xc], 0x42
jmp 0x10005cc2
cmp dword [ebp - 0x40], 2
jne 0x100058c7
lea eax, str.Local_device_selection_is_not_implemented_for_printers._n
mov dword [esp], eax
call pe_dos_header
mov dword [ebp - 0xc], 0x4c6
jmp 0x10005cc2
lea eax, [ebp - 0x22]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
and eax, 8
cmp eax, 0
je 0x100058f2
mov dword [ebp - 0xc], 0x43
jmp 0x10005cc2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
mov dword [ebp - 0x18], eax
cmp eax, 0
je 0x1000591e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
jmp 0x10005cc2
cmp dword [ebp - 0x28], 0
je 0x10005988
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.10002950
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x1000594c
mov dword [ebp - 0xc], 0x4b4
jmp 0x10005cc2
mov eax, dword [0x1000b534]
add eax, 0xc
imul ecx, dword [ebp - 0x14], 0x34
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [esp], edx
lea edx, [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
movzx ecx, al
mov dword [esp + 0xc], ecx
call fcn.10008990
mov dword [ebp - 0x18], eax
jmp 0x10005a09
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x1000b534]
cmp eax, dword [ecx + 8]
jae 0x10005a04
mov eax, dword [0x1000b534]
add eax, 0xc
imul ecx, dword [ebp - 0x14], 0x34
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [esp], edx
lea edx, [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
movzx ecx, al
mov dword [esp + 0xc], ecx
call fcn.10008990
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100059ec
cmp dword [ebp - 0x18], 0x55
jne 0x100059f1
jmp 0x10005a04
jmp 0x100059f6
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x1000598f
jmp 0x10005a09
cmp dword [ebp - 0x18], 0
jne 0x10005cbc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
and eax, 1
cmp eax, 0
je 0x10005cbc
cmp dword [ebp - 0x40], 2
jne 0x10005a48
lea eax, str.Persistent_connection_are_not_supported_for_printers_n
mov dword [esp], eax
call pe_dos_header
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x10005cc2
mov dword [esp], 0xf003f
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
sub esp, 8
cmp eax, 0
jne 0x10005cb7
xor eax, eax
lea ecx, [ebp - 0x60]
mov word [ebp - 0x60], 0x4e
mov word [ebp - 0x5e], 0x65
mov word [ebp - 0x5c], 0x74
mov word [ebp - 0x5a], 0x77
mov word [ebp - 0x58], 0x6f
mov word [ebp - 0x56], 0x72
mov word [ebp - 0x54], 0x6b
mov word [ebp - 0x52], 0x5c
mov edx, dword [ebp - 0x34]
mov si, word [edx]
mov word [ebp - 0x50], si
mov word [ebp - 0x4e], 0
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x18], 0
lea ecx, [ebp - 0x4c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
mov dword [ebp - 0x6c], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
sub esp, 0x24
cmp eax, 0
jne 0x10005ca8
mov dword [ebp - 0x64], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
xor ecx, ecx
add eax, 1
shl eax, 1
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
lea edx, str.ConnectionType
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
mov dword [ebp - 0x70], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
xor ecx, ecx
mov edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x10]
mov esi, dword [esi + 4]
mov edi, dword [ebp - 0x4c]
mov dword [esp], edi
lea edi, str.ProviderName
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add edx, 0x10
mov esi, dword [ebp - 0x4c]
mov dword [esp], esi
lea esi, str.ProviderType
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
mov ecx, dword [ebp - 0x30]
mov dword [esp], ecx
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
xor ecx, ecx
add eax, 1
shl eax, 1
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x4c]
mov dword [esp], esi
lea esi, str.RemotePath
mov dword [esp + 4], esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [ebp - 0x88], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
xor ecx, ecx
lea edx, [0x10009670]
mov dword [ebp - 0x68], 2
mov esi, dword [ebp - 0x68]
mov edi, dword [ebp - 0x4c]
mov dword [esp], edi
lea edi, str.UserName
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
mov ecx, dword [ebp - 0x4c]
mov dword [esp], ecx
mov dword [ebp - 0x94], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
jmp 0x10005cbc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add esp, 0xb0
pop esi
pop edi
pop ebp
ret