Function at 0x45d190
Capabilities:
Create service
Start service

Disassembly:
push 0xffffffffffffffff
push 0x4fba60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x531d28]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xf0]
push esi
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 0xc], ecx
je 0x45d1cd
mov eax, 1
jmp 0x45d451
push 0x99
push str..DP.cpp
call fcn.00407270
mov ecx, eax
call fcn.0040a520
push str._CDPMgr__InitDrv.
push 4
call fcn.0047fc80
mov ecx, dword [0x50d7b0]
mov eax, dword [str.SysProcLog]
mov dx, word [0x50d7b4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov al, byte [0x50d7b6]
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x28], dx
mov byte [esp + 0x2a], al
call fcn.00483220
push str.SysSysProcLog.sys
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x44], 0
call fcn.00401e30
add esp, 0x18
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d25e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x45d2c6
push 0xa3
push str..DP.cpp
call fcn.00407270
mov ecx, eax
call fcn.0040a520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CDPMgr__InitDrv_OpenSCManager_Failed_Code0x_08x.
push 0x20
call fcn.0047fc80
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x30], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x45d2bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x45d450
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push ebp
push 1
push 3
push 1
push 0xf01ff
lea eax, [esp + 0x48]
push eax
mov ecx, eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x45d344
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x431
jne 0x45d31d
push 0xf01ff
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x45d344
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xba
push str..DP.cpp
call fcn.00407270
mov ecx, eax
call fcn.0040a520
call ebx
push eax
push str._CDPMgr__InitDrv_CreateService_or_OpenService_Failed_Code0x_08x.
jmp 0x45d3b5
mov edi, dword [sym.imp.ADVAPI32.dll_StartServiceA]
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 0
push 0
push esi
call edi
test eax, eax
jne 0x45d368
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x45d37d
mov eax, ebx
inc ebx
cmp eax, 3
ja 0x45d384
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45d350
mov edi, 1
jmp 0x45d388
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x45d3e5
push 0xd4
push str..DP.cpp
call fcn.00407270
mov ecx, eax
call fcn.0040a520
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CDPMgr__InitDrv_StartService_Failed_Code0x_08x.
push 0x20
call fcn.0047fc80
lea eax, [ebp - 0x10]
add esp, 0xc
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45d3e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x45d44e
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push str..SunwardProcLog
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xf0], eax
jne 0x45d440
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CDPMgr__InitDrv_CreateFile_Failed_Code0x_08x.
push 0x20
push 0xdb
push str..DP.cpp
call fcn.0040a5a0
add esp, 8
call eax
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004016e0
xor eax, eax
jmp 0x45d44e
lea ecx, [esp + 0x10]
call fcn.004016e0
mov eax, 1
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x20]
pop esi
call fcn.004d40be
add esp, 0x2c
ret