Function at 0x49dba0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be673
mov eax, dword fs:[0]
push eax
mov eax, 0x1130
call fcn.0059a600
mov eax, dword [0x6319d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0046d4f0
test eax, eax
je 0x49dc5b
mov eax, dword [ebp + 8]
push eax
push str.KillThisGuy_:_csAppToTerminate___s_n
push 0x6c5be0
call fcn.00599ee3
mov ecx, dword [str.ENTRY:]
mov edx, dword [0x5ccf7c]
mov eax, 0x6c5be0
mov dword [0x6c5ae0], ecx
add esp, 0xc
mov dword [0x6c5ae4], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49dc17
mov edi, 0x6c5ae0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49dc28
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x6c5ae0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov dword [ebp - 0x111c], 0
call fcn.004a8620
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49dc7f
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1118], eax
push str.PSAPI.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x1124], ebx
test ebx, ebx
je 0x49dd6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push ebx
call esi
mov edi, eax
test edi, edi
je 0x49dd40
push str.EnumProcessModules
push ebx
call esi
mov dword [ebp - 0x1128], eax
test eax, eax
je 0x49dd16
push str.GetModuleBaseNameA
push ebx
call esi
mov dword [ebp - 0x1130], eax
test eax, eax
jne 0x49ddc1
call fcn.0046d4f0
test eax, eax
je 0x49dfb6
push str.Failed_to_load_export_GetModuleBaseNameA_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x49e004
call fcn.0046d4f0
test eax, eax
je 0x49dfb6
push str.Failed_to_load_export_EnumProcessModules_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x49e004
call fcn.0046d4f0
test eax, eax
je 0x49dfb6
push str.Failed_to_load_export_EnumProcesses_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x49e004
call fcn.0046d4f0
test eax, eax
je 0x49dd84
push str.Failed_to_load_PSAPI.dll_file_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x112c], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x49dfbf
cmp eax, dword [esi - 0x10]
jne 0x49dfbf
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x49dff1
lea ecx, [ebp - 0x1134]
push ecx
push 0x1000
lea edx, [ebp - 0x1114]
push edx
call edi
mov edi, dword [ebp - 0x1134]
shr edi, 2
xor ebx, ebx
mov dword [ebp - 0x1120], edi
test edi, edi
je 0x49dfb0
mov eax, dword [str.unknown]
mov ecx, dword [0x5d2294]
push 0xfc
lea edx, [ebp - 0x10c]
push 0
push edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], ecx
call fcn.00599fb0
mov eax, dword [ebp + ebx*4 - 0x1114]
add esp, 0xc
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x49dfa0
lea ecx, [ebp - 0x112c]
push ecx
push 4
lea edx, [ebp - 0x113c]
push edx
push esi
call dword [ebp - 0x1128]
test eax, eax
je 0x49dfa0
mov ecx, dword [ebp - 0x113c]
push 0x104
lea eax, [ebp - 0x114]
push eax
push ecx
push esi
call dword [ebp - 0x1130]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49de80
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x1118]
call fcn.004026b0
lea ecx, [ebp - 0x1118]
call fcn.004027d0
mov eax, dword [ebp - 0x1118]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x49dfa0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x49dfa0
test ecx, ecx
js 0x49deed
mov edi, dword [ebp - 0x1118]
push eax
push edi
call fcn.0059a963
add esp, 8
test eax, eax
je 0x49dee4
sub eax, edi
cmp eax, 0xffffffff
jne 0x49df1d
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x1120]
cmp dword [eax - 0xc], 0
jl 0x49dfa0
mov ecx, dword [ebp - 0x1118]
push ecx
push eax
call fcn.0059a963
add esp, 8
test eax, eax
je 0x49dfa0
sub eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x49dfa0
jmp 0x49df23
mov edi, dword [ebp - 0x1120]
call fcn.0046d4f0
test eax, eax
je 0x49df3d
push str.Found_App_Running..attempting_to_stop_it_n
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
lea edx, [ebp - 0x1138]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x49dfa0
mov eax, dword [ebp - 0x1138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x49df6d
mov dword [ebp - 0x111c], 1
jmp 0x49dfa0
call fcn.0046d4f0
test eax, eax
je 0x49dfa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_:_Failed_to_stop_app_:_GetLastError_____d_n
push 0x6c59e0
call fcn.00599ee3
add esp, 0xc
push 0x6c59e0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x49ddef
mov ebx, dword [ebp - 0x1124]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x49e004
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x49dfd8
call fcn.00401f40
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0059aa3b
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.0049d8b0
add esp, 4
mov dword [ebp - 0x111c], eax
call fcn.0046d4f0
test eax, eax
je 0x49e08b
mov edx, dword [ebp - 0x111c]
push edx
push str.KillThisGuy_:_bRetVal___d_n
push 0x6c58e0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x6c57e0], eax
mov eax, 0x6c58e0
mov dword [0x6c57e4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49e047
mov edi, 0x6c57e0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49e058
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x6c57e0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 0x1118]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49e0b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e0d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x111c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599ed4
mov esp, ebp
pop ebp
ret