Function at 0x1401ebdd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [rcx + 8]
mov r15d, edx
mov rdi, qword [rcx]
xor edx, edx
mov rbx, qword [rcx + 0x10]
mov rsi, rcx
mov ecx, edx
mov dword [rsp + 0x34], edx
movzx eax, byte [rbp + 0x20]
mov r14d, r8d
cmp al, 0x4c
mov byte [rsp + 0x88], al
mov dword [rsp + 0x30], edx
setne cl
dec dword [rdi + 0x44]
mov r13d, dword [rdi + 0x44]
mov dword [rsp + 0x38], ecx
cmp r15d, 2
jne 0x1401ebe3b
cmp byte [rbp + 0x21], 0x5a
jne 0x1401ebe3b
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
test r14d, r14d
jle 0x1401ebec7
cmp byte [rbp + 0x20], 0x59
jne 0x1401ebeaf
mov eax, dword [rbx + 0x90]
mov r9d, r14d
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov dword [rsp + 0x28], r13d
cmp r15d, 2
jne 0x1401ebe98
cmp byte [rbp + 0x21], 0x56
jne 0x1401ebe81
mov eax, dword [rsi + 0x28]
lea edx, [r15 + 0x35]
mov r8d, dword [rsi + 0x30]
mov dword [rsp + 0x20], eax
call fcn.1401ec360
jmp 0x1401ebee0
mov eax, dword [rsi + 0x30]
mov edx, reloc.WS2_32.dll_gethostname
mov r8d, dword [rsi + 0x28]
mov dword [rsp + 0x20], eax
call fcn.1401ec360
jmp 0x1401ebee0
mov eax, dword [rsi + 0x30]
mov edx, reloc.WS2_32.dll_getprotobynumber
mov r8d, dword [rsi + 0x38]
mov dword [rsp + 0x20], eax
call fcn.1401ec360
jmp 0x1401ebec7
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, 0x30
mov rcx, rbx
call fcn.1401c1c90
cmp r15d, 1
jne 0x1401ebee0
cmp dword [rbp + 0x84], 0
jne 0x1401ebee0
xor edx, edx
mov rcx, rsi
call fcn.1401eabb0
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rbp + 0x22]
mov qword [rsp + 0x90], r12
cmp byte [rbp + 0x21], al
jne 0x1401ebfd4
test r14d, r14d
je 0x1401ebfd4
cmp byte [rbp + 0x20], 0x59
jne 0x1401ebfd4
cmp r15d, 2
jne 0x1401ebfd4
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401ebf2d
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
jmp 0x1401ebf3d
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xcc]
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1401ebf4e
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x1401ebf5e
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xcc]
mov r8d, dword [rsi + 0x28]
mov r9d, r12d
mov edx, 0x7f
mov rcx, rbx
call fcn.1401c1c20
mov r8d, dword [rsi + 0x38]
mov r9d, r14d
mov edx, 0x7f
mov rcx, rbx
call fcn.1401c1c20
mov r9d, r13d
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov edx, reloc.WS2_32.dll_gethostname
mov rcx, rbx
call fcn.1401c1c90
test r12d, r12d
je 0x1401ebfb9
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ebfb9
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], r12d
inc byte [rdi + 0x1f]
test r14d, r14d
je 0x1401ebfd4
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ebfd4
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], r14d
inc byte [rdi + 0x1f]
mov ecx, r15d
sub ecx, 1
je 0x1401ec07a
cmp ecx, 1
je 0x1401ec033
cmp dword [rbp + 0x84], 0
mov r12d, dword [rsi + 0x3c]
mov r14d, dword [rsi + 0x38]
mov dword [rsp + 0x80], r12d
je 0x1401ec019
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x51]
call fcn.1401c1c20
jmp 0x1401ec090
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, rsi
call fcn.1401eafa0
jmp 0x1401ec090
mov r8d, dword [rbp + 0x84]
mov r9d, 1
mov r12d, dword [rsi + 0x2c]
mov r14d, dword [rsi + 0x28]
mov dword [rsp + 0x80], r12d
test r8d, r8d
je 0x1401ec063
lea edx, [r9 + 0x51]
mov rcx, rbx
call fcn.1401c1c20
jmp 0x1401ec090
mov eax, dword [rsi + 0x20]
mov r8d, r14d
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1401eafa0
jmp 0x1401ec090
mov eax, dword [rsi + 0x34]
mov rcx, rsi
mov r14d, dword [rsi + 0x30]
mov dword [rsp + 0x80], eax
call fcn.1401ed7e0
cmp r15d, dword [rsi + 0x24]
jne 0x1401ec11b
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401ec0c6
xor r12d, r12d
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], r12d
mov rcx, rbx
lea edx, [r12 + 0x7a]
call fcn.140178b80
jmp 0x1401ec0f5
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r12d, r12d
mov dword [rax + rcx*8], 0x7a
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
mov eax, dword [rbx + 0x90]
test eax, eax
jle 0x1401ec11e
dec eax
movsxd rcx, eax
mov rax, qword [rbx + 0x88]
lea rdx, [rcx + rcx*2]
mov ecx, 2
mov word [rax + rdx*8 + 2], cx
jmp 0x1401ec11e
xor r12d, r12d
cmp dword [rsp + 0x98], 0
movsxd rcx, dword [rbx + 0x90]
je 0x1401ec1a7
lea edx, [rcx + 2]
cmp dword [rbx + 0x94], ecx
jg 0x1401ec154
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 5
mov r8d, r14d
mov rcx, rbx
call fcn.140178b80
jmp 0x1401ec188
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov edx, listen
mov rcx, rbx
call fcn.1401c1b40
movzx r15d, byte [rsp + 0x88]
mov dword [rsp + 0x34], eax
jmp 0x1401ec22a
mov edx, dword [rsp + 0x38]
inc edx
add edx, ecx
cmp dword [rbx + 0x94], ecx
jg 0x1401ec1d1
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 5
mov r8d, r14d
mov rcx, rbx
call fcn.140178b80
jmp 0x1401ec205
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
xor r12d, r12d
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movzx r15d, byte [rsp + 0x88]
cmp r15b, 0x4c
je 0x1401ec2b6
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1401c1c20
cmp r15b, 0x4c
je 0x1401ec2b6
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x1401ec255
mov r15d, dword [rax]
test r15d, r15d
je 0x1401ec258
mov edx, r15d
mov rcx, rdi
call fcn.1401a86b0
mov r12d, eax
jmp 0x1401ec258
mov r15d, r12d
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.1401ed6c0
mov eax, dword [rsp + 0x3c]
mov r8d, r12d
mov r9d, dword [rsp + 0x80]
mov rcx, rdi
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], eax
call fcn.1401ed1e0
cmp r15d, 1
jne 0x1401ec2a8
test r12d, r12d
je 0x1401ec2b6
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1401ec2b6
movzx eax, al
mov dword [rdi + rax*4 + 0xcc], r12d
inc byte [rdi + 0x1f]
jmp 0x1401ec2b6
cmp r15d, dword [rdi + 0x28]
jle 0x1401ec2b6
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r12d
mov edx, dword [rsp + 0x30]
mov r12, qword [rsp + 0x90]
test edx, edx
je 0x1401ec31b
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401ec2ee
xor eax, eax
mov r9d, edx
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0xb]
call fcn.140178b80
jmp 0x1401ec31b
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], recv
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx + 0x18]
not r13d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x1401ec337
mov r8d, r13d
mov rdx, rbx
call fcn.140188080
jmp 0x1401ec347
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret