Function at 0x413320
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x128]
push 0x124
push 0
push eax
call fcn.004e69c0
add esp, 0xc
test edi, edi
je 0x413521
cmp byte [edi], 0
je 0x413521
push ebx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413397
push str._GetLastError_
push dword [ebp + 0xc]
push edi
push str.:5:TerminateProcessByName__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED:__s
call fcn.00424a90
add esp, 0x10
or eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4133f0
push str._GetLastError_
push dword [ebp + 0xc]
push edi
push str.:5:TerminateProcessByName__s___d__FAILED:_Process32First___FAILED:__s
call fcn.00424a90
add esp, 0x10
push 0x770
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.TerminateProcessByNameCaseSens
push ebx
call fcn.00426230
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push esi
nop dword [eax]
cmp dword [ebp + 0xc], 0
je 0x41345b
test eax, eax
lea eax, [ebp - 0x108]
je 0x413442
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413432
test dl, dl
je 0x41342e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413432
add eax, 2
add ecx, 2
test dl, dl
jne 0x413412
xor eax, eax
jmp 0x413437
sbb eax, eax
or eax, 1
test eax, eax
jne 0x413457
mov eax, 1
jmp 0x413476
push edi
push eax
call fcn.004eeba8
add esp, 8
test eax, eax
jne 0x413457
mov eax, 1
jmp 0x413476
xor eax, eax
jmp 0x413476
test eax, eax
lea eax, [ebp - 0x108]
push edi
push eax
je 0x41346e
call fcn.004e61d0
jmp 0x413473
call fcn.004a96e0
add esp, 8
test eax, eax
je 0x4134d5
push dword [ebp - 0x124]
mov dword [ebp - 0x130], 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4134d5
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4134c0
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:1:TerminateProcessByName___encountered_a_problem:_TerminateProcess___FAILED_to_terminate__s:__s:_trying_once_more_with_higher_privilege...
call fcn.00424fd0
add esp, 0xc
push 0x7a1
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.TerminateProcessByNameCaseSens
push esi
call fcn.00426230
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x413400
pop esi
push 0x7fa
push str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
push str.TerminateProcessByNameCaseSens
push ebx
call fcn.00426230
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x130]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop edi
call fcn.004e50dc
mov esp, ebp
pop ebp
ret