Function at 0x40112c
Capabilities:
Stop service

Disassembly:
jmp 0x4064a0
push 0xffffffffffffffff
push 0x434660
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x43f1c0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43f1c0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xac]
xor ebx, ebx
cmp esi, ebx
jne 0x4064ef
xor eax, eax
jmp 0x4068d6
mov eax, 0xf
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
push 0xe
push str.StopNTService_
lea ecx, [esp + 0x64]
mov dword [esp + 0xac], ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
call fcn.0040108c
mov eax, esi
mov byte [esp + 0xa4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406535
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.004011f4
mov ebp, dword [esp + 0xb0]
push ebp
lea eax, [esp + 0x7c]
push str.___u_:
push eax
call fcn.0040c979
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406570
sub eax, edx
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x64]
call fcn.004011f4
push 0x20000
push str.ServicesActive
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x40662e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x60]
mov edi, 0x10
cmp dword [esp + 0x74], edi
jae 0x4065c0
lea edx, [esp + 0x60]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4065c5
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.0040108c
push 0x20
push str.OpenSCManager_FAILED_with_ErrNo
lea ecx, [esp + 0x48]
call fcn.004011f4
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4065f2
sub eax, edx
push eax
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x48]
call fcn.004011f4
cmp dword [esp + 0x58], edi
mov eax, dword [esp + 0x44]
jae 0x40661a
lea eax, [esp + 0x44]
push ebx
push eax
push str.UtlSvrHelp
call fcn.00401217
add esp, 0xc
jmp 0x40689b
push 0x20020
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x4066f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x7c]
push 0x4387f0
push eax
call fcn.0040c979
mov edx, dword [esp + 0x6c]
mov ebx, 0x10
add esp, 0xc
cmp dword [esp + 0x74], ebx
jae 0x406673
lea edx, [esp + 0x60]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406678
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.0040108c
push 0xc
push str.OpenService_
lea ecx, [esp + 0x48]
call fcn.004011f4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4066a3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.004011f4
push 0x14
push str.__FAILED_with_ErrNo
lea ecx, [esp + 0x48]
call fcn.004011f4
lea eax, [esp + 0x78]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4066d0
sub eax, edx
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x48]
call fcn.004011f4
cmp dword [esp + 0x58], ebx
jmp 0x406862
lea edx, [esp + 0x24]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40679f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
lea eax, [esp + 0x7c]
push 0x4387f0
push eax
call fcn.0040c979
mov eax, dword [esp + 0x6c]
mov ebx, 0x10
add esp, 0xc
cmp dword [esp + 0x74], ebx
jae 0x406737
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x44]
call fcn.004010b9
push str.ControlService_stop
lea ecx, [esp + 0x44]
call fcn.0040114a
push esi
lea ecx, [esp + 0x44]
call fcn.0040114a
push str.__FAILED_with_ErrNo
lea ecx, [esp + 0x44]
call fcn.0040114a
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x44]
call fcn.0040114a
cmp dword [esp + 0x58], ebx
mov eax, dword [esp + 0x44]
jae 0x406783
lea eax, [esp + 0x44]
push 0
push eax
push str.UtlSvrHelp
call fcn.00401217
add esp, 0xc
cmp edi, 0x425
jne 0x40687c
xor ebx, ebx
cmp ebp, ebx
je 0x40687c
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x1c], ebx
xor edi, edi
call fcn.004010fa
add esp, 8
test eax, eax
je 0x406833
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4067d0
mov eax, 1
cmp dword [esp + 0x14], eax
je 0x4067fd
add edi, eax
cmp edi, 0x12c
ja 0x40680b
push 0x64
call ebp
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004010fa
add esp, 8
test eax, eax
jne 0x4067d0
jmp 0x406803
mov ebx, eax
mov dword [esp + 0x18], eax
cmp edi, 0x12c
jbe 0x40682f
mov eax, dword [esp + 0x60]
mov esi, 0x10
cmp dword [esp + 0x74], esi
jae 0x40681e
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x44]
call fcn.004010b9
push str._time_out.
jmp 0x406855
test ebx, ebx
jne 0x40687c
mov eax, dword [esp + 0x60]
mov esi, 0x10
cmp dword [esp + 0x74], esi
jae 0x406846
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x44]
call fcn.004010b9
push str._GetServiceState_FAILED.
lea ecx, [esp + 0x44]
call fcn.0040114a
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x40686c
lea eax, [esp + 0x44]
push 0
push eax
push str.UtlSvrHelp
call fcn.00401217
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp eax, ebx
je 0x406896
push eax
call esi
mov edi, 0x10
cmp dword [esp + 0x74], edi
jb 0x4068ae
mov edx, dword [esp + 0x60]
push edx
call fcn.0040c526
add esp, 4
cmp dword [esp + 0x58], edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], 0
jb 0x4068d2
mov eax, dword [esp + 0x44]
push eax
call fcn.0040c526
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0040c96a
add esp, 0x94
ret