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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rdx]
mov rdi, rdx
movzx ebp, byte [rdx + 0x24]
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
xor edx, edx
mov r12d, dword [rsp + 0xb0]
not ebp
mov eax, dword [rax]
and ebp, 1
mov dword [rsp + 0x80], eax
mov r13d, r9d
mov dword [rsp + 0x30], edx
mov r15d, edx
lea ecx, [rax + rbp]
mov eax, dword [rdi + 8]
add ecx, dword [rsp + 0xa8]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x88], eax
test r12d, r12d
je 0x140184e31
mov r14d, r9d
sub r14d, r12d
jmp 0x140184e3d
mov eax, dword [rsi + 0x38]
lea r14d, [rax + 1]
add eax, ecx
mov dword [rsi + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x140184e49
inc eax
jmp 0x140184e4d
mov eax, dword [r8 + 8]
dec dword [rsi + 0x44]
mov ecx, 5
mov r9d, dword [rsp + 0xa0]
mov r8d, r14d
mov rdx, qword [rdi]
test r9d, r9d
mov dword [rsp + 0x34], eax
mov eax, dword [rsi + 0x44]
mov dword [rdi + 0x1c], eax
mov eax, 1
cmovne eax, ecx
mov rcx, rsi
mov byte [rsp + 0x20], al
call fcn.14019cff0
test ebp, ebp
je 0x140184eed
mov edx, dword [rsp + 0x80]
movsxd rcx, dword [rbx + 0x90]
add edx, r14d
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x140184ebc
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x77
mov rcx, rbx
call fcn.140178b80
jmp 0x140184eed
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x77
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
test r12d, r12d
mov r12d, dword [rsp + 0x80]
jne 0x140184f1a
mov eax, dword [rsp + 0xa8]
test eax, eax
jle 0x140184f1a
lea r8d, [r14 + r12]
mov r9d, eax
add r8d, ebp
mov edx, r13d
mov rcx, rsi
call fcn.14019ea30
lea r13, [0x1403f00c8]
cmp dword [rsp + 0x88], r15d
jle 0x140185210
mov eax, dword [rsp + 0x38]
mov r9d, r14d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14017c1c0
mov edx, dword [rsi + 0x38]
mov rcx, rbx
mov dword [rsp + 0x30], eax
lea eax, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [rsp + 0xb0], eax
mov eax, r12d
mov dword [rsi + 0x38], edx
sub eax, dword [rdi + 8]
add eax, ebp
mov dword [rsp + 0x3c], eax
test ebp, ebp
je 0x140184f82
lea r8d, [r14 + r12]
mov edx, reloc.WS2_32.dll_sendto
jmp 0x140184f8b
mov r8d, dword [rdi + 0xc]
mov edx, WSACleanup
call fcn.1401c1bb0
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 8]
mov r8d, dword [rsp + 0xb0]
mov dword [rsp + 0xa0], eax
cmp dword [rbx + 0x94], ecx
jg 0x140184fc7
mov dword [rsp + 0x20], edx
mov r9d, r14d
mov edx, 0x56
mov rcx, rbx
call fcn.140178b80
jmp 0x140184ff8
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x56
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov ecx, dword [rdi + 0x18]
test ecx, ecx
jns 0x140185007
mov ecx, dword [rbx + 0x90]
dec ecx
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x140185015
mov r12, r13
jmp 0x140185027
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r12, [rax + rcx*8]
mov rax, qword [rsi]
cmp byte [rax + 0x61], r15b
jne 0x1401853fa
mov rbp, qword [r12 + 0x10]
xor edx, edx
mov eax, dword [rsp + 0x3c]
add eax, dword [rsp + 0xa8]
mov dword [r12 + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call fcn.14028e7e0
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], r15b
je 0x140185071
mov r8, rbp
mov edx, 0xfffffff7
call fcn.140175770
jmp 0x1401850ac
mov eax, dword [rbx + 0x90]
dec eax
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
cmp byte [rax + rcx*8 + 1], r15b
lea rdx, [rax + rcx*8]
je 0x1401850a4
mov r9d, 0xfffffff7
mov r8, rbp
mov rcx, rbx
call fcn.1401dd120
jmp 0x1401850ac
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf7
movzx r9d, word [rbp + 8]
mov rcx, rsi
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0x88]
sub r9d, eax
mov rdx, qword [rdi]
dec r9d
call fcn.1401ac0c0
mov qword [r12 + 0x10], rax
movsxd rbp, dword [rbx + 0x90]
lea edx, [rbp + 1]
cmp dword [rbx + 0x94], ebp
jg 0x1401850fd
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x10]
call fcn.140178b80
jmp 0x140185134
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
xor r8d, r8d
mov dword [rax + rcx*8], reloc.WS2_32.dll_recv
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
dec dword [rsi + 0x44]
mov edx, recv
mov eax, dword [rsi + 0x44]
mov rcx, rbx
mov dword [rdi + 0x14], eax
mov r8d, dword [rsi + 0x38]
inc r8d
mov dword [rsi + 0x38], r8d
mov r9d, dword [rdi + 0x14]
mov dword [rdi + 0x10], r8d
call fcn.1401c1c20
mov r8d, dword [rdi + 0xc]
mov edx, 0x8a
mov rcx, rbx
call fcn.1401c1bb0
mov r12d, dword [rsp + 0x34]
test r12d, r12d
je 0x14018518c
mov r9d, dword [rdi + 0x1c]
mov r8d, r12d
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rbx
call fcn.1401c1c20
mov ecx, dword [rsp + 0xa0]
mov edx, dword [rbx + 0x90]
test ecx, ecx
jns 0x1401851a0
lea ecx, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x1401851ae
mov rax, r13
jmp 0x1401851c0
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xb0]
mov rcx, rsi
mov dword [rax + 8], edx
mov edx, r14d
mov r9d, dword [rdi + 8]
call fcn.14019ea30
mov edx, dword [rbx + 0x90]
test ebp, ebp
jns 0x1401851e7
lea ebp, [rdx - 1]
mov rax, qword [rbx]
cmp byte [rax + 0x61], r15b
je 0x1401851f8
mov rax, r13
mov dword [rax + 8], edx
jmp 0x140185215
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
jmp 0x140185215
mov r12d, dword [rsp + 0x34]
test r12d, r12d
je 0x140185359
movsxd rcx, dword [rbx + 0x90]
mov ebp, dword [rdi + 0xc]
lea edx, [rcx + 4]
cmp dword [rbx + 0x94], ecx
jg 0x14018524f
xor eax, eax
mov r9d, edx
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x31]
call fcn.140178b80
xor r8d, r8d
jmp 0x140185280
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], getprotobyname
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1401852a8
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, ebp
mov rcx, rbx
lea edx, [r9 + 0x21]
call fcn.140178b80
jmp 0x1401852d1
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x21
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r15
mov qword [rax + rcx*8 + 0x10], r8
mov r12d, dword [rsp + 0x88]
xor r9d, r9d
mov ecx, dword [rsp + 0x80]
mov r8d, ebp
sub ecx, r12d
mov dword [rsp + 0x28], ecx
mov rcx, rbx
lea eax, [r14 + r12]
lea edx, [r9 + 0x26]
mov dword [rsp + 0x20], eax
call fcn.1401c1e30
movsxd rcx, dword [rbx + 0x90]
mov r15d, eax
cmp dword [rbx + 0x94], ecx
jg 0x14018532c
xor eax, eax
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x7a]
call fcn.140178b80
jmp 0x140185361
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7a
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
jmp 0x140185361
mov r12d, dword [rsp + 0x88]
mov r9d, dword [rsp + 0x30]
test r9d, r9d
jne 0x14018538c
mov eax, dword [rsp + 0x38]
mov r9d, r14d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.14017c1c0
mov r9d, eax
movzx edx, byte [rdi + 0x24]
lea eax, [r14 + r12]
mov ecx, dword [rsp + 0x38]
not dl
mov r8d, dword [rdi + 0xc]
sub ecx, r12d
mov dword [rsp + 0x28], ecx
and edx, 1
or edx, 0x82
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.1401c1e30
test r15d, r15d
je 0x1401853fa
mov edx, dword [rdi + 0x20]
test edx, edx
jne 0x1401853cc
mov edx, dword [rbx + 0x90]
test r15d, r15d
jns 0x1401853db
mov r15d, dword [rbx + 0x90]
dec r15d
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x1401853f6
movsxd rax, r15d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea r13, [rax + rcx*8]
mov dword [r13 + 8], edx
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret