Function at 0x11157000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e7e26
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx ebx, byte [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ebx
push esi
push eax
push edi
push str.AddPrinter___s_____s_____s____d_..._n
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x818], eax
call fcn.111bd7b0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x82c], eax
call fcn.1113dd30
mov eax, dword [0x1127aa48]
mov dword [ebp - 4], 0
cmp eax, 0x1a0003
jg 0x11157092
je 0x111570d4
cmp eax, 0x140003
je 0x111570d4
cmp eax, 0x150003
jmp 0x11157097
cmp eax, 0x1d0003
je 0x111570d4
mov ecx, dword [ebp - 0x814]
push str.prnmngr.vbs
lea eax, [ebp - 0x890]
push eax
call fcn.1114c1b0
push eax
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 1
call fcn.1113db60
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 0
call fcn.1113cd80
mov eax, dword [0x1127aa48]
cmp eax, 0xd0003
jle 0x111571fe
mov edx, dword [ebp - 0x828]
mov eax, dword [edx]
lea ecx, [ebp - 0x828]
call eax
test al, al
jne 0x1115710a
push 0x263
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
cmp dword [ebp - 0x820], 0
je 0x111571fe
mov edx, dword [ebp - 0x828]
mov eax, dword [edx]
lea ecx, [ebp - 0x828]
call eax
test al, al
jne 0x11157142
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x818]
mov edx, dword [ebp - 0x81c]
push esi
push ecx
push edi
push edx
lea eax, [ebp - 0x810]
push str._cscript.exe___s__a__p___s___m___s___r___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea ecx, [ebp - 0x870]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x24
lea ecx, [ebp - 0x870]
push ecx
push 1
push 1
push 0x4008000
push 0
xor edx, edx
cmp dword [0x1127aa48], 0x160003
push 0
mov word [ebp - 0x840], dx
lea edx, [ebp - 0x810]
push 0
mov dword [ebp - 0x870], 0x44
mov dword [ebp - 0x844], 1
push edx
jl 0x111571d1
mov esi, dword [ebp - 0x814]
mov eax, dword [esi]
mov eax, dword [eax + 0xec]
mov ecx, esi
call eax
jmp 0x111571e2
mov ecx, dword [ebp - 0x814]
call fcn.11151aa0
mov esi, dword [ebp - 0x814]
cmp byte [ebp + 0x14], 0
je 0x11157291
push 0x7d0
push edi
mov ecx, esi
call fcn.1114c4c0
jmp 0x11157291
push 0x54
lea eax, [ebp - 0x880]
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x818]
add esp, 0xc
lea edx, [ebp - 0x880]
push edx
push 2
push 0
mov dword [ebp - 0x87c], edi
mov dword [ebp - 0x874], esi
mov dword [ebp - 0x870], ecx
mov dword [ebp - 0x85c], str.WinPrint
call sub.WINSPOOL.DRV_AddPrinterW
mov esi, eax
push ebx
push esi
push str.After_::AddPrinter_hPrinter_x_bSetAsDefault_d_n
call fcn.111bd7b0
add esp, 0xc
test esi, esi
je 0x1115727d
cmp byte [ebp + 0x14], 0
je 0x11157275
mov eax, dword [ebp - 0x87c]
mov ecx, dword [ebp - 0x814]
push 0x7d0
push eax
call fcn.1114c4c0
push esi
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x11157291
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddPrinter___failed_to_add_printer___d__n
call fcn.111bd7b0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x82c]
cmp eax, 0x64
jb 0x111572b8
mov ecx, dword [ebp - 0x818]
push eax
push ecx
push edi
push str.AddPrinter__s__s__took__d_ms_n
call fcn.111bd7b0
add esp, 0x10
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0xffffffff
call fcn.1113cd80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x10