Function at 0x45e850
Capabilities:
Create service
Delete file
Delete service
Print debug messages
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2a65
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045e3d0
call fcn.0045e000
test eax, eax
je 0x45e88f
mov byte [ebp - 0x45], 1
jmp 0x45e893
mov byte [ebp - 0x45], 0
mov al, byte [ebp - 0x45]
mov byte [ebp - 0x65], al
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x28]
call fcn.00442c00
mov dword [ebp - 4], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x98], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00436820
lea eax, [ebp - 0x28]
push eax
call fcn.0045e050
add esp, 0x1c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x45e95e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x58]
call fcn.00447080
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
push ecx
push 0x4be238
lea edx, [ebp - 0x58]
push edx
call fcn.0045ed20
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x30
push str.OpenSCManager_error
lea ecx, [ebp - 0x58]
call fcn.004392b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00447540
jmp 0x45ecbf
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x45eaaa
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x45e9f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x5c]
call fcn.00447080
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x80]
push ecx
push 0x4be2b0
lea edx, [ebp - 0x5c]
push edx
call fcn.0045ed20
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x30
push str.OpenService_Error
lea ecx, [ebp - 0x5c]
call fcn.004392b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00447540
jmp 0x45ecbf
cmp dword [ebp - 0x40], 1
jne 0x45ea8b
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x45ea74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x60]
call fcn.00447080
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
push ecx
push 0x4be320
lea edx, [ebp - 0x60]
push edx
call fcn.0045ed20
add esp, 0xc
lea ecx, [ebp - 0x60]
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x30
push 0x4be16c
lea ecx, [ebp - 0x60]
call fcn.004392b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00447540
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str._Pro5_Driver_need_delete_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x45eaa8
cmp dword [ebp - 0x40], 4
jne 0x45eaa8
mov dword [ebp - 0x54], 1
push str._Pro5_Driver_Service_is_running...__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x45ecbf
jmp 0x45eab1
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], 0
je 0x45ebf3
push 0x4be2ac
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x8c]
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x45eb4e
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x45eb1c
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str._Pro5_:This_Windows_64Bit_System
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp + 0xc]
push edx
push 0x4be3dc
push 0x7d
call fcn.0045e3f0
add esp, 0xc
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45eb4c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str._Pro5_:This_Windows_32Bit_System
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4be3e4
push 0x7e
call fcn.0045e3f0
add esp, 0xc
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45eb5d
mov edx, dword [ebp - 0x8c]
push edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004446a0
push eax
push 0
push 3
push 1
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x45ebe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x70]
call fcn.00447080
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x90]
push eax
push str._Pro5_Create_Driver__error_code_:__u
lea ecx, [ebp - 0x70]
push ecx
call fcn.0045ed20
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00447540
jmp 0x45ecbf
push str._Pro5_Create_Driver_success__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x45ec7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0x3e5
je 0x45ec7b
cmp dword [ebp - 0x74], 0x420
je 0x45ec7b
lea ecx, [ebp - 0x64]
call fcn.00447080
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x74]
push eax
push str.Install_Driver_Windows_Error_Code:__u
lea ecx, [ebp - 0x64]
push ecx
call fcn.0045ed20
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.004392b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x30
push str.Inst_Drivers_Err
lea ecx, [ebp - 0x64]
call fcn.004392b0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00447540
jmp 0x45ecbf
mov dword [ebp - 0x78], 0
jmp 0x45ec8d
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x78], 0xa
jge 0x45ecb7
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0045e5d0
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x45ecaa
jmp 0x45ecb7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45ec84
xor ecx, ecx
jne 0x45e8e4
cmp dword [ebp - 0x4c], 0
je 0x45eccf
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x50], 0
je 0x45ecdf
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00442d50
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret