Function at 0x14004ffd0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x100
mov rax, qword [0x1403aa6c8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, r9
mov r14, rdx
mov qword [rsp + 0x40], rdx
mov r15, qword [rbp + 0x7f]
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x38], r12
lea rdx, [rbp + 7]
mov rcx, r9
call fcn.140050990
mov rdi, rax
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1400509d0
mov rbx, rax
cmp qword [rdi + 0x18], 0x10
jb 0x140050040
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x14005004a
mov rbx, qword [rax]
test rbx, rbx
je 0x140050054
cmp byte [rbx], 0
jne 0x140050057
mov rbx, r12
test rdi, rdi
je 0x140050061
cmp byte [rdi], 0
jne 0x140050064
mov rdi, r12
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x38]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
mov edi, recv
cmp eax, 0x273f
jg 0x1400500fb
je 0x1400500ec
test eax, eax
je 0x1400500d8
sub ecx, 8
je 0x1400500ca
sub ecx, 0x271e
je 0x1400500b8
cmp ecx, 0x16
jne 0x140050115
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x273c
jmp 0x140050168
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x2726
jmp 0x140050168
call fcn.1400f7cd0
mov dword [rsp + 0x20], edi
jmp 0x140050168
mov dword [rsp + 0x20], r12d
call fcn.1400f7cd0
mov qword [rsp + 0x28], rax
jmp 0x140050178
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x273f
jmp 0x140050168
sub ecx, 0x277d
je 0x14005015b
sub ecx, 0x37c
je 0x14005014c
sub ecx, 1
je 0x14005013d
cmp ecx, 1
je 0x14005012e
call fcn.1400f7cd0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], rbx
jmp 0x140050178
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x2afb
jmp 0x140050168
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x2afa
jmp 0x140050168
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x2af9
jmp 0x140050168
call fcn.1400f7cd0
mov dword [rsp + 0x20], 0x277d
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
mov rax, qword [rbp - 0x41]
cmp rax, 0x10
jb 0x1400501c7
inc rax
mov rdx, qword [rbp - 0x59]
mov rcx, rdx
cmp rax, 0x1000
jb 0x1400501bf
test cl, 0x1f
jne 0x1400501b8
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1400501b8
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1400501bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.14022a0d0
mov qword [rbp - 0x41], send
mov qword [rbp - 0x49], r12
mov byte [rbp - 0x59], 0
mov rax, qword [rbp + 0x1f]
cmp rax, 0x10
jb 0x14005021d
inc rax
mov rdx, qword [rbp + 7]
mov rcx, rdx
cmp rax, 0x1000
jb 0x140050215
test cl, 0x1f
jne 0x14005020e
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x14005020e
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x140050215
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.14022a0d0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140029a90]
cmp dword [r15], 0
cmove rax, r12
test rax, rax
je 0x140050257
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rbp - 0x79], r12
lea rcx, [rsp + 0x48]
mov edi, 1
mov rax, r12
jmp 0x14005029d
lea rdx, [rbp - 0x19]
mov rcx, rsi
call fcn.140050990
mov rbx, rax
mov dword [rsp + 0x30], 2
lea rdx, [rbp - 0x39]
mov rcx, rsi
call fcn.1400509d0
nop
mov dword [rsp + 0x30], 6
mov r9, rbx
mov r8, rax
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp - 0x71]
call fcn.140050580
mov rcx, rax
mov rax, qword [rax]
mov qword [r14], rax
mov rax, qword [rcx + 8]
mov qword [r14 + 8], rax
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov rax, qword [rcx + 0x10]
mov qword [r14 + 0x10], rax
or edi, 0x10
mov dword [rsp + 0x30], edi
mov esi, 0xffffffff
test dil, 8
je 0x140050306
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rbx, qword [rbp - 0x69]
test rbx, rbx
je 0x140050306
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140050302
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140050302
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov edi, dword [rsp + 0x30]
test dil, 4
je 0x140050369
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rax, qword [rbp - 0x21]
cmp rax, 0x10
jb 0x140050359
inc rax
mov rdx, qword [rbp - 0x39]
mov rcx, rdx
cmp rax, 0x1000
jb 0x140050351
test cl, 0x1f
jne 0x14005034a
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x14005034a
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x140050351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.14022a0d0
mov qword [rbp - 0x21], send
mov qword [rbp - 0x29], r12
mov byte [rbp - 0x39], 0
test dil, 2
je 0x1400503cc
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rax, qword [rbp - 1]
cmp rax, 0x10
jb 0x1400503bc
inc rax
mov rdx, qword [rbp - 0x19]
mov rcx, rdx
cmp rax, 0x1000
jb 0x1400503b4
test cl, 0x1f
jne 0x1400503ad
mov rdx, qword [rdx - 8]
cmp rdx, rcx
jae 0x1400503ad
sub rcx, rdx
sub rcx, 8
cmp rcx, 0x1f
jbe 0x1400503b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdx
call fcn.14022a0d0
mov qword [rbp - 1], send
mov qword [rbp - 9], r12
mov byte [rbp - 0x19], 0
test dil, 1
je 0x14005040b
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005040b
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005040b
mov rbx, qword [rsp + 0x50]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x14005040b
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
call qword [rdx + ioctlsocket]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005041b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140229810
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret