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

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.004012d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor ebx, ebx
lea ecx, [esp + 0xc]
push ecx
push ebx
mov esi, eax
mov eax, dword [esp + 0x34]
push esi
push 0x4010e0
push ebx
lea edx, [esp + 0x24]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push edx
mov dword [esi + 0xc], eax
call edi
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4014a0
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x40ea60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409fe6
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402060
add esp, 0x1c
pop edi
mov dword [esi + 0xc], 0xffffffff
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x401210
push ebx
lea ecx, [esp + 0x24]
push ecx
call edi
cmp eax, ebx
mov dword [esi + 0x14], eax
jne 0x4014ff
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x40ea60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409fe6
add esp, 0xc
push eax
push str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402060
mov edx, dword [esi + 0x14]
add esp, 0x1c
push ebx
push edx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x10]
push 0xffffffffffffffff
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x14]
push ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
mov edx, dword [esi + 8]
push eax
push 3
mov dword [esp + 0x34], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
push ebx
je 0x401580
dec eax
je 0x40156e
dec eax
je 0x401559
push ebx
push ebx
push ebx
push ebx
push 0xa
push 0x40ea60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409fe6
add esp, 0xc
push eax
push str.WaitForMultipleObjects_error:__s
call fcn.00402060
add esp, 0x1c
jmp 0x401596
mov ecx, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push ecx
call edi
mov edx, dword [esi + 0x10]
push ebx
push edx
call edi
jmp 0x401596
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 8]
push 1
push ecx
jmp 0x401590
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0xc]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push eax
call ebx
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov eax, dword [esi + 8]
push eax
call edi
push esi
call fcn.0040407b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret