Function at 0x140064da0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x48], 0
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], 0
mov rcx, qword [rsp + 0xd8]
call fcn.14009eea0
movzx eax, al
test eax, eax
jne 0x140064e1e
mov rcx, qword [rsp + 0xd8]
call fcn.14004a8c0
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x70], 4
jmp 0x140064e5a
mov rcx, qword [rsp + 0xd0]
call fcn.14009eea0
movzx eax, al
test eax, eax
jne 0x140064e44
mov rcx, qword [rsp + 0xd0]
call fcn.14004a8c0
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x70], eax
mov edx, dword [rsp + 0xe0]
lea rcx, [rsp + 0xa0]
call fcn.1400a4d50
nop
lea rcx, [rsp + 0xa0]
call fcn.14004a8c0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140064ec6
mov qword [rsp + 0x58], 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140054020
nop
mov rcx, qword [rsp + 0x100]
call fcn.14006f860
mov rax, qword [rsp + 0x58]
jmp 0x140065087
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140064ee0
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140065053
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140064f4f
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x140064f5c
jmp 0x140064ed2
movzx eax, byte [rsp + 0xf8]
test eax, eax
je 0x140064f93
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x100]
call fcn.140071870
movzx eax, al
test eax, eax
je 0x140064fb9
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call fcn.1400738c0
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0x17
jne 0x140064fef
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x44]
mov r8d, reloc.WLDAP32.dll_Ordinal_27
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x108]
call fcn.140072770
movzx eax, al
test eax, eax
je 0x140065044
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xa0]
call fcn.140054020
nop
mov rcx, qword [rsp + 0x100]
call fcn.14006f860
mov rax, qword [rsp + 0x60]
jmp 0x140065087
mov rcx, qword [rsp + 0x38]
call fcn.140093890
jmp 0x140064ed2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rsp + 0x68], 0xffffffffffffffff
lea rcx, [rsp + 0xa0]
call fcn.140054020
nop
mov rcx, qword [rsp + 0x100]
call fcn.14006f860
mov rax, qword [rsp + 0x68]
add rsp, 0xc8
ret