Function at 0x437b50
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x44f0f4]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x193
push 0x41091c
push 0x402d58
push 0x4101a0
call fcn.00440fc8
xor esi, esi
lea ecx, [esp + 0x70]
push esi
call fcn.00441304
push 0xf003f
push esi
push esi
mov ebx, esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x437c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437bc9
movzx eax, ax
or eax, 0x80070000
push eax
push 0x410954
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x1a2
push 0x41091c
push 0x402d58
push 0x4101a0
mov dword [esp + 0x98], eax
call fcn.00440fc8
lea eax, [esp + 0x78]
push eax
call fcn.00441c0c
add esp, 0x64
jmp 0x437df3
push 0xf01ff
push 0x40b0a8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x437c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437c36
movzx eax, ax
or eax, 0x80070000
push eax
push 0x410994
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x1ab
jmp 0x437be0
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x437c8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437c71
movzx eax, ax
or eax, 0x80070000
push eax
push 0x4109d0
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x1b2
jmp 0x437be0
cmp dword [esp + 0x5c], 1
je 0x437df3
push 0x40b0a8
lea eax, [esp + 0x1c]
push 0x410a18
push eax
call fcn.00442020
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x437cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437cd3
movzx eax, ax
or eax, 0x80070000
push eax
push 0x410a40
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x1bf
jmp 0x437be0
cmp dword [esp + 0x5c], 1
je 0x437df3
mov edi, dword [esp + 0x70]
test edi, edi
jne 0x437d05
push 0x64
pop edi
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, edi
mov eax, ebx
sub eax, dword [esp + 0x10]
cmp eax, 0x1f4
jb 0x437d30
lea eax, [esp + 0x18]
push 0x4047e0
push eax
call fcn.00442020
pop ecx
pop ecx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x437d9e
cmp dword [esp + 0x5c], 1
je 0x437def
cmp ebx, 0x2710
jb 0x437cfa
mov eax, 0x8000ffff
push eax
push 0x40b0a8
push 0x410a80
sub esp, 0x58
mov dword [esp + 0x84], eax
mov ecx, esp
push 0xdc
push 9
push 0x1e2
push 0x41091c
push 0x402d58
push 0x4101a0
call fcn.00440fc8
lea eax, [esp + 0x7c]
push eax
call fcn.00441c0c
add esp, 0x68
jmp 0x437def
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x437db0
movzx eax, ax
or eax, 0x80070000
push eax
push 0x4109d0
sub esp, 0x58
mov dword [esp + 0x80], eax
mov ecx, esp
push 0xdc
push 9
push 0x1d6
push 0x41091c
push 0x402d58
push 0x4101a0
call fcn.00440fc8
lea eax, [esp + 0x78]
push eax
call fcn.00441c0c
add esp, 0x64
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x403c20
push eax
call fcn.00442020
pop ecx
pop ecx
test esi, esi
je 0x437e0f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x437e1a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x20], 0
lea ecx, [esp + 0x18]
setge bl
call fcn.004413c9
mov ecx, dword [esp + 0x74]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004437b0
mov esp, ebp
pop ebp
ret 4