Function at 0x4a65f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72120d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x48]
push eax
call fcn.00490140
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov esi, dword [eax]
push 0x17
push str.persistent_failed_times
mov eax, dword [esi]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov edi, dword [eax + 0x20]
xor eax, eax
mov word [ebp - 0x28], ax
call fcn.00481410
mov byte [ebp - 4], 1
mov eax, bind
mov ecx, dword [0x84496c]
sub eax, ecx
cmp eax, 0xb
jb 0x4a6833
cmp dword [0x844970], 8
mov eax, 0x84495c
push 0xb
cmovae eax, dword [0x84495c]
push str.persistent
push ecx
push eax
push 0x84495c
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.0049d060
push 0x200
push 5
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
push reloc.WS2_32.dll_bind
call edi
lea ecx, [ebp - 0x40]
call fcn.004813b0
lea ecx, [ebp - 0x28]
call fcn.004813b0
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4a6700
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4a6700
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4a6700
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x12
xor eax, eax
mov dword [ebp - 0x28], 0
push str.WSCommunicator.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00481410
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
call fcn.004c8370
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004813b0
test esi, esi
je 0x4a6818
push esi
push str.stop_wsc_process:_pid_d
push 0xcd
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_src_toolIoTMessageDispatcheriot_installation.cpp
push str.WSC_Process_Mode_Cleaner::stop_wsc_process
push 0x44
push 4
call fcn.0050ef60
push esi
mov edx, 0x1fffff
lea ecx, [ebp - 0x48]
call fcn.004c85d0
add esp, 0x20
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4a67f3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a67f3
push str.stop_wsc_process:_TerminateProcess___
push 0xd4
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_src_toolIoTMessageDispatcheriot_installation.cpp
push str.WSC_Process_Mode_Cleaner::stop_wsc_process
push 0x44
push 4
call fcn.0050ef60
add esp, 0x18
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a67f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.stop_wsc_process:_terminate_process_failed:_lu___
push 0xd7
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_src_toolIoTMessageDispatcheriot_installation.cpp
push str.WSC_Process_Mode_Cleaner::stop_wsc_process
push 0x44
push 4
call fcn.0050ef60
add esp, 0x1c
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x4a6818
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4a6818
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4a6818
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret
call fcn.00481190
int3