Function at 0x1400b91c0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14, rcx
mov r15, qword [rdx]
mov rdi, qword [rdx + 8]
movzx ebp, word [rdx + 0x10]
mov rax, qword [0x140202d30]
cmp rax, 3
jne 0x1400b9488
mov r12, rdi
inc r12
jne 0x1400b9207
xor r12d, r12d
mov ebx, 1
cmp r12, rdi
jb 0x1400b922a
jmp 0x1400b9290
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.1400ddf30
test rax, rax
je 0x1400b94d8
mov rbx, rax
cmp r12, rdi
jae 0x1400b9290
lea rax, [r12 + r12]
cmp rax, rdi
cmovbe rax, rdi
cmp rax, 8
mov edx, 8
cmova rdx, rax
test r12, r12
je 0x1400b925c
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 1
jmp 0x1400b9265
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x40]
mov r8d, 1
call fcn.1400b04f0
mov rbx, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
cmp qword [rsp + 0x28], 1
je 0x1400b94e7
mov rcx, rbx
mov rdx, r15
mov r8, rdi
call fcn.1400def70
cmp rdi, 0xf
ja 0x1400b92c5
xor eax, eax
test rdi, rdi
je 0x1400b92d2
xor ecx, ecx
nop dword [rax]
cmp byte [rbx + rcx], 0
je 0x1400b93b0
add rcx, 1
cmp rdi, rcx
jne 0x1400b92b0
jmp 0x1400b92d2
xor ecx, ecx
mov rdx, rbx
mov r8, rdi
call fcn.140013940
test rax, rax
je 0x1400b93be
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x21
mov rcx, rax
xor edx, edx
call fcn.1400ddf30
test rax, rax
je 0x1400b94c7
mov rdi, rax
mov al, byte [0x1401b6838]
mov byte [rdi + 0x20], al
movups xmm0, xmmword [0x1401b6828]
movups xmmword [rdi + 0x10], xmm0
movups xmm0, xmmword [str.data_provided_contains_a_nul_byteFilehandle]
movups xmmword [rdi], xmm0
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call fcn.1400ddf30
test rax, rax
je 0x1400b94b6
mov rsi, rax
mov qword [rax], rdi
movaps xmm0, xmmword [0x1400ee8f0]
movups xmmword [rax + 8], xmm0
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call fcn.1400ddf30
test rax, rax
je 0x1400b94b6
mov rdi, rax
mov qword [rax], rsi
lea rax, [0x1401b4e80]
mov qword [rdi + 8], rax
mov byte [rdi + 0x10], 0xb
test rbx, rbx
je 0x1400b9398
test r12, r12
je 0x1400b9398
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.1400ddf36
mov qword [r14 + 0x10], rdi
mov qword [r14 + 8], 2
mov qword [r14], 1
jmp 0x1400b9478
mov eax, 1
test rax, rax
jne 0x1400b92db
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x40]
call fcn.1400a97c0
mov rsi, rax
mov rdi, rdx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x28]
mov rcx, rax
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x1400b9447
call sub.WS2_32.dll_WSAGetLastError
mov eax, eax
shl rax, 0x18
mov byte [r14 + 8], 0
mov qword [r14 + 9], rax
mov byte [r14 + 0x17], 0
mov word [r14 + 0x15], 0
mov dword [r14 + 0x11], 0
mov eax, 1
jmp 0x1400b945b
mov rax, qword [rsp + 0x28]
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov word [r14 + 0x18], bp
xor eax, eax
mov qword [r14], rax
mov byte [rsi], 0
test rdi, rdi
je 0x1400b9478
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.1400ddf36
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov byte [rsp + 0x28], 1
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rcx, [0x140202d30]
lea r9, [0x1401b7060]
lea r8, [rsp + 0x40]
xor edx, edx
call fcn.1400ec220
jmp 0x1400b91ed
mov ecx, 0x18
mov edx, 8
call fcn.1400e9eb0
ud2
mov ecx, 0x21
mov edx, 1
call fcn.1400e9eb0
ud2
mov edx, 1
mov rcx, r12
call fcn.1400e9eb0
ud2
test r12, r12
jne 0x1400b94f3
call fcn.14000b880
ud2
mov rcx, rbx
mov rdx, r12
call fcn.1400e9eb0
ud2