Function at 0x403c40
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c920
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4bfdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x438]
push ebx
mov dword [ebp - 4], ebx
call fcn.0046e071
lea ecx, [esi + 0x48c]
push ebx
call fcn.0046e071
lea ecx, [esi + 0x4e0]
push ebx
call fcn.0046e071
push 0x4a5fb0
lea ecx, [ebp - 0x14]
call fcn.004051c0
push 0x4a5590
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004051c0
push ebx
push ebx
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x3b0]
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 3
ja case.default.0x403cd7
jmp dword [edi*4 + 0x403e90]
mov dword [esi + 0x94], ebx
push 0x4a5590
jmp 0x403cfe
push 0x4a55a0
jmp 0x403cfe
push str.W3SVC
jmp 0x403cfe
push str.ArcServerObjectManager
lea ecx, [ebp - 0x18]
call fcn.00404e20
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x403e07
mov ecx, dword [ebp - 0x18]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x403dfd
lea edx, [ebp - 0x38]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je case.0x403d57.4
mov eax, dword [ebp - 0x34]
add eax, 0xffffffff
cmp eax, 6
ja case.0x403d57.4
jmp dword [eax*4 + 0x403ea0]
push 0x4a5fdc
lea ecx, [ebp - 0x14]
call fcn.00404e20
push 1
lea ecx, [esi + 0x48c]
call fcn.0046e071
push 1
lea ecx, [esi + 0x4e0]
call fcn.0046e071
test edi, edi
jne case.0x403d57.4
mov dword [esi + 0x94], 1
jmp case.0x403d57.4
push 0x4a5fe8
lea ecx, [ebp - 0x14]
call fcn.00404e20
push 1
lea ecx, [esi + 0x438]
call fcn.0046e071
jmp case.0x403d57.4
push 0x4a5ff4
lea ecx, [ebp - 0x14]
call fcn.00404e20
push 1
lea ecx, [esi + 0x438]
call fcn.0046e071
push 1
lea ecx, [esi + 0x4e0]
call fcn.0046e071
jmp case.0x403d57.4
push 0x4a6000
lea ecx, [ebp - 0x14]
call fcn.00404e20
jmp 0x403d85
push 0x4a6014
lea ecx, [ebp - 0x14]
call fcn.00404e20
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [esi + 0x3e4]
call fcn.0046df9b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403e39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x403e2d