Function at 0x18000ca74
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ecx, 0x380
call fcn.180015838
mov edx, 0x100
mov rcx, rax
mov rbx, rax
call fcn.180015950
mov edx, 0x100
mov rcx, rbx
mov r13, rax
call fcn.180015950
mov edx, 0x80
mov rcx, rbx
call fcn.180015950
mov edx, 0x100
mov rcx, rbx
mov rdi, rax
call fcn.180015950
mov ecx, 8
mov rbp, rax
call fcn.18001966c
mov ecx, 1
mov r14, rax
call fcn.1800196a0
mov ecx, 2
movzx ebx, ax
and ebx, 0xfffffff7
call fcn.1800196a0
mov ecx, 3
movzx r15d, ax
call fcn.180019618
mov ecx, reloc.WS2_32.dll_send
mov esi, eax
call fcn.180019618
mov ecx, 9
mov dword [rsp + 0x78], eax
call fcn.18001966c
mov ecx, 0xa
mov r12, rax
call fcn.18001966c
mov qword [rsp + 0x80], rax
call fcn.18000f69c
test eax, eax
je 0x18000cb44
call fcn.180019c5c
mov ecx, 5
mov dword [section..data], esi
call fcn.1800196a0
movzx ecx, ax
mov dword [0x180040468], ecx
mov ecx, 4
call fcn.180019618
mov ecx, eax
call fcn.18001a7a4
mov ecx, 4
mov rsi, rax
call fcn.180019618
mov ecx, eax
call fcn.18001a7a4
mov ecx, 4
call fcn.180019618
mov r8, rbp
mov rcx, rsi
mov edx, eax
call fcn.180015544
cmp dword [section..data], 0
movsxd rbp, ebx
jbe 0x18000ceb1
cmp rbp, 1
jne 0x18000cbd7
mov rcx, r14
call fcn.18000cfac
mov r9d, dword [0x18004ee88]
lea r8, str._d._s
lea edx, [rbp + 0x7f]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.18001ab5c
jmp 0x18000cbfc
cmp rbp, 2
je 0x18000cbfc
mov rcx, r14
call fcn.18000cfac
lea r8, [0x18002d7a8]
mov edx, 0x80
mov r9, rax
mov rcx, rdi
call fcn.18001ab5c
mov rcx, r14
call fcn.18000cfac
lea r8, [0x18002d7a8]
mov edx, 0x80
mov r9, rax
mov rcx, r13
call fcn.18001ab5c
cmp rbp, 1
jne 0x18000cc39
mov rcx, rdi
call fcn.18000def8
mov ecx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ebx, eax
xor ebx, dword [rsp + 0x78]
jmp 0x18000cc3e
mov ebx, 1
test ebx, ebx
je 0x18000ce4a
mov eax, ebx
lea r8, [0x18002d7a8]
lea rcx, [0x18004eea0]
and eax, 0xfffffff0
cmp eax, 0xf0
jne 0x18000cd5a
and dword [reloc.WS2_32.dll_accept], 0
mov r9, rdi
mov edx, 0x400
call fcn.18001ab5c
mov ecx, ebx
call fcn.18000f62c
test bl, 1
je 0x18000cca1
mov r9d, dword [0x18004ea84]
lea r8, [0x18004ea88]
lea rcx, [0x18002d7ac]
mov rdx, rdi
call fcn.18000e520
test bl, 2
je 0x18000ccc0
mov ecx, 4
call fcn.180019618
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.18000e390
jmp 0x18000ccf3
mov eax, 4
mov ecx, eax
test al, bl
je 0x18000cce0
call fcn.180019618
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.18000e27c
jmp 0x18000ccf3
call fcn.180019618
mov rdx, rsi
mov rcx, rdi
mov r8d, eax
call fcn.18000e174
test eax, eax
jle 0x18000cd0f
mov edx, eax
mov rcx, rsi
call fcn.180019184
test eax, eax
jle 0x18000cd0f
mov edx, eax
mov rcx, rsi
call fcn.180017ee8
lea rbx, [fcn.18000cecc]
mov rcx, rbx
call fcn.1800160bc
mov edx, 0x1000
mov rcx, rbx
call fcn.180011c94
mov rcx, rbx
call fcn.180014b54
mov edx, 0x80000
mov rcx, rbx
call fcn.1800144e4
call fcn.18000f69c
test eax, eax
je 0x18000ce4a
mov rcx, rbx
call fcn.18000f774
jmp 0x18000ce4a
mov r9, qword [rsp + 0x80]
mov edx, 0x100
mov dword [reloc.WS2_32.dll_accept], 1
call fcn.18001ab5c
mov r8, r12
mov edx, r15d
mov rcx, rdi
call fcn.18000d9b0
mov ecx, 4
call fcn.180019618
lea rdx, [0x18004ea80]
mov r8, rsi
mov r9d, eax
mov rcx, r13
call fcn.18000d95c
mov ebx, eax
test eax, eax
jle 0x18000cdc3
mov edx, eax
mov rcx, rsi
call fcn.180019184
mov ebx, eax
test eax, eax
jle 0x18000cdc3
mov edx, eax
mov rcx, rsi
call fcn.180017ee8
cmp ebx, 0xffffffff
je 0x18000ce45
lea rbx, [fcn.18000cecc]
mov rcx, rbx
call fcn.1800160bc
mov ecx, 0x1c
call fcn.180019618
mov rcx, rbx
mov edx, 0x80000
test eax, eax
je 0x18000cdf2
mov edx, 0x1000
call fcn.180011c94
mov rcx, rbx
call fcn.180014b54
mov edx, 0x80000
mov rcx, rbx
call fcn.1800144e4
call fcn.18000f69c
test eax, eax
je 0x18000ce1d
mov rcx, rbx
call fcn.18000f774
cmp dword [0x180040490], 0
jle 0x18000ce45
call fcn.18000d930
mov r8, r12
mov edx, r15d
mov rcx, rdi
call fcn.18000d9b0
lea rcx, [0x18004eea0]
call fcn.18000db60
call fcn.18000d930
call fcn.18000f69c
test eax, eax
je 0x18000ce58
call fcn.180019c5c
mov ecx, dword [section..data]
test ecx, ecx
je 0x18000ceb1
cmp dword [0x180040468], 0
je 0x18000ce9e
call fcn.18000f67c
mov edx, dword [0x180040468]
mov ecx, dword [section..data]
imul edx, ecx
mov r9d, eax
mov eax, 0x51eb851f
mul edx
mov eax, r9d
mov r8d, edx
xor edx, edx
shr r8d, 5
div r8d
cmp edx, ecx
jae 0x18000cea9
sub ecx, edx
call fcn.1800124e0
mov ecx, dword [section..data]
test ecx, ecx
jne 0x18000cba9
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.180019c5c