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

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x38
mov rbx, qword [rcx + 0x98]
mov rsi, rcx
mov r15, qword [rcx]
mov rdi, qword [rcx + 0x10]
test rbx, rbx
je 0x14017505f
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
xor r12d, r12d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x30], r14
lea r13d, [r12 + 0x10]
movsxd r8, dword [rbx + 0x10]
xor edx, edx
mov rax, qword [r15 + 0x20]
mov r9, r8
mov ebp, dword [rbx + 0x14]
mov rcx, rsi
shl r9, 5
mov dword [rsp + 0x20], 0x62
mov r9, qword [r9 + rax + 0x18]
mov r9, qword [r9 + 0x68]
call fcn.140197400
mov r8, qword [rbx + 8]
lea r14d, [rbp - 1]
mov edx, r14d
mov rcx, rdi
mov r8, qword [r8]
call fcn.1401ba7a0
mov eax, dword [rdi + 0x90]
add eax, 0xc
cmp eax, dword [rdi + 0x94]
jle 0x140174e49
mov edx, recv
mov rcx, rdi
call fcn.14015ae90
test eax, eax
jne 0x14017504b
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0x48
mov qword [rax + rcx*8 + 8], r12
mov qword [rax + rcx*8 + 0x10], r12
lea rdx, [rax + rcx*8]
mov byte [rdx + 0x18], 0x25
lea ecx, [rbp + 2]
mov dword [rdx + 0x1c], r12d
mov dword [rdx + 0x20], 0xa
mov eax, dword [rdi + 0x90]
add eax, 0xa
mov dword [rdx + 0x20], eax
mov dword [rdx + 0x24], r12d
mov byte [rdx + 0x19], r12b
mov qword [rdx + 0x28], r12
mov word [rdx + 0x1a], r12w
mov qword [rdx + 0x30], 0x5b
mov qword [rdx + 0x38], r12
mov qword [rdx + 0x40], r12
mov byte [rdx + 0x48], getservbyname
mov dword [rdx + 0x4c], r12d
mov dword [rdx + 0x50], 9
mov eax, dword [rdi + 0x90]
add eax, 9
mov dword [rdx + 0x50], eax
mov dword [rdx + 0x54], r12d
mov byte [rdx + 0x49], r12b
mov qword [rdx + 0x58], r12
mov word [rdx + 0x4a], r12w
mov qword [rdx + 0x60], 0x83
mov qword [rdx + 0x68], r12
mov qword [rdx + 0x70], r12
mov qword [rdx + 0x78], 0x5b
mov qword [rdx + 0x80], 1
mov qword [rdx + 0x88], r12
mov qword [rdx + 0x90], 0x53
mov qword [rdx + 0x98], r12
mov qword [rdx + 0xa0], r12
mov qword [rdx + 0xa8], 0x4d
mov qword [rdx + 0xb0], r12
mov qword [rdx + 0xb8], r12
mov byte [rdx + 0xc0], recv
mov dword [rdx + 0xc4], r12d
mov dword [rdx + 0xc8], select
mov eax, dword [rdi + 0x90]
add eax, 0xb
mov dword [rdx + 0xc8], eax
mov dword [rdx + 0xcc], r12d
mov byte [rdx + 0xc1], r12b
mov qword [rdx + 0xd0], r12
mov word [rdx + 0xc2], r12w
mov byte [rdx + 0xd8], 5
mov dword [rdx + 0xdc], r12d
mov dword [rdx + 0xe0], 2
mov eax, dword [rdi + 0x90]
add eax, 2
mov dword [rdx + 0xe0], eax
lea eax, [rbp + 1]
mov dword [rdx + 0xe4], r12d
mov byte [rdx + 0xd9], r12b
mov qword [rdx + 0xe8], r12
mov word [rdx + 0xda], r12w
mov qword [rdx + 0xf0], 0x45
mov qword [rdx + 0xf8], r12
mov qword [rdx + 0x100], r12
mov qword [rdx + 0x108], 0x76
mov qword [rdx + 0x110], r12
mov qword [rdx + 0x118], r12
add dword [rdi + 0x90], 0xc
mov dword [rdx + 8], ebp
mov dword [rdx + 0xc], ecx
mov dword [rdx + 0x3c], ebp
mov dword [rdx + 0x4c], r14d
mov dword [rdx + 0x54], ebp
mov word [rdx + 0x4a], r13w
mov dword [rdx + 0x68], eax
mov dword [rdx + 0x84], ebp
mov dword [rdx + 0x94], ebp
mov dword [rdx + 0xb0], ecx
mov dword [rdx + 0xac], ebp
mov dword [rdx + 0xf8], ebp
cmp dword [rsi + 0x34], r12d
jne 0x14017503f
mov dword [rsi + 0x34], 1
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140174de0
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop rdi
pop rsi
pop rbx
ret