Function at 0x40e4f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x459074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
lea ecx, [ebp - 0x24]
call fcn.00409d50
push str.byod_agent.exe
lea ecx, [ebp - 0x5c]
call fcn.00411df0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x58]
call fcn.0040a5b0
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040e3d0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00411dd0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x2c], edx
push 4
lea ecx, [ebp - 0x14]
call fcn.00409d50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00411aa0
push 4
lea ecx, [ebp - 0x1c]
call fcn.00409d50
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00411a50
jmp 0x40e59c
lea ecx, [ebp - 0x14]
call fcn.0040ade0
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040a4d0
movzx eax, al
test eax, eax
je 0x40e716
lea ecx, [ebp - 0x14]
call fcn.00411a30
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
push 4
lea ecx, [ebp - 0x18]
call fcn.00409d50
mov edx, dword [ebp - 0x28]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x18]
call fcn.00413d30
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
test eax, eax
je 0x40e6b1
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a5b0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40e658
mov dword [ebp - 0x34], 0x44fe18
push 0x5c
mov eax, dword [ebp - 0x34]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40e62f
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x38], ecx
jmp 0x40e635
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x28]
push eax
push str.Kill_Agent_Success_PID__u_
push 0x1dc
mov ecx, dword [ebp - 0x38]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x14
xor edx, edx
jne 0x40e606
jmp 0x40e6af
mov dword [ebp - 0x40], 0x44fec8
push 0x5c
mov eax, dword [ebp - 0x40]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40e681
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x44], ecx
jmp 0x40e687
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x28]
push eax
push str.Kill_Agent_Failed_PID__u___LastError__u_
push 0x1e0
mov ecx, dword [ebp - 0x44]
push ecx
push 2
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x18
xor edx, edx
jne 0x40e658
jmp 0x40e709
mov dword [ebp - 0x4c], 0x44ff30
push 0x5c
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00423220
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x40e6da
mov ecx, dword [ebp - 0x48]
add ecx, 1
mov dword [ebp - 0x50], ecx
jmp 0x40e6e0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.byod_agent.exe
push str.can_not_find__s__error:_d
push 0x1e4
mov eax, dword [ebp - 0x50]
push eax
push 1
call dword [sym.imp.libnac_base.dll_error_output]
add esp, 0x18
xor ecx, ecx
jne 0x40e6b1
lea ecx, [ebp - 0x18]
call fcn.0040bf30
jmp 0x40e594
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00409f20
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421720
mov esp, ebp
pop ebp
ret