Function at 0x14000c460
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
cmp edx, 0x10
jg 0x14000c496
mov eax, edx
and eax, 0x8000000f
jge 0x14000c48e
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x14000c654
movsxd r12, edx
lea ebx, [rdx - 0x10]
sub r12, 0x10
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, r12
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140021acb
test rdi, rdi
je 0x14000c654
mov ecx, dword [0x140033988]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rdx, [0x140034ad8]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x90], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], ebx
call fcn.140012eb0
test eax, eax
jne 0x14000c700
mov r8d, dword [rsp + 0x90]
lea rcx, [r12 + rsi]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000c533
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000c654
movzx eax, word [0x140033994]
xor ebp, ebp
test ax, ax
je 0x14000c55b
cmp ax, 1
jne 0x14000c700
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000c5bb
mov ecx, dword [0x140033990]
lea r14, [0x1400339a0]
mov qword [rsp + 0x28], r14
lea r8, [0x140036cc0]
mov r9d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], ebp
lea rdx, [0x140034ac8]
call fcn.1400132b0
test eax, eax
jne 0x14000c6f4
mov r9, r14
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call fcn.140013020
test eax, eax
jne 0x14000c6f4
mov rcx, r14
call fcn.14000def0
test eax, eax
jne 0x14000c6f4
cmp ebx, 4
jae 0x14000c5c8
mov r15, rdi
mov r14d, ebx
jmp 0x14000c5da
mov ecx, dword [rdi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebp, eax
lea r15, [rdi + 4]
lea r14d, [rbx - 4]
lea ecx, [rbp + 0xe10]
cmp ecx, dword [0x14003398c]
jg 0x14000c690
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [0x14003398c]
sub ecx, ebp
sub ecx, 0xe10
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [0x140036d14], 1
mov dword [rsp + 0x88], eax
jne 0x14000c683
mov rax, qword [0x140036d20]
cmp word [rax + 0x1c0], 2
jne 0x14000c683
mov ecx, dword [rax + 0x1c8]
test ecx, ecx
je 0x14000c683
mov r8d, reloc.WS2_32.dll_select
cmp ecx, 4
jb 0x14000c66f
lea edx, [r8 - 0xe]
lea r9d, [r8 - 0x11]
lea rcx, [rsp + 0x88]
call fcn.14000a200
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x88]
mov ecx, 4
call fcn.14000a2f0
jmp 0x14000c654
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 0x12]
jmp 0x14000c647
cmp r14d, 4
jb 0x14000c6eb
mov ecx, dword [r15]
call qword [sym.imp.WS2_32.dll_ntohl]
add r14d, 0xfffffffc
lea rdx, [r15 + 4]
test eax, eax
je 0x14000c6eb
cmp eax, ebx
jg 0x14000c6eb
cmp r14d, eax
jl 0x14000c6eb
test rdx, rdx
je 0x14000c6eb
movsxd rbx, eax
mov rcx, rsi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8, r12
mov dword [0x14003398c], ebp
xor edx, edx
mov rcx, rdi
call fcn.140021acb
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
jmp 0x14000c656
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3