Function at 0x40b9b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0
mov eax, dword [esi]
push str.Install_File
push 0xcf
push 1
call dword [eax + 4]
lea ebx, [esi + 0x2c8]
push ebx
push 0x37
push esi
call fcn.0040bff0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40ba25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager
push 0x38
push esi
call fcn.0040bff0
add esp, 0x10
mov ecx, esi
push edi
push 0x10000005
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x34
push str.Client32
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40ba6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenManager__Client32__
push 0x38
push esi
call fcn.0040bff0
add esp, 0x10
mov ecx, esi
push 0
push 0x1000000c
call fcn.0040aab0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x39
push esi
call fcn.0040bff0
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [esi]
push 0
push 0
push str.GetClientInfo
push 0xcf
push 1
mov ecx, esi
call dword [edx + 4]
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0xa0]
push eax
push ecx
mov ecx, esi
call fcn.0040ab90
test eax, eax
je 0x40bae8
push 0x3a
push esi
call fcn.0040bff0
add esp, 8
mov ecx, esi
push 0
push 0x10000005
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x120]
lea eax, [ebp - 0xa0]
push edx
push eax
push ebx
push 0x31
push esi
call fcn.0040bff0
add esp, 0x14
xor edi, edi
xor ebx, ebx
cmp edi, 3
ja case.default.0x40bb0f
jmp dword [edi*4 + 0x40bd20]
mov edx, dword [esi]
push 0
push 0
push str.Backup_file
push 0xcf
push 1
mov ecx, esi
call dword [edx + 4]
xor eax, eax
lea ecx, [esi + 0xfc]
test ebx, ebx
sete al
push eax
lea edx, [ebp - 0xa0]
push ecx
push edx
mov ecx, esi
call fcn.0040adb0
test eax, eax
je 0x40bc2f
test ebx, ebx
jne 0x40bc57
mov edi, 1
jmp 0x40bb06
mov eax, dword [esi]
push 0
push 0
push str.Copy_NSM_File
push 0xcf
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esi + 0xfc]
lea edx, [ebp - 0xa0]
push ecx
push edx
mov ecx, esi
call fcn.0040afc0
test eax, eax
jne 0x40bb9d
mov ebx, 2
xor edi, edi
jmp 0x40bb06
mov edi, ebx
neg edi
sbb edi, edi
and edi, 0xfffffffe
add edi, 2
jmp 0x40bb06
mov eax, dword [esi]
push 0
push 0
push str.SetClientParams
push 0xcf
push 1
mov ecx, esi
call dword [eax + 4]
test ebx, ebx
lea eax, [esi + 0x200]
je 0x40bbd5
lea eax, [ebp - 0x120]
push eax
mov ecx, esi
call fcn.0040b0d0
test eax, eax
jne 0x40bbf0
mov ebx, 3
mov edi, 1
jmp 0x40bb06
mov edi, ebx
neg edi
sbb edi, edi
and edi, 0xfffffffe
add edi, 3
jmp 0x40bb06
mov eax, dword [esi + 0x28c]
test eax, eax
je 0x40bc32
mov ecx, esi
call fcn.0040b3c0
test eax, eax
jne 0x40bc32
mov ebx, 4
mov edi, 2
jmp 0x40bb06
cmp edi, 4
jge 0x40bc32
jmp 0x40bb06
lea ebx, [edi + 1]
push 0
mov ecx, esi
call fcn.0040a360
test ebx, ebx
je 0x40bcec
push ebx
push 0x10000005
mov ecx, esi
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push 0
push 0
push str.There_was_an_error_restart_with_old_configuration
push 0xcf
push 1
mov ecx, esi
call dword [edx + 4]
push 0x3b
push esi
call fcn.0040bff0
add esp, 8
mov ecx, esi
call fcn.0040b3c0
test eax, eax
je 0x40bcc4
mov eax, dword [esi]
push 0
push 0
push str.old_config_started_ok
push 0xcf
push 1
mov ecx, esi
call dword [eax + 4]
push 0x3c
push esi
call fcn.0040bff0
add esp, 8
mov ecx, esi
push 0
call fcn.0040a360
push 0
push 0x1000000e
mov ecx, esi
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3d
push esi
call fcn.0040bff0
add esp, 8
mov ecx, esi
push 0
call fcn.0040a360
push ebx
push 0x1000000f
mov ecx, esi
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28c]
push 0
test eax, eax
je 0x40bd0b
push 0x4000000d
mov ecx, esi
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40000011
mov ecx, esi
call fcn.0040aab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret