Function at 0x45b1f0
Capabilities:
Create service
Start service

Disassembly:
push 0xffffffffffffffff
push 0x4f58a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x52bd18]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xf0]
push esi
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 0xc], ecx
je 0x45b22d
mov eax, 1
jmp 0x45b4b1
push 0x99
push str..DP.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
push str._CDPMgr__InitDrv.
push 4
call fcn.0047dea0
mov ecx, dword [0x5078c8]
mov eax, dword [str.SysProcLog]
mov dx, word [0x5078cc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov al, byte [0x5078ce]
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x28], dx
mov byte [esp + 0x2a], al
call fcn.00481390
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 0x45b2be
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 0x45b326
push 0xa3
push str..DP.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CDPMgr__InitDrv_OpenSCManager_Failed_Code0x_08x.
push 0x20
call fcn.0047dea0
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 0x45b31f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x45b4b0
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 0x45b3a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x431
jne 0x45b37d
push 0xf01ff
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x45b3a4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xba
push str..DP.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call ebx
push eax
push str._CDPMgr__InitDrv_CreateService_or_OpenService_Failed_Code0x_08x.
jmp 0x45b415
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 0x45b3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x45b3dd
mov eax, ebx
inc ebx
cmp eax, 3
ja 0x45b3e4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45b3b0
mov edi, 1
jmp 0x45b3e8
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x45b445
push 0xd4
push str..DP.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CDPMgr__InitDrv_StartService_Failed_Code0x_08x.
push 0x20
call fcn.0047dea0
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 0x45b441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x45b4ae
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 0x45b4a0
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.0040a700
add esp, 8
call eax
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00401580
xor eax, eax
jmp 0x45b4ae
lea ecx, [esp + 0x10]
call fcn.00401580
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.004ce183
add esp, 0x2c
ret