Function at 0x401370
Capabilities:
Query service status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x60
push ebx
push esi
push edi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x40139a
test eax, eax
je 0x4015cb
mov ecx, dword [eax + 4]
mov dword [esp + 0x70], ecx
call fcn.00401230
test eax, eax
je 0x4013bf
mov edx, dword [esp + 0x70]
push str.Windows_9x_mode
push 0x3f8
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebx
add esp, 0x60
ret
push ebp
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x1c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push 0xa0000000
push str.DCPFLICS
push ebx
call edi
mov ebp, eax
mov byte [esp + 0x78], 0
test ebp, ebp
jne 0x401410
push 0x80000000
push str.DCPFLICS
push ebx
call edi
mov ebp, eax
mov byte [esp + 0x78], 1
test ebp, ebp
je 0x4014ac
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40147c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, str.Cant_query_service_status_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 0x3f8
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push ebp
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4014ec
mov eax, dword [esp + 0x18]
cmp eax, 4
mov dword [esp + 0x10], eax
jne 0x4014a3
lea eax, [esp + 0x14]
push eax
push 4
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4014a3
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4014ec
mov edi, str.Cant_open_service_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 0x3f8
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov esi, 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
pop ebp
jne 0x4015cb
mov eax, dword [esp + 0xc]
dec eax
cmp eax, 6
ja case.default.0x401506
jmp dword [eax*4 + 0x4015d4]
lea edx, [esp + 0x2c]
mov edi, str.Service_is_stopped
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str.Service_start_pending
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str.Service_stop_pending
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str.Service_is_running
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str.Service_continue_pending
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str.Service_pause_pending
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str.Service_paused
jmp 0x401563
lea edx, [esp + 0x2c]
mov edi, str._Unknown_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x74]
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
je 0x4015b6
mov edi, str..__Read_Only_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x2c]
push eax
push 0x3f8
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebx
add esp, 0x60
ret