Function at 0x14004ea0c
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 8], rax
mov r13, r9
mov r14, rdx
mov qword [rsp + 0x68], rdx
mov r15, qword [rbp + 0x70]
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x40], r12
lea rdx, [r9 + 0x50]
lea rcx, [rbp - 0x58]
call fcn.1400033c0
mov dword [rsp + reloc.WLDAP32.dll_Ordinal_32], 0x20
lea rbx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rbx, qword [rbp - 0x58]
lea rdx, [r13 + 0x30]
lea rcx, [rbp - 0x78]
call fcn.1400033c0
lea edi, [r12 + 0x60]
mov dword [rsp + 0x20], edi
lea rsi, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rsi, qword [rbp - 0x78]
test rsi, rsi
je 0x14004eaa3
cmp byte [rsi], r12b
jne 0x14004eaa6
mov rsi, r12
test rbx, rbx
je 0x14004eab0
cmp byte [rbx], r12b
jne 0x14004eab3
mov rbx, r12
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x40]
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
test eax, eax
je 0x14004eba7
sub ecx, 8
je 0x14004eb98
sub ecx, 0x271e
je 0x14004eb89
sub ecx, 0x16
je 0x14004eb7a
sub ecx, 3
je 0x14004eb6b
sub ecx, 0x3e
je 0x14004eb5c
sub ecx, 0x37c
je 0x14004eb4d
sub ecx, 1
je 0x14004eb3e
cmp ecx, 1
je 0x14004eb2f
call fcn.140046f9c
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
jmp 0x14004ebb8
call fcn.140046f9c
mov dword [rsp + 0x30], 0x2afb
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], 0x2afa
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], 0x2af9
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], 0x277d
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], 0x273f
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], 0x273c
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], 0x2726
jmp 0x14004ebb3
call fcn.140046f9c
mov dword [rsp + 0x30], reloc.WS2_32.dll_ntohl
jmp 0x14004ebb3
mov dword [rsp + 0x30], r12d
lea rax, str.___r_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [r15], xmm0
and edi, 0xffffffbf
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x14004ec07
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ec02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ec02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007721c
mov qword [rbp - 0x68], r12
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x60], rbx
mov byte [rbp - 0x78], r12b
and edi, 0xffffffdf
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x14004ec5d
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ec58
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ec58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007721c
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x58], r12b
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
cmp dword [r15], r12d
je 0x14004ec90
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
lea rcx, [rsp + 0x50]
or edi, 1
jmp 0x14004ecd5
lea rdx, [rbp - 0x18]
mov rcx, r13
call fcn.14004f4f0
mov rbx, rax
or edi, 2
mov dword [rsp + 0x20], edi
lea rdx, [rbp - 0x38]
mov rcx, r13
call fcn.14004f524
nop
or edi, 4
mov dword [rsp + 0x20], edi
mov r9, rbx
mov r8, rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.14004f188
mov rcx, rax
or edi, 8
mov dword [rsp + 0x20], edi
mov qword [r14], r12
mov qword [r14 + 8], r12
mov rax, qword [rcx]
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
mov qword [rcx + 0x10], r12
or edi, 0x10
mov dword [rsp + 0x20], edi
or esi, 0xffffffff
test dil, 8
je 0x14004ed4d
and edi, 0xfffffff7
mov dword [rsp + 0x20], edi
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x14004ed4d
mov eax, esi
lock xadd dword [rbx + 8], eax
add eax, esi
jne 0x14004ed49
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x14004ed49
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov edi, dword [rsp + 0x20]
test dil, 4
je 0x14004eda8
and edi, 0xfffffffb
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14004ed98
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ed93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ed93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007721c
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], r12b
test dil, 2
je 0x14004ee03
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x14004edf3
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004edee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004edee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007721c
mov qword [rbp - 8], r12
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], r12b
test dil, 1
je 0x14004ee49
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14004ee49
mov eax, esi
lock xadd dword [rcx + 8], eax
add eax, esi
jne 0x14004ee49
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
add eax, esi
jne 0x14004ee49
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14004ee59
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r14
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140076f70
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret