Function at 0x18004d8f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov r12, r9
mov rbx, rdx
mov rdi, rcx
mov esi, 0xffffffff
test r8, r8
je 0x18004d92d
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [r8 + 0x20]
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm0
jmp 0x18004d93c
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
lea rax, [rbp + 0x40]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call fcn.18004e7c0
test eax, eax
je 0x18004dbd3
cmp eax, 8
je 0x18004dbd3
cmp eax, 0x2af9
je 0x18004dbd3
cmp dword [0x18032f584], 0
mov qword [rsp + 0x90], r13
jne 0x18004d980
call fcn.1800503a0
cmp dword [0x18032f57c], 0
mov r13d, 1
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa8], r15
je 0x18004d9ee
test rbx, rbx
je 0x18004d9ee
mov eax, dword [rbp - 0x28]
test eax, eax
jne 0x18004d9f1
mov rcx, rbx
call fcn.1800501c0
mov dword [rbp + 0x40], eax
mov esi, eax
test eax, eax
js 0x18004d9ee
test rdi, rdi
jne 0x18004d9e0
lea rax, [rbp + 0x40]
mov r9, r12
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rbx
xor ecx, ecx
call fcn.18004e7c0
jmp 0x18004dbbb
mov eax, dword [rbp - 0x28]
xor r14d, r14d
mov ebx, r14d
mov r15d, r13d
jmp 0x18004d9f7
mov eax, dword [rbp - 0x28]
xor r14d, r14d
mov r15d, r14d
cmp dword [0x18032f584], 0
jne 0x18004da08
call fcn.1800503a0
mov eax, dword [rbp - 0x28]
cmp dword [0x18032f580], 0
je 0x18004da58
mov ecx, dword [rbp - 0x24]
test ecx, ecx
jne 0x18004da38
test eax, eax
je 0x18004da58
cmp eax, 2
jne 0x18004da2a
mov dword [rbp - 0x24], reloc.WS2_32.dll_recvfrom
jmp 0x18004da58
cmp eax, r13d
jne 0x18004da38
mov dword [rbp - 0x24], 6
jmp 0x18004da58
test eax, eax
jne 0x18004da58
test ecx, ecx
je 0x18004da58
cmp ecx, 0x11
jne 0x18004da4e
mov dword [rbp - 0x28], 2
jmp 0x18004da58
cmp ecx, 6
cmove eax, r13d
mov dword [rbp - 0x28], eax
and dword [rbp - 0x30], 0x7fffffff
lea r8, [rbp - 0x30]
mov r9, r12
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r13d, eax
test r15d, r15d
je 0x18004dadc
mov rcx, qword [r12]
mov rbx, r12
test rcx, rcx
je 0x18004dadc
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x18004dabc
movzx eax, word [rdi]
cmp ax, 2
jne 0x18004daa7
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
jmp 0x18004dacd
cmp ax, 0x17
jne 0x18004dabc
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
jmp 0x18004dacd
mov rax, qword [rcx + 0x28]
mov qword [rbx], rax
mov qword [rcx + 0x28], r14
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, qword [rbx]
add rbx, 0x28
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18004da86
cmp dword [0x18032f584], 0
jne 0x18004daea
call fcn.1800503a0
cmp dword [0x18032f580], 0
je 0x18004dbb8
mov rbx, qword [r12]
test rbx, rbx
je 0x18004dbb8
mov eax, dword [rbx + 0xc]
test eax, eax
jne 0x18004db35
mov ecx, dword [rbx + 8]
mov eax, r14d
test ecx, ecx
je 0x18004db35
cmp ecx, 2
jne 0x18004db26
mov dword [rbx + 0xc], reloc.WS2_32.dll_recvfrom
lea eax, [rcx + 0xf]
jmp 0x18004db35
cmp ecx, 1
jne 0x18004db35
mov dword [rbx + 0xc], 6
lea eax, [rcx + 5]
cmp dword [rbx + 8], 0
jne 0x18004dbab
test eax, eax
je 0x18004db5b
cmp eax, 0x11
jne 0x18004db4d
mov dword [rbx + 8], 2
jmp 0x18004dbab
cmp eax, 6
jne 0x18004dbab
mov dword [rbx + 8], 1
jmp 0x18004dbab
mov ecx, gethostbyaddr
call fcn.18022c454
mov rcx, rax
test rax, rax
je 0x18004dbde
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x20], xmm0
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 6
mov dword [rax + 8], 2
mov dword [rax + 0xc], reloc.WS2_32.dll_recvfrom
mov rax, qword [rbx + 0x28]
mov qword [rcx + 0x28], rax
mov qword [rbx + 0x28], rcx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18004db04
mov eax, r13d
mov r14, qword [rsp + 0x98]
mov r15, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x90]
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [r12]
call fcn.18004dc00
mov eax, 8
mov qword [r12], r14
jmp 0x18004dbbb