Function at 0x4075b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44bfcc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x44bfcc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x445648
push 0
push 1
push 0
call esi
push str.Spooler
push 0
push 1
push 0
mov dword [0x44eefc], eax
call esi
cmp dword [0x44f100], 0
mov dword [0x44eef8], eax
mov byte [esp + 0x13], 1
jne 0x407699
push 0x44f10c
push dword [0x44f108]
mov dword [0x44f114], 1
mov dword [0x44f110], 4
mov dword [0x44f118], 0
mov dword [0x44f124], 0
mov dword [0x44f120], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x407699
push 0x445ca4
push str.ReportStatusToSCMgr
push 0x44d4a0
call fcn.00402b50
add esp, 0xc
push str.Error_ReportStatusToSCMgr_SERVICE_RUNNING
push str.ServiceStart
push 0x44d4a0
call fcn.00402b50
add esp, 0xc
jmp 0x407ad3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
call fcn.00407b00
test eax, eax
je 0x4076b5
push 0x3e8
call ebx
jmp 0x407981
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], 0
call fcn.00407db0
lea ecx, [esp + 0x14]
call fcn.00408460
test eax, eax
jne 0x407743
push 0x3e8
call ebx
mov dword [esp + 0x50], 0xffffffff
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40797b
mov edi, dword [esp + 0x18]
mov esi, ebx
cmp ebx, edi
je 0x40795a
cmp dword [esi + 0x14], 8
jb 0x407724
push dword [esi]
call fcn.00421400
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x407714
jmp 0x40795a
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [esp + 0x28], ebx
je 0x407a11
push ebx
push str.Virtual_Printer_Count__d_
push str.ServiceStart
push 0x44d4a0
call fcn.00402bb0
add esp, 0x10
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0x407c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov eax, ebx
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d197
mov dword [esp + 0x28], eax
xor ecx, ecx
add esp, 4
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d197
mov dword [esp + 0x24], eax
xor ecx, ecx
add esp, 4
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d197
add esp, 4
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x407861
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
sub ecx, eax
mov ebx, eax
mov dword [esp + 0x2c], ecx
jmp 0x407810
cmp dword [esi + 0x14], 8
jb 0x40781a
mov eax, dword [esi]
jmp 0x40781c
mov eax, esi
mov dword [edi], eax
mov eax, dword [0x44eefc]
mov dword [edi + 4], eax
mov eax, dword [0x44eef8]
mov dword [edi + 8], eax
lea eax, [ecx + ebx]
push eax
push 0
push edi
push 0x408650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x2c]
mov dword [ebx], eax
add esi, 0x18
add edi, 0xc
add ebx, 4
dec dword [esp + 0x28]
jne 0x407810
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [0x44eefc]
mov dword [esp + 0x38], eax
mov eax, dword [0x44eef8]
push 0xffffffffffffffff
mov dword [esp + 0x40], eax
push 0
lea eax, [esp + 0x40]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, eax
test ebx, ebx
jne 0x4078a3
push str.Stop_Service
push str.ServiceStart
push 0x44d4a0
call fcn.00402bb0
add esp, 0xc
jmp 0x4078ec
cmp ebx, 1
jne 0x4078cd
push str.Stop_Spooler_Service
push str.ServiceStart
push 0x44d4a0
call fcn.00402bb0
add esp, 0xc
push dword [0x44eef8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x4078f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.WaitForMultipleObjects_failed.eventId_d_GetLastErr_d
push str.ServiceStart
push 0x44d4a0
call fcn.00402b50
add esp, 0x14
mov byte [esp + 0x13], 0
push dword [esp + 0x30]
call fcn.00424475
add esp, 4
push dword [esp + 0x20]
call fcn.00424475
add esp, 4
push dword [esp + 0x24]
call fcn.00424475
add esp, 4
mov dword [esp + 0x50], 0xffffffff
test esi, esi
je 0x40797b
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x40795a
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x407940
push dword [esi]
call fcn.00421400
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x407930
push ebx
call fcn.00421400
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esp + 0x13], 0
jne 0x4076a0
cmp dword [0x44f100], 0
jne 0x4079f4
mov eax, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x44f10c
push dword [0x44f108]
mov dword [0x44f114], 1
mov dword [0x44f110], 1
mov dword [0x44f118], 0
mov dword [0x44f124], 0
mov dword [0x44f120], 0
call eax
test eax, eax
jne 0x4079f4
push 0x445ca4
push str.ReportStatusToSCMgr
push 0x44d4a0
call fcn.00402b50
add esp, 0xc
push dword [0x44eef8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x44eefc]
call esi
xor eax, eax
jmp 0x407ad8
push str.Virtual_Printer_Count__0
push str.ServiceStart
push 0x44d4a0
call fcn.00402b50
add esp, 0xc
cmp dword [0x44f100], 0
jne 0x407a90
mov eax, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0x44f10c
push dword [0x44f108]
mov dword [0x44f114], 1
mov dword [0x44f110], 1
mov dword [0x44f118], 0
mov dword [0x44f124], 0
mov dword [0x44f120], 0
call eax
test eax, eax
jne 0x407a90
push 0x445ca4
push str.ReportStatusToSCMgr
push 0x44d4a0
call fcn.00402b50
add esp, 0xc
test esi, esi
je 0x407ad3
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x407aca
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x407ab0
push dword [esi]
call fcn.00421400
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x407aa0
push ebx
call fcn.00421400
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0042128d
mov esp, ebp
pop ebp
ret