Function at 0x140054460
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa0
xor r12d, r12d
mov ebx, r12d
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp - 0x11], 1
cmp qword [rdx + 0x10], r12
je 0x1400544b9
mov rbx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400544af
mov rbx, qword [rdx]
mov qword [rbp - 0x19], 4
jmp 0x1400544d4
cmp qword [rcx + 0x10], rbx
je 0x1400544cc
mov rbx, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x1400544cc
mov rbx, qword [rcx]
mov dword [rbp - 0x15], r9d
mov dword [rbp - 0x19], r12d
lea r9, [rbp - 0x3c]
test r8d, r8d
jns 0x140054520
neg r8d
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400544e0
dec r9
mov byte [r9], 0x2d
jmp 0x14005454a
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140054520
lea r8, [rbp - 0x3c]
mov rdx, r9
lea rcx, [rbp - 0x39]
call fcn.1400593b0
nop
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rdx, qword [rbp - 0x39]
lea r9, [rbp + 0x4f]
lea r8, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400545f0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1400545b9
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400545b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400547f5
call fcn.140062a84
movdqa xmm0, xmmword [0x1400c8260]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rbx, qword [rbp + 0x77]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14005475e
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r12
jmp 0x14005475e
mov rbx, qword [rbp + 0x4f]
mov rsi, qword [rbp + 0x77]
test rbx, rbx
je 0x1400546ef
mov r15, qword [rbp + 0x7f]
movzx r14d, byte [rbp + 0x6f]
nop word [rax + rax]
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140054656
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400546de
test r14b, r14b
je 0x140054680
mov dword [rbp + 0x57], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x57]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140054697
mov qword [rbp - 0x59], rdi
mov rax, qword [rcx]
lea rdx, [rbp - 0x59]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rbx + 4], 0x17
jne 0x1400546bf
mov dword [rbp + 0x57], r12d
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x57]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, rbx
mov rdx, rdi
mov rcx, r15
call fcn.140034330
test al, al
jne 0x140054781
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140054610
mov rbx, qword [rbp + 0x4f]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x140054734
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005472f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400547f5
call fcn.140062a84
movdqa xmm0, xmmword [0x1400c8260]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14005475e
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, 0xffffffffffffffff
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x1400547c3
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400547be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400547f5
call fcn.140062a84
movdqa xmm0, xmmword [0x1400c8260]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x1400547ed
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r12
mov rax, rdi
jmp 0x140054765
call fcn.1400777d0
int3