Function at 0x401b60
Capabilities:
Start service

Disassembly:
push 0xffffffffffffffff
push 0x40658c
mov eax, dword fs:[0]
push eax
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40b424]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
push 0x160
push str..loginService.cpp
lea ecx, [esp + 0x24]
call fcn.00405530
add eax, 4
push str.RunService
push eax
mov dword [esp + 0x13c], 0
call fcn.004014d0
or ebp, 0xffffffff
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], ebp
call fcn.00405740
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x401c3a
push 0x165
push str..loginService.cpp
lea ecx, [esp + 0x24]
call fcn.00405530
mov esi, eax
mov dword [esp + 0x134], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed__error_code_
add esi, 4
push esi
call fcn.004014d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.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_]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], ebp
call fcn.00405740
jmp 0x401cab
mov eax, dword [esp + 0x13c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x401cc7
push 0x16d
push str..loginService.cpp
lea ecx, [esp + 0x24]
call fcn.00405530
mov esi, eax
mov dword [esp + 0x134], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed__error_code_
add esi, 4
push esi
call fcn.004014d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.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_]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], ebp
call fcn.00405740
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x17], 0
jmp 0x401ce0
mov ecx, dword [esp + 0x144]
mov edx, dword [esp + 0x140]
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401d9e
call ebp
push 0x17e
push str..loginService.cpp
lea ecx, [esp + 0xac]
mov esi, eax
call fcn.00405530
mov edi, eax
mov dword [esp + 0x134], 3
call ebp
push eax
push str.StartService_failed__error_code_
add edi, 4
push edi
call fcn.004014d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.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_]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x134], 0xffffffff
call fcn.00405740
cmp esi, 0x420
jne 0x401d8e
cmp byte [esp + 0x17], 0
jne 0x401d8e
push str.wbxSCLoginService
call fcn.00401890
add esp, 4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x17], 1
jmp 0x401ce0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x18]
jmp 0x401ca4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov eax, 1
jmp 0x401cad