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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x70
mov eax, dword [rcx + 0x50]
mov ebp, r8d
mov r13, qword [rdx + 0x18]
mov r14, rdx
mov r10, qword [rcx]
mov rsi, rcx
mov dword [rsp + 0xa0], eax
mov ebx, 0xfff0bdc0
add eax, 2
mov dword [rcx + 0x50], eax
mov r9, qword [rdx + 0x30]
test r9, r9
je 0x14007afb8
movsxd rcx, dword [r10 + 0x28]
xor ebx, ebx
test ecx, ecx
jle 0x14007afb8
mov rax, qword [r10 + 0x20]
mov rdx, rcx
xor ecx, ecx
add rax, 0x18
cmp qword [rax], r9
je 0x14007afb8
inc ebx
inc rcx
add rax, 0x20
cmp rcx, rdx
jl 0x14007afa5
mov rax, qword [r10 + 0x20]
xor r9d, r9d
mov r8, qword [r14]
movsxd rcx, ebx
shl rcx, 5
lea edx, [r9 + 0x1b]
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call fcn.140076280
test eax, eax
jne 0x14007b420
mov rax, qword [r13]
mov r9b, 1
mov r8d, dword [r13 + 0x38]
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rdi
call fcn.140076350
mov rcx, rsi
call fcn.140094390
mov rdi, rax
test rax, rax
je 0x14007b41b
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
test ebp, ebp
js 0x14007b030
mov dword [rsp + 0xa8], ebp
jmp 0x14007b03b
mov eax, dword [r14 + 0x58]
mov dword [rsp + 0xa8], eax
mov rdx, r14
mov rcx, rsi
call fcn.14007de40
mov r12d, dword [rsi + 0x50]
mov r15, rax
lea ecx, [r12 + 1]
mov dword [rsi + 0x50], ecx
test rax, rax
je 0x14007b05c
inc dword [rax]
movzx ecx, word [r14 + 0x5e]
xor r9d, r9d
mov dword [rsp + 0x20], ecx
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x3a]
call fcn.140056030
mov r9d, 0xfffffffa
mov r8, r15
mov edx, eax
mov rcx, rdi
call fcn.140056aa0
mov edx, dword [rsp + 0xa0]
mov r9, r13
mov r8d, ebx
mov dword [rsp + 0x20], gethostname
mov rcx, rsi
call fcn.140086c20
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], 0
lea edx, [r9 + 0x6d]
call fcn.140056030
movzx ecx, byte [rsi + 0x1f]
mov r13d, eax
test cl, cl
jne 0x14007b0d9
inc dword [rsi + 0x54]
mov ebp, dword [rsi + 0x54]
jmp 0x14007b0e5
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov ebp, dword [rsi + rax*4 + 0x24]
mov r8d, dword [rsp + 0xa0]
lea rax, [rsp + 0xb8]
xor ecx, ecx
mov r9d, ebp
mov dword [rsp + 0x38], ecx
mov rdx, r14
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140080500
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov r8d, r12d
mov edx, WSASetLastError
mov rcx, rdi
call fcn.140056030
mov edx, dword [rsp + 0xb8]
mov rcx, rsi
call fcn.140080750
mov r8d, dword [rsp + 0xa0]
lea r9d, [r13 + 1]
mov edx, 8
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140056030
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
lea ecx, [rdx - 1]
test r13d, r13d
js 0x14007b17c
mov ecx, r13d
mov rax, qword [rdi]
lea r13, [0x140330198]
cmp byte [rax + 0x51], 0
je 0x14007b191
mov rax, r13
jmp 0x14007b1a0
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
cmp dword [rsp + 0xb0], 0
mov dword [rax + 8], edx
jge 0x14007b1cd
mov r8d, dword [rsp + 0xa8]
mov r9d, ebx
mov edx, 0x77
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140056030
mov r8d, dword [rsp + 0xa0]
mov edx, reloc.WS2_32.dll_getservbyname
mov r9d, dword [rsp + 0xa8]
inc r8d
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.140056030
mov r9d, 0xfffffffa
mov r8, r15
mov edx, eax
mov rcx, rdi
call fcn.140056aa0
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x14007b217
mov rcx, r13
jmp 0x14007b226
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rcx, [rax + rcx*8]
cmp dword [rsp + 0xb0], 0
mov edx, 5
mov eax, 1
mov dword [rsp + 0x20], 0
cmovge eax, edx
mov r8d, r12d
xor r9d, r9d
mov byte [rcx + 3], al
mov rcx, rdi
lea edx, [r9 + 0x6b]
call fcn.140056030
cmp byte [r14 + 0x62], 0
mov ebx, eax
mov dword [rsp + 0xa8], eax
je 0x14007b2c9
test r15, r15
je 0x14007b2c9
mov ebx, dword [rdi + 0x3c]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], 0
lea r9d, [rbx + 3]
lea edx, [r8 + 0xe]
call fcn.140056030
movzx eax, word [r14 + 0x5e]
lea r9d, [rbx + 3]
mov r15d, dword [rdi + 0x3c]
mov r8d, r12d
mov dword [rsp + 0x28], eax
mov edx, 0x64
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.140056360
mov r8, r14
mov edx, 2
mov rcx, rsi
call fcn.14007d6f0
mov ebx, dword [rsp + 0xa8]
jmp 0x14007b2cd
mov r15d, dword [rdi + 0x3c]
mov r14d, dword [rsp + 0xa0]
mov r9d, ebp
inc r14d
mov r8d, r12d
mov edx, 0x65
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.140056030
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
mov r8d, r14d
mov rcx, rdi
lea edx, [r9 + 0x6a]
call fcn.140056030
mov r9d, ebp
mov dword [rsp + 0x20], 0
mov r8d, r14d
mov edx, reloc.WS2_32.dll_WSAGetLastError
mov rcx, rdi
call fcn.140056030
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x14007b338
mov rax, r13
jmp 0x14007b347
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
mov byte [rax + 3], reloc.WS2_32.dll_recv
test ebp, ebp
je 0x14007b381
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x14007b381
xor ecx, ecx
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x14007b37d
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x14007b361
movzx eax, dl
mov dword [rsi + rax*4 + 0x24], ebp
inc byte [rsi + 0x1f]
jmp 0x14007b381
mov byte [rax + 6], 1
xor esi, esi
mov r9d, r15d
mov r8d, r12d
mov dword [rsp + 0x20], esi
mov rcx, rdi
lea edx, [rsi + 4]
call fcn.140056030
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov r15, qword [rsp + 0x58]
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
test ebx, ebx
jns 0x14007b3b3
lea ebx, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], sil
jne 0x14007b3cb
movsxd rax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea r13, [rax + rcx*8]
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov dword [r13 + 8], edx
mov rcx, rdi
mov dword [rsp + 0x20], esi
lea edx, [r9 + 0x3d]
call fcn.140056030
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r14d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.140056030
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x3d]
call fcn.140056030
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x70
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret