Function at 0x49b4c0
Capabilities:
Query service status

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f6f3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x5ba11c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], edx
mov edi, ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], eax
mov dword [eax], 0
mov eax, dword [edi]
mov dword [ebp - 0x68], eax
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c21eb], 0
xorps xmm0, xmm0
movsd qword [ebp - 0x70], xmm0
jne 0x49b587
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x49b579
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c21eb
sub esp, 0xc
push 0x7f
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x48
call fcn.004d0210
jmp 0x49b57b
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5c4a00], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4a00]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4a00]
mov esi, dword [ebp - 0x68]
mov eax, dword [eax]
mov esi, dword [esi + 8]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4c], eax
call fcn.0044d220
mov ecx, eax
test ecx, ecx
je 0x49bf18
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
push esi
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 1
call fcn.00452e50
test al, al
jne 0x49b5eb
push esi
lea ecx, [ebp - 0x60]
call fcn.00452330
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x60]
push esi
push str.Connect_to_SCM_on_the__s...
push dword [0x5c4a00]
call dword [ebp - 0x4c]
add esp, 0xc
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], 3
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49b628
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x5c4a00]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4a00]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
push 0xf003f
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 4], 4
test edi, edi
jne 0x49b835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
call fcn.004d03a0
mov edi, eax
mov ecx, edi
call fcn.004d0140
cmp byte [0x5c21fa], 0
jne 0x49b6d5
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x49b6ce
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c21fa
sub esp, 0xc
push 0x84
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x20
call fcn.004d0210
jmp 0x49b6d0
xor eax, eax
mov dword [0x5c49f4], eax
mov ecx, edi
call fcn.004d0150
mov ecx, dword [0x5c49f4]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c49f4]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4c]
mov edi, dword [ebp - 0x4c]
mov edx, edi
call fcn.0044f250
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
push dword [eax]
call fcn.004523d0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
add edx, 0xfffffff0
mov dword [ebp - 0x64], 1
mov byte [ebp - 4], 8
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49b744
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 6
push dword [eax]
push str.OpenSCManager_failed._Error___s_
push dword [0x5c49f4]
call dword [ebp - 0x58]
mov edx, dword [ebp - 0x60]
add esp, 0xc
add edx, 0xfffffff0
mov byte [ebp - 4], 9
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49b779
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov ecx, dword [0x5c49f4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c49f4]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.0044f250
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
call fcn.0044d220
mov ecx, eax
test ecx, ecx
je 0x49bf22
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x64], eax
push 0xa2
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.00452740
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
push eax
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.004721b0
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0xe
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49b812
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0xf
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x49b82e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x49befa
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
push dword [eax]
call fcn.004523d0
mov byte [ebp - 4], 0x10
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49b862
sub ecx, dword [ebp - 0x4c]
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004700c0
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49b894
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
push 0xf01ff
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0x14
test esi, esi
jne 0x49bb28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
cmp eax, 0x424
jne 0x49b990
call fcn.004d03a0
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.004d0140
cmp byte [0x5c21d2], 0
jne 0x49b92c
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x49b921
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c21d2
sub esp, 0xc
push 0x91
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x50
call fcn.004d0210
jmp 0x49b923
xor eax, eax
mov byte [ebp - 4], 0x14
mov dword [0x5c4a68], eax
mov ecx, dword [ebp - 0x4c]
call fcn.004d0150
mov ecx, dword [0x5c4a68]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov edx, dword [0x5c4a68]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [edx]
mov ecx, dword [eax + 0x48]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str._s_service_is_not_installed
push edx
call ecx
mov ecx, dword [0x5c4a68]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov eax, dword [0x5c4a68]
lea ecx, [eax + 0xd0]
call fcn.004d0150
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], 1
jmp 0x49be9f
call fcn.004d03a0
mov ecx, eax
mov dword [ebp - 0x4c], eax
call fcn.004d0140
cmp byte [0x5c21f9], 0
jne 0x49b9ee
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0x16
test eax, eax
je 0x49b9e7
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c21f9
sub esp, 0xc
push 0x96
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x20
call fcn.004d0210
jmp 0x49b9e9
xor eax, eax
mov dword [0x5c4a9c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.004d0150
mov ecx, dword [0x5c4a9c]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4a9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
call fcn.0044f250
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x54]
push dword [eax]
call fcn.004523d0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
add edx, 0xfffffff0
mov dword [ebp - 0x64], 2
mov byte [ebp - 4], 0x19
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49ba5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push dword [ecx]
push eax
push str.OpenService_for__s_failed._Error:___s_
push dword [0x5c4a9c]
call dword [ebp - 0x60]
mov edx, dword [ebp - 0x54]
add esp, 0x10
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1a
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49ba9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, dword [0x5c4a9c]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4a9c]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0044f250
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x5c]
mov eax, dword [eax]
push 0x9b
mov dword [ebp - 0x54], eax
call fcn.00454430
mov byte [ebp - 4], 0x1c
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.004721b0
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1d
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49bb19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x1e
jmp 0x49bda3
call fcn.004d03a0
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.004d0140
cmp byte [0x5c2209], 0
jne 0x49bb8a
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x1f
test eax, eax
je 0x49bb7f
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2209
sub esp, 0xc
push 0x9c
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x50
call fcn.004d0210
jmp 0x49bb81
xor eax, eax
mov byte [ebp - 4], 0x14
mov dword [0x5c4a24], eax
mov ecx, dword [ebp - 0x54]
call fcn.004d0150
mov ecx, dword [0x5c4a24]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov edx, dword [0x5c4a24]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [edx]
mov ecx, dword [eax + 0x48]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str._s_service_is_installed
push edx
call ecx
mov ecx, dword [0x5c4a24]
add esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4a24]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
lea eax, [ebp - 0x48]
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x48], xmm0
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x49bdc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
call fcn.004d03a0
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.004d0140
cmp byte [0x5c21e9], 0
jne 0x49bc6e
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x20
test eax, eax
je 0x49bc67
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c21e9
sub esp, 0xc
push 0xa3
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x20
call fcn.004d0210
jmp 0x49bc69
xor eax, eax
mov dword [0x5c4a04], eax
mov ecx, dword [ebp - 0x54]
call fcn.004d0150
mov ecx, dword [0x5c4a04]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4a04]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x54]
mov edx, dword [ebp - 0x58]
call fcn.0044f250
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x60]
push dword [eax]
call fcn.004523d0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
add edx, 0xfffffff0
mov dword [ebp - 0x64], 4
mov byte [ebp - 4], 0x23
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x49bcda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push dword [ecx]
push eax
push str.QueryServiceStatus_for__s_failed._Error:___s_
push dword [0x5c4a04]
call dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add esp, 0x10
add edx, 0xfffffff0
mov byte [ebp - 4], 0x24
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49bd1f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, dword [0x5c4a04]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4a04]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.0044f250
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x5c]
mov eax, dword [eax]
push 0x137
mov dword [ebp - 0x54], eax
call fcn.00454430
mov byte [ebp - 4], 0x26
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.004721b0
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x27
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49bd99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x28
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49bdb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0x4d], 0
jmp 0x49bea3
call fcn.004d03a0
mov ecx, eax
mov dword [ebp - 0x54], eax
call fcn.004d0140
cmp byte [0x5c220f], 0
jne 0x49be23
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x29
test eax, eax
je 0x49be18
movsd xmm0, qword [ebp - 0x70]
sub esp, 8
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c220f
sub esp, 0xc
push 0xaa
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUI_agent_install_utilites.cpp
push 0x50
call fcn.004d0210
jmp 0x49be1a
xor eax, eax
mov byte [ebp - 4], 0x14
mov dword [0x5c4a54], eax
mov ecx, dword [ebp - 0x54]
call fcn.004d0150
mov ecx, dword [0x5c4a54]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4a54]
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x54], eax
call fcn.0049ab30
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
push ecx
push str._s_service_state:__s
push dword [0x5c4a54]
call dword [ebp - 0x54]
mov ecx, dword [0x5c4a54]
add esp, 0x14
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4a54]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
mov ecx, dword [ebp - 0x44]
call fcn.0049aa90
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
mov byte [ebp - 0x4d], 1
test esi, esi
je 0x49beae
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x49bede
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49bed4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49bf2c
push edx
push ecx
call fcn.004eb418
add esp, 8
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004eabba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.0044a700
push 0x80004005
call fcn.0044a700
call fcn.004fafb1
int3