Function at 0x1400532e0
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, r9
mov r14, rdx
mov qword [rbp - 0x40], rdx
mov r15, qword [rbp + 0x60]
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rbp - 8], r12
lea rdx, [rbp - 0x80]
mov rcx, r9
call fcn.1400535f0
mov rdi, rax
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.1400535a0
mov rbx, rax
cmp qword [rdi + 0x18], 0x10
jb 0x140053356
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 0x10
jb 0x140053360
mov rbx, qword [rax]
test rbx, rbx
je 0x14005336a
cmp byte [rbx], 0
jne 0x14005336d
mov rbx, r12
test rdi, rdi
je 0x140053377
cmp byte [rdi], 0
jne 0x14005337a
mov rdi, r12
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rbp - 8]
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.1400502f0
movups xmm0, xmmword [rax]
movups xmmword [r15], xmm0
cmp qword [rbp - 0x48], 0x10
jb 0x1400533b7
mov rcx, qword [rbp - 0x60]
call fcn.1400ed78c
mov qword [rbp - 0x48], select
mov qword [rbp - 0x50], r12
mov byte [rbp - 0x60], 0
cmp qword [rbp - 0x68], 0x10
jb 0x1400533d7
mov rcx, qword [rbp - 0x80]
call fcn.1400ed78c
mov qword [rbp - 0x68], select
mov qword [rbp - 0x70], r12
mov byte [rbp - 0x80], 0
mov rax, qword [rbp - 8]
mov qword [rbp], rax
cmp dword [r15], 0
je 0x14005340f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
lea rdi, [rsp + 0x28]
mov ebx, 1
jmp 0x140053458
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400535f0
mov rbx, rax
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1400535a0
nop
mov dword [rsp + 0x20], 6
mov r9, rbx
mov r8, rax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x30]
call fcn.140053640
mov rdi, rax
mov ebx, select
mov dword [rsp + 0x20], ebx
mov qword [r14], r12
mov qword [r14 + 8], r12
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
test r8, r8
je 0x140053478
lock inc dword [r8 + 8]
mov ebx, dword [rsp + 0x20]
mov rcx, r14
call fcn.140030570
nop
mov rax, qword [rdi + 0x10]
mov qword [r14 + 0x10], rax
or ebx, 0x10
mov dword [rsp + 0x20], ebx
test bl, 8
je 0x1400534c6
and ebx, 0xfffffff7
mov dword [rsp + 0x20], ebx
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1400534c6
lock dec dword [rdi + 8]
jne 0x1400534c2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock dec dword [rdi + 0xc]
jne 0x1400534c2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + ioctlsocket]
mov ebx, dword [rsp + 0x20]
test bl, 4
je 0x1400534f7
and ebx, 0xfffffffb
mov dword [rsp + 0x20], ebx
cmp qword [rsp + 0x78], 0x10
jb 0x1400534e4
mov rcx, qword [rsp + 0x60]
call fcn.1400ed78c
mov qword [rsp + 0x78], select
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x60], 0
test bl, 2
je 0x140053528
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
cmp qword [rsp + 0x58], 0x10
jb 0x140053515
mov rcx, qword [rsp + 0x40]
call fcn.1400ed78c
mov qword [rsp + 0x58], select
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], 0
test bl, 1
je 0x140053563
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140053563
lock dec dword [rcx + 8]
jne 0x140053563
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x140053563
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + ioctlsocket]
nop
mov rcx, qword [rbp]
test rcx, rcx
je 0x140053572
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r14
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret