Function at 0x499e05
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov eax, 0
mov byte [rbp - 1], al
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
mov rcx, qword [rbp + 0x18]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r11, [rsp + 0x20]
lea rax, [rbp - 0x90]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004a7c20
mov eax, 0x40
mov r8, rax
lea rax, [rbp - 0x90]
mov r11, rax
lea rax, [rbp - 0x50]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x50]
cmp eax, 0
je 0x499edc
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x50]
mov r11, rax
lea rax, [rbp - 0xd8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x48
mov r8, rcx
lea rcx, [rbp - 0xd8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49aaf0
mov eax, 0x18
mov r8, rax
lea rax, [rbp - 0x28]
mov r11, rax
lea rax, [rbp - 0xf0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0xf0]
mov r11, rax
lea rax, [rbp - 0x100]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, word [rbp - 0xe0]
mov word [rbp - 0x102], ax
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
mov rcx, qword [rbp + 0x18]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov r11, rax
lea r10, [rsp + 0x20]
mov rcx, r10
mov rdx, r11
call fcn.004376f3
movzx eax, al
cmp eax, 0x3a
jne 0x49a19f
mov eax, dword [rbp + 0x20]
cmp eax, 0x17
jne 0x49a087
lea rax, [0x00509e48]
mov r8, rax
movzx eax, word [rbp - 0x102]
mov r11, rax
lea rax, [rbp - 0x26c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.004986fa
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x26c]
mov r11, rax
lea rax, [rbp - 0x1fe]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x1fe]
mov qword [rsp + 0x20], rax
mov eax, 0x6e
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 1
mov r11, rax
lea rax, [rbp - 0x190]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0041f809
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x190]
mov r11, rax
lea rax, [rbp - 0x170]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x150]
mov r11, rax
lea rax, [rbp - 0x170]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0042c0a5
mov rax, qword [rbp + 0x10]
mov ecx, 0x48
mov r8, rcx
lea rcx, [rbp - 0x150]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49aaf0
mov eax, dword [rbp + 0x20]
cmp eax, 2
je 0x49a09f
mov eax, dword [rbp + 0x20]
cmp eax, 0
jne 0x49a19f
lea rax, [0x00509e58]
mov r8, rax
movzx eax, word [rbp - 0x102]
mov r11, rax
lea rax, [rbp - 0x3d4]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00498866
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x3d4]
mov r11, rax
lea rax, [rbp - 0x366]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x366]
mov qword [rsp + 0x20], rax
mov eax, 0x6e
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 1
mov r11, rax
lea rax, [rbp - 0x2f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0041f809
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x2f8]
mov r11, rax
lea rax, [rbp - 0x2d8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x2b8]
mov r11, rax
lea rax, [rbp - 0x2d8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0042c0a5
mov rax, qword [rbp + 0x10]
mov ecx, 0x48
mov r8, rcx
lea rcx, [rbp - 0x2b8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49aaf0
movabs rax, 0x30
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x408]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00425a73
mov eax, dword [rbp + 0x20]
mov dword [rbp - 0x404], eax
mov eax, dword [rbp + 0x28]
mov dword [rbp - 0x400], eax
mov eax, 1
mov dword [rbp - 0x408], eax
movabs rax, 0
mov qword [rbp - 0x10], rax
lea rax, [0x0050d512]
mov qword [rbp - 0x488], rax
mov eax, 0
mov dword [rbp - 0x480], eax
mov eax, 1
mov dword [rbp - 0x47c], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x488]
mov r11, rax
lea rax, [rbp - 0x478]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0xfe04
mov dword [rbp - 0x468], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x464]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
movzx eax, word [rbp - 0x102]
mov word [rbp - 0x460], ax
movabs rax, 0xe
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x45e]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
lea rax, [0x0050d513]
mov qword [rbp - 0x498], rax
mov eax, 0
mov dword [rbp - 0x490], eax
mov eax, 1
mov dword [rbp - 0x48c], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x498]
mov r11, rax
lea rax, [rbp - 0x450]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov dword [rbp - 0x440], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x43c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov dword [rbp - 0x438], eax
movabs rax, 0xc
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x434]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x478]
mov r8, rax
mov eax, 2
mov r11, rax
lea rax, [rbp - 0x428]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0043dca9
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x428]
mov r11, rax
lea rax, [rbp - 0x418]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x10]
mov r9, rax
lea rax, [rbp - 0x408]
mov r8, rax
mov rax, qword [rbp - 0x418]
mov r11, rax
mov rax, qword [rbp - 0x100]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.ws2_32.dll_getaddrinfo
mov ecx, 0
sub ecx, eax
mov r11, rcx
lea rax, [rbp - 0x4f8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0049bfab
mov eax, 0x30
mov r8, rax
lea rax, [rbp - 0x4f8]
mov r11, rax
lea rax, [rbp - 0x4c8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movzx eax, byte [rbp - 0x4c8]
cmp eax, 0
je 0x49a48a
movabs rax, 0x28
mov r8, rax
lea rax, [rbp - 0x4c8]
mov r11, rax
lea rax, [rbp - 0x540]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp + 0x10]
mov ecx, 0x48
mov r8, rcx
lea rcx, [rbp - 0x540]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
jmp 0x49aaf0
mov eax, 1
mov byte [rbp - 1], al
movabs rax, 0
mov qword [rsp + 0x20], rax
mov eax, 0x6e
mov r9, rax
mov eax, 0
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x580]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0041f4f1
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x580]
mov r11, rax
lea rax, [rbp - 0x560]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x588], rax
mov rax, qword [rbp - 0x588]
mov r10, rax
mov rcx, r10
call fcn.00423db0
movzx eax, al
cmp eax, 0
jne 0x49aa62
jmp 0x49a53a
mov rax, qword [rbp - 0x588]
add rax, 0x28
mov rcx, qword [rax]
mov qword [rbp - 0x588], rcx
jmp 0x49a500
mov rax, qword [rbp - 0x588]
add rax, 4
mov ecx, dword [rax]
mov dword [rbp - 0x58c], ecx
mov eax, dword [rbp - 0x58c]
cmp eax, 2
jne 0x49a6ff
mov eax, 0
mov word [rbp - 0x668], ax
mov eax, 0
mov word [rbp - 0x6e2], ax
mov eax, 0
mov byte [rbp - 0x6e0], al
movabs rax, 3
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x6df]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov byte [rbp - 0x6dc], al
movabs rax, 7
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x6db]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0xe
mov r8, rax
lea rax, [rbp - 0x6e2]
mov r11, rax
lea rax, [rbp - 0x6d4]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movabs rax, 0x5e
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x6c6]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0x6c
mov r8, rax
lea rax, [rbp - 0x6d4]
mov r11, rax
lea rax, [rbp - 0x666]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x668]
mov r11, rax
lea rax, [rbp - 0x5fa]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0x588]
add rax, 0x20
mov rcx, qword [rbp - 0x588]
add rcx, 0x10
mov rdx, qword [rcx]
mov r8, rdx
mov rcx, qword [rax]
mov r11, rcx
lea rax, [rbp - 0x5fa]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x5fa]
mov r11, rax
lea rax, [rbp - 0x750]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x750]
mov r11, rax
lea rax, [rbp - 0x560]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00420cf3
jmp 0x49aa5d
mov eax, dword [rbp - 0x58c]
cmp eax, 0x17
jne 0x49a892
mov eax, 0
mov word [rbp - 0x82c], ax
mov eax, 0
mov word [rbp - 0x8b2], ax
mov eax, 0
mov dword [rbp - 0x8b0], eax
mov eax, 0
mov byte [rbp - 0x8ac], al
movabs rax, 0xf
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x8ab]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov dword [rbp - 0x89c], eax
mov eax, 0x1a
mov r8, rax
lea rax, [rbp - 0x8b2]
mov r11, rax
lea rax, [rbp - 0x898]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
movabs rax, 0x52
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x87e]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0x6c
mov r8, rax
lea rax, [rbp - 0x898]
mov r11, rax
lea rax, [rbp - 0x82a]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x82c]
mov r11, rax
lea rax, [rbp - 0x7be]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 0x588]
add rax, 0x20
mov rcx, qword [rbp - 0x588]
add rcx, 0x10
mov rdx, qword [rcx]
mov r8, rdx
mov rcx, qword [rax]
mov r11, rcx
lea rax, [rbp - 0x7be]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, 0x6e
mov r8, rax
lea rax, [rbp - 0x7be]
mov r11, rax
lea rax, [rbp - 0x920]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea rax, [rbp - 0x920]
mov r11, rax
lea rax, [rbp - 0x560]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00420cf3
jmp 0x49aa5d
lea rax, str.Unexpected_address_family
mov qword [rbp - 0x990], rax
mov eax, 0x1a
mov dword [rbp - 0x988], eax
mov eax, 1
mov dword [rbp - 0x984], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x990]
mov r11, rax
lea rax, [rbp - 0x980]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0xfe07
mov dword [rbp - 0x970], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x96c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x588]
add rax, 4
mov ecx, dword [rax]
mov dword [rbp - 0x968], ecx
movabs rax, 0xc
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x964]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
lea rax, [0x0050d52f]
mov qword [rbp - 0x9a0], rax
mov eax, 0
mov dword [rbp - 0x998], eax
mov eax, 1
mov dword [rbp - 0x994], eax
mov eax, 0x10
mov r8, rax
lea rax, [rbp - 0x9a0]
mov r11, rax
lea rax, [rbp - 0x958]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0
mov dword [rbp - 0x948], eax
movabs rax, 4
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x944]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
mov eax, 0
mov dword [rbp - 0x940], eax
movabs rax, 0xc
mov r8, rax
mov eax, 0
mov r11, rax
lea rax, [rbp - 0x93c]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x980]
mov r8, rax
mov eax, 2
mov r11, rax
lea rax, [rbp - 0x930]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0043dca9
lea rax, [rsp + 0x20]
mov ecx, 0x10
mov r8, rcx
lea rcx, [rbp - 0x930]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
lea r10, [rsp + 0x20]
mov rcx, r10
call fcn.00421fc8
jmp 0x49a523
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x560]
mov r11, rax
lea rax, [rbp - 0xa08]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
mov eax, 0x20
mov r8, rax
lea rax, [rbp - 0x9e8]
mov r11, rax
lea rax, [rbp - 0xa08]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0042c0a5
movzx eax, byte [rbp - 1]
cmp eax, 0
je 0x49aacc
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
call sub.ws2_32.dll_freeaddrinfo
mov rax, qword [rbp + 0x10]
mov ecx, 0x48
mov r8, rcx
lea rcx, [rbp - 0x9e8]
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memmove
leave
ret