Function at 0x401780
Capabilities:
Check if file exists
Create thread
Enumerate processes
Get file attributes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
push 4
call fcn.004020f2
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [eax], 0x401220
push ecx
push 0
push eax
push 0x402090
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esp + 0x28], eax
test eax, eax
je 0x401a9b
push str.t6sp_mod.dll
lea ecx, [esp + 0x14]
call fcn.00401b20
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401803
test al, 0x10
jne 0x401803
xor bl, bl
jmp 0x401805
mov bl, 1
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x401843
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401839
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401839
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402122
add esp, 8
test bl, bl
je 0x401876
push str.t6sp_mod.dll_not_found
lea ecx, [esp + 0x14]
call fcn.00401b20
push 0
push str.Error
lea ecx, [esp + 0x18]
call fcn.00401ab0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.00401440
test eax, eax
je 0x4018a4
cmp dword [esp + 0x2c], 0
jne 0x40199f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004020e4
mov esp, ebp
pop ebp
ret 0x10
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401923
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4019be
nop dword [eax]
lea eax, [esp + 0x54]
push str.t6sp.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x40198f
lea eax, [esp + 0x30]
push eax
push esi
call ebx
test eax, eax
jne 0x4018e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4018c1
push str.t6sp_mod_failed_to_launch._Error:__2
lea ecx, [esp + 0x14]
call fcn.00401b20
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x401a5c
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a52
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [esp + 0x38]
call fcn.00401250
cmp dword [esp + 0x2c], 0
je 0x4019a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004020e4
mov esp, ebp
pop ebp
ret 0x10
push str.t6sp_mod_failed_to_launch._Error:__3
lea ecx, [esp + 0x14]
call fcn.00401b20
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x401a2f
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401a25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a25
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402122
add esp, 8
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
cmp dword [esp + 0x2c], eax
je 0x401a7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
push ecx
push edx
call fcn.00402122
add esp, 8
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
cmp dword [esp + 0x2c], eax
je 0x401a7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [esp + 0x264]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004020e4
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3