Function at 0x48fe80
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5479b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x5ab980]
push ebp
mov ebp, dword [ecx + 4]
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x130], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x138]
push edi
push 0x5971e8
mov ecx, esi
mov byte [esp + 0x138], 2
call fcn.0050e34f
test eax, eax
jle 0x48ff0e
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0050e172
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call fcn.00512a1d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 2
call fcn.005128e4
jmp 0x48ff1c
push 0x5b0738
lea ecx, [esp + 0x18]
call fcn.00512a6d
test ebp, ebp
je 0x49010c
jmp 0x48ff2a
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp]
mov eax, ebp
mov dword [esp + 0x1c], ecx
mov esi, dword [eax + 8]
test esi, esi
je 0x490100
lea ebp, [esi + 0x20]
lea ecx, [esp + 0x18]
push ebp
call fcn.00512a1d
push 0x5966b8
lea ecx, [esp + 0x1c]
call fcn.0050e804
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push 0x5a2540
push eax
call fcn.00512bed
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.00512a1d
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 2
call fcn.005128e4
add esi, 0x24
lea ecx, [esp + 0x24]
push esi
push 0x598474
push ecx
call fcn.00512bed
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 5
call fcn.00512cfc
lea ecx, [esp + 0x24]
mov byte [esp + 0x130], 2
call fcn.005128e4
mov edi, str.win32spl.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.PrintersConnections_
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0050df1d
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x490038
push 0x5971e8
push 0
lea ecx, [esp + 0x14]
call fcn.0050df1d
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push 0
call fcn.0050df1d
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push reloc.oledlg.dll_OleUIInsertObjectA
jmp 0x490047
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4900dd
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
push str.Provider
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4900dd
mov ecx, 0x40
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [ebp]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
push str.Server
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
neg eax
sbb eax, eax
and al, 0xfe
inc eax
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x490100
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x48ff26
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 0
call fcn.005128e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x128]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x128
ret 4