Function at 0x11156a00
Capabilities:
Check for time delay via gettickcount
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
push ebx
push str.AddPrinterPort___s____d_..._n
call fcn.111bd7b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.prnport.vbs
lea ecx, [ebp - 0x84c]
push ecx
mov ecx, esi
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x854], 1
call fcn.1114c1b0
cmp dword [0x1127aa48], 0xd0003
mov dword [ebp - 4], 0
jle 0x11156b65
mov edx, dword [ebp - 0x84c]
mov eax, dword [edx]
lea ecx, [ebp - 0x84c]
call eax
test al, al
jne 0x11156aaf
push 0x263
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
cmp dword [ebp - 0x844], 0
je 0x11156b65
mov edx, dword [ebp - 0x84c]
mov eax, dword [edx]
lea ecx, [ebp - 0x84c]
call eax
test al, al
jne 0x11156ae7
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x840]
push ecx
push 0x1122ebe8
push str.127.0.0.1
push ebx
push edx
lea eax, [ebp - 0x820]
push str._cscript.exe___s__a__r__s__h__s__o__s__n__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea ecx, [ebp - 0x89c]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x28
lea eax, [ebp - 0x89c]
push eax
push 1
push 1
xor edx, edx
push 0x4008000
push edx
push edx
push edx
lea ecx, [ebp - 0x820]
push ecx
mov ecx, esi
mov dword [ebp - 0x89c], 0x44
mov dword [ebp - 0x870], 1
mov word [ebp - 0x86c], dx
call fcn.11151aa0
jmp 0x11156d98
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [ebp - 0x850]
push edx
lea eax, [ebp - 0x82c]
push eax
push 0
push 0xf003f
push 0
push 0x11247f3c
push 0
push str.SYSTEMCurrentControlSetControlPrintMonitorsStandard_TCP_IP_PortPorts
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x11156d98
lea ecx, [ebp - 0x850]
push ecx
lea edx, [ebp - 0x824]
push edx
push eax
push 0xf003f
push eax
push 0x11247f3c
push eax
mov eax, dword [ebp - 0x82c]
push ebx
push eax
call esi
test eax, eax
jne 0x11156d8b
mov edx, dword [str.public]
mov eax, dword [0x1122eae8]
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov dx, word [0x1122eaf0]
mov word [ebp - 0x828], cx
mov ecx, dword [0x1122eaec]
mov dword [ebp - 0x1c], eax
mov esi, 1
lea eax, [ebp - 0x828]
mov word [ebp - 0x14], dx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x838], 0x5a
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x858], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11156c26
sub eax, edx
mov edx, dword [ebp - 0x824]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x828]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push str.HostName
push edx
call esi
lea eax, [ebp - 0x828]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11156c61
sub eax, edx
mov edx, dword [ebp - 0x824]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x828]
push ecx
push 1
push 0
push str.HWAddress
push edx
call esi
mov eax, dword [ebp - 0x824]
push 0x14
push str.127.0.0.1
push 1
push 0
push str.IPAddress
push eax
call esi
lea eax, [ebp - 0x20]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11156cb0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x824]
push ecx
lea edx, [ebp - 0x20]
push edx
push 1
push 0
push str.SNMP_Community
push eax
call esi
mov edx, dword [ebp - 0x824]
push 4
lea ecx, [ebp - 0x838]
push ecx
push 4
push 0
push str.NetworkTimeout
push edx
call esi
mov ecx, dword [ebp - 0x824]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.PortNumber
push ecx
call esi
mov eax, dword [ebp - 0x824]
push 4
lea edx, [ebp - 0x854]
push edx
push 4
push 0
push str.Protocol
push eax
call esi
mov edx, dword [ebp - 0x824]
push 4
lea ecx, [ebp - 0x830]
push ecx
push 4
push 0
push str.SNMP_Enabled
push edx
call esi
mov ecx, dword [ebp - 0x824]
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push str.SNMP_Index
push ecx
call esi
mov eax, dword [ebp - 0x824]
push 4
lea edx, [ebp - 0x858]
push edx
push 4
push 0
push str.Version
push eax
call esi
mov ecx, dword [ebp - 0x824]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.11149f50
mov edx, dword [ebp - 0x82c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x834]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
push str.AddPrinterPort__s__d__took__d_ms_n
call fcn.111bd7b0
add esp, 0x10
lea ecx, [ebp - 0x84c]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8