Function at 0x402400
Capabilities:
Query service status

Disassembly:
mov eax, 0x2244
call fcn.0041e770
mov eax, dword [0x42c400]
xor eax, esp
mov dword [esp + 0x223c], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x145]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x14c], 0
call fcn.0041c150
add esp, 0xc
push 0xfff
lea ecx, [esp + 0x124d]
push 0
push ecx
mov byte [esp + 0x1254], 0
call fcn.0041c150
add esp, 0xc
push 0xfff
lea edx, [esp + 0x24d]
push 0
push edx
mov byte [esp + 0x254], 0
call fcn.0041c150
add esp, 0xc
push 0xff
lea eax, [esp + 0x45]
push 0
push eax
mov byte [esp + 0x4c], 0
call fcn.0041c150
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push ebx
xor eax, eax
mov dword [esp + 0x1c], 0
call fcn.00407f50
add esp, 8
test eax, eax
je 0x4029f0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4029f0
push ebx
lea eax, [esp + 0x144]
call fcn.00407e50
add esp, 4
test eax, eax
jne 0x4024fe
push str._IsaRemove__cannot_get_svc_bin_path
push 0x224
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405d70
push str._IsaRemove__cannot_get_svc_bin_path
push 0x224
jmp 0x402a15
lea edx, [esp + 0x140]
push str.svchost.exe__k
push edx
or eax, 0xffffffff
call fcn.0040b960
mov esi, eax
add esp, 8
test esi, esi
jne 0x40256d
lea eax, [esp + 0x140]
push eax
push str._IsaRemove__svc_bin_path:__s__is_unknown
push 0x22a
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405d70
add esp, 0x14
lea ecx, [esp + 0x140]
push ecx
push str._IsaRemove__svc_bin_path:__s__is_unknown
push 0x22a
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405a90
add esp, 0x14
jmp 0x402a29
add esi, 0xf
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402575
sub eax, edx
jne 0x4025c5
push esi
push str._IsaRemove__svc_group:__s__is_unknown
push 0x231
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405d70
add esp, 0x14
push esi
push str._IsaRemove__svc_group:__s__is_unknown
push 0x231
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405a90
add esp, 0x14
jmp 0x402a29
push 0x1000
lea edx, [esp + 0x124c]
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvchost
call fcn.00407960
add esp, 0xc
test eax, eax
jne 0x40260d
push str._IsaRemove__cannot_read_svchost_group_list_fail
push 0x237
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405d70
push str._IsaRemove__cannot_read_svchost_group_list_fail
push 0x237
jmp 0x402a15
cmp byte [esp + 0x1248], 0
lea ebp, [esp + 0x1248]
je 0x4026e1
push ebx
push ebp
mov dword [esp + 0x18], 0
call fcn.004157a3
add esp, 8
test eax, eax
je 0x4026c7
push str.IsaSvc
push ebp
call fcn.004157a3
add esp, 8
test eax, eax
je 0x4026c7
push 0
push ebp
lea eax, [esp + 0x18]
call fcn.00407f50
add esp, 8
test eax, eax
je 0x4026c7
cmp dword [esp + 0x10], 4
jne 0x4026c7
mov eax, ebp
mov edx, ebp
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402670
lea edi, [esp + 0x248]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402685
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x248]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4026b0
mov ax, word [0x425244]
mov word [edi], ax
mov edi, dword [esp + 0x14]
push 0
push ebp
call fcn.00413610
add eax, 1
mov ebp, eax
add esp, 8
cmp byte [ebp], 0
jne 0x402622
push edi
call fcn.00406950
add esp, 4
test eax, eax
jne 0x402718
push str._IsaRemove__kill_svchost_process_fail
push 0x248
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405d70
push str._IsaRemove__kill_svchost_process_fail
push 0x248
jmp 0x402a15
push str.GlobalIsaSvcForceExit
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
je 0x40273d
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push str.Terminate_Svchost_Svc:__s__Process:__u_
push 0x253
push str..Setup.cpp
push 3
mov ecx, str.ForceExitSvchost
call fcn.00405d70
push edi
push ebx
push str.Terminate_Svchost_Svc:__s__Process:__u_
push 0x253
push str..Setup.cpp
push 3
mov ecx, str.ForceExitSvchost
call fcn.00405a90
add esp, 0x30
xor esi, esi
lea esp, [esp]
push ebp
push ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00407f50
add esp, 8
test eax, eax
je 0x40279d
cmp dword [esp + 0x10], 1
je 0x4027b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0x3c
jb 0x402780
push ebx
push str.Wait_for_Svchost_Svc:__s__is_stopped
push 0x25f
push str..Setup.cpp
push 3
mov ecx, str.ForceExitSvchost
call fcn.00405d70
add esp, 0x14
push ebx
push str.Wait_for_Svchost_Svc:__s__is_stopped
push 0x25f
push str..Setup.cpp
push 3
mov ecx, str.ForceExitSvchost
call fcn.00405a90
lea ecx, [esp + 0x54]
add esp, 0x14
push ecx
xor ecx, ecx
lea eax, [esp + 0x24c]
xor esi, esi
call fcn.0040b8d0
add esp, 4
test eax, eax
je 0x4028d7
mov edi, edi
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402817
sub eax, edx
je 0x4028b6
lea edx, [esp + 0x40]
push ebp
push edx
call fcn.00407c60
add esp, 8
test eax, eax
mov ecx, str.ForceExitSvchost
je 0x402875
lea eax, [esp + 0x40]
push eax
push str.Restart_svchost_normal_svc:___s_...
push 0x266
push str..Setup.cpp
push 3
call fcn.00405d70
add esp, 0x14
lea ecx, [esp + 0x40]
push ecx
push str.Restart_svchost_normal_svc:___s_...
push 0x266
push str..Setup.cpp
push 3
jmp 0x4028a9
lea edx, [esp + 0x40]
push edx
push str.Restart_svchost_normal_svc:___s_...
push 0x268
push str..Setup.cpp
push 1
call fcn.00405d70
add esp, 0x14
lea eax, [esp + 0x40]
push eax
push str.Restart_svchost_normal_svc:___s_...
push 0x268
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405a90
add esp, 0x14
lea ecx, [esp + 0x40]
add esi, 1
push ecx
mov ecx, esi
lea eax, [esp + 0x24c]
call fcn.0040b8d0
add esp, 4
test eax, eax
jne 0x402810
lea edx, [esp + 0x248]
push str.themes
push edx
or eax, 0xffffffff
call fcn.0040b960
add esp, 8
test eax, eax
je 0x4029e9
mov dword [esp + 0x14], ebp
jmp 0x402902
xor ebp, ebp
push closesocket
push ebp
push ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402980
push 4
push str.themes
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402954
lea eax, [esp + 0x18]
push eax
push 0x24
lea ecx, [esp + 0x24]
push ecx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x402954
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ebp, eax
je 0x402967
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x402980
cmp dword [esp + 0x10], 1
je 0x40299f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0x14
mov dword [esp + 0x14], eax
jb 0x402900
push str.Restart_themes_service__force_reload_desktop_theme
push 0x278
push str..Setup.cpp
push 3
mov ecx, str.ForceExitSvchost
call fcn.00405d70
push str.Restart_themes_service__force_reload_desktop_theme
push 0x278
push str..Setup.cpp
push 3
mov ecx, str.ForceExitSvchost
call fcn.00405a90
call fcn.00407d20
push 1
push str.themes
call fcn.00407c60
add esp, 0x28
mov eax, 1
jmp 0x402a2b
push str._IsaRemove__cannot_get_svc_process_id
push 0x21e
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405d70
push str._IsaRemove__cannot_get_svc_process_id
push 0x21e
push str..Setup.cpp
push 1
mov ecx, str.ForceExitSvchost
call fcn.00405a90
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0x224c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041310b
add esp, 0x2244
ret