Function at 0x40c6a0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6b39
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x484
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1ec], ecx
mov byte [ebp - 0x1dd], 0
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1ec]
call fcn.00416470
movzx eax, al
test eax, eax
je 0x40c72d
push 0x606de0
lea ecx, [ebp - 0x290]
call fcn.00416440
push 0x638098
lea ecx, [ebp - 0x290]
push ecx
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov dword [ebp - 0x270], eax
push 0x7d0
mov ecx, dword [ebp - 0x270]
call fcn.0040a130
mov byte [ebp - 0x1de], al
movzx edx, byte [ebp - 0x1de]
test edx, edx
jne 0x40c75f
jmp 0x40c809
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
push eax
call fcn.004048b0
add esp, 4
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x3ec]
push ecx
mov ecx, dword [ebp - 0x278]
call fcn.00402ad0
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x204]
call fcn.00402a30
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
call fcn.00402d20
mov dword [ebp - 0x20c], eax
push str.Starting_service
mov eax, dword [ebp - 0x20c]
push eax
call fcn.00409d00
add esp, 8
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x1ec]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call fcn.0040e860
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3ec]
call fcn.00402a50
push 0x10
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
jne 0x40c964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1f4], eax
push 0x98
lea ecx, [ebp - 0xac]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0xac]
call fcn.00416190
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1f4]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.0040c020
add esp, 8
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x220], edx
mov byte [ebp - 4], 3
push 0x606e10
lea eax, [ebp - 0xac]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x1f4]
push ecx
mov ecx, dword [ebp - 0x218]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x21c], eax
push 0x606e0c
mov edx, dword [ebp - 0x21c]
push edx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2cc]
call fcn.0040b3b0
lea edx, [ebp - 0x2e4]
push edx
lea ecx, [ebp - 0xac]
call fcn.00414da0
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x29c]
call fcn.0040b380
push 0x638088
lea edx, [ebp - 0x29c]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e4]
call fcn.0040b3b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.00415390
push 0x10
mov ecx, dword [ebp - 0x1ec]
call fcn.0040bfe0
push eax
mov eax, dword [ebp - 0x1e8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0x40cace
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1f8], eax
push 0x98
lea ecx, [ebp - 0x144]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0x144]
call fcn.00416190
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1f8]
push ecx
lea edx, [ebp - 0x2fc]
push edx
call fcn.0040c020
add esp, 8
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 6
push 0x606e2c
lea ecx, [ebp - 0x144]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x1f8]
push edx
mov ecx, dword [ebp - 0x234]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x238], eax
push 0x606e28
mov eax, dword [ebp - 0x238]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2fc]
call fcn.0040b3b0
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x144]
call fcn.00414da0
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x2a8]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x314]
call fcn.0040b3b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00415390
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1e4]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40cc27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1fc], eax
push 0x98
lea ecx, [ebp - 0x1dc]
call fcn.004029d0
push 1
push 2
lea ecx, [ebp - 0x1dc]
call fcn.00416190
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1fc]
push ecx
lea edx, [ebp - 0x32c]
push edx
call fcn.0040c020
add esp, 8
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 9
push 0x606e48
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x1fc]
push edx
mov ecx, dword [ebp - 0x250]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 0x254], eax
push 0x606e44
mov eax, dword [ebp - 0x254]
push eax
call fcn.00414ff0
add esp, 8
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
call fcn.0040e4e0
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x32c]
call fcn.0040b3b0
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00414da0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x264]
push edx
lea ecx, [ebp - 0x2b4]
call fcn.0040b380
push 0x638088
lea eax, [ebp - 0x2b4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x344]
call fcn.0040b3b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1dc]
call fcn.00415390
mov byte [ebp - 0x1dd], 1
jmp 0x40cd04
mov dword [ebp - 4], 0xffffffff
jmp 0x40cd14
cmp dword [ebp - 0x1e4], 0
je 0x40cd2a
mov eax, dword [ebp - 0x1e4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x1e8], 0
je 0x40cd40
mov ecx, dword [ebp - 0x1e8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x1dd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 8