Function at 0x180139600
Capabilities:
Resolve dns

Disassembly:
jmp 0x18015d770
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x1802658e0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r12, r9
mov r15, r8
mov r14, rcx
xor esi, esi
mov qword [r8], rsi
mov dword [r9], esi
test edx, edx
jne 0x18015d7b9
movzx edi, si
jmp 0x18015d7f3
cmp edx, 1
jne 0x18015d7c3
lea edi, [rdx + 1]
jmp 0x18015d7f3
mov r8d, 0xff
mov eax, r8d
mov ecx, reloc.WS2_32.dll_socket
cmp edx, 2
cmove ax, cx
movzx edi, ax
cmp ax, r8w
jne 0x18015d7f3
mov ecx, 0x273f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x18015da55
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov rbx, rsi
mov qword [rsp + 0x40], rbx
mov rcx, r14
call fcn.18015d2e0
test ax, ax
je 0x18015d8c2
test di, di
je 0x18015d82f
cmp di, ax
je 0x18015d82f
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x18015da44
mov word [rbp - 0x70], ax
cmp ax, 2
je 0x18015d856
cmp ax, 0x17
je 0x18015d84f
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x18015da44
mov ecx, 0x1c
jmp 0x18015d85b
mov ecx, reloc.WS2_32.dll_recv
mov dword [rsp + 0x48], ecx
movzx edx, ax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x18015da44
lea edx, [rax + 1]
lea rcx, [rsp + 0x30]
call fcn.18015f860
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18015d8a2
lea rcx, [rbp - 0x70]
mov qword [rax], rcx
add rax, 8
mov qword [rsp + 0x38], rax
mov r8, r12
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.18015da80
mov esi, eax
jmp 0x18015da44
mov qword [rsp + 0x50], rsi
xor eax, eax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov dword [rbp - 0x7c], eax
mov dword [rsp + 0x58], pe_nt_image_headers64
movzx eax, di
mov dword [rsp + 0x5c], eax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x50], rax
mov r8d, 3
mov rdx, r14
lea rcx, [rbp - 0x50]
call fcn.18015f670
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
lea rax, [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
cmp rcx, rax
je 0x18015d938
call fcn.180179510
test edi, edi
je 0x18015d949
mov ecx, edi
call qword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x18015da44
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18015da16
movabs r13, 0x1fffffffffffffff
mov rcx, qword [rsp + 0x38]
mov eax, dword [rdi + 4]
cmp eax, 2
je 0x18015d977
cmp eax, 0x17
jne 0x18015d9fb
mov r14, qword [rdi + 0x20]
cmp rcx, rbx
jne 0x18015d9ea
mov rax, rbx
sub rax, rcx
sar rax, 3
cmp rax, 1
jae 0x18015d9ea
mov rdx, qword [rsp + 0x30]
sub rcx, rdx
sar rcx, 3
mov rax, r13
sub rax, rcx
cmp rax, 1
jb 0x18015da09
lea r8, [rcx + 1]
sub rbx, rdx
sar rbx, 3
mov rcx, rbx
shr rcx, 1
mov rax, r13
sub rax, rcx
cmp rax, rbx
jae 0x18015d9c9
mov rbx, rsi
jmp 0x18015d9cc
add rbx, rcx
cmp rbx, r8
cmovb rbx, r8
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.18015f860
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18015d9f2
mov qword [rcx], r14
add rcx, 8
mov qword [rsp + 0x38], rcx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
je 0x18015da16
jmp 0x18015d966
lea rcx, str.vector_T__too_long
call fcn.18017929c
int3
mov r8, r12
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.18015da80
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
jne 0x18015da42
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, ebx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18015da53
call sym.HPSocket4C_U.dll_SYS_Free
mov eax, esi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180179370
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret