Function at 0x4026fd
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push rbp
mov rbp, rsp
push rbx
sub rsp, 0x98
mov qword [rbp + 0x10], rcx
call fcn.00402470
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x40], 0x18
mov qword [rbp - 0x38], 0
mov dword [rbp - 0x30], 0
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 0x18], rdx
lea rcx, [0x00402c97]
mov rbx, qword [rbp - 0x18]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x44]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rcx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rdx, qword [rbp - 0x18]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x4027ed
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0xa
lea rdx, [0x0040ba50]
mov ecx, eax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, [0x00409228]
call fcn.004034eb
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x18], 0xffffffffffffffff
mov eax, 0
jmp 0x402ada
lea rcx, [0x00402e52]
mov rbx, qword [rbp - 0x18]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x44]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rcx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rdx, qword [rbp - 0x18]
mov qword [rdx + 0x28], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x4028bf
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0xa
lea rdx, [0x0040ba50]
mov ecx, eax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, [0x00409228]
call fcn.004034eb
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov eax, 0
jmp 0x402ada
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
mov r9d, 0xffffffff
mov r8d, 0
mov rdx, rax
mov ecx, 3
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cmp eax, 1
je 0x402953
cmp eax, 2
je 0x40298a
test eax, eax
jne 0x4029be
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x10]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
jmp 0x402a12
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x10]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
jmp 0x402a12
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
jmp 0x402a12
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, 0xa
lea rdx, [0x0040ba50]
mov ecx, eax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, [0x00409260]
call fcn.004034eb
nop
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 1
add rsp, 0x98
pop rbx
leave
ret