Function at 0x14005a410
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0xb8]
mov qword [rax], 0
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14005a485
mov eax, dword [rsp + 0x30]
jmp 0x14005a702
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
jmp 0x14005a49f
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14005a6a5
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0
je 0x14005a4f2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
cmp byte [rax + rcx], 0
jne 0x14005a4ce
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x68], rax
jmp 0x14005a4fb
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 2
jne 0x14005a51b
mov qword [rsp + 0x38], reloc.WS2_32.dll_recv
jmp 0x14005a536
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0x17
jne 0x14005a531
mov qword [rsp + 0x38], 0x1c
jmp 0x14005a536
jmp 0x14005a491
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x14005a54e
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x10], 0
ja 0x14005a553
jmp 0x14005a491
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jae 0x14005a568
jmp 0x14005a491
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
lea rax, [rax + rcx + 0x30]
mov rcx, rax
call qword [section..data]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14005a59a
mov dword [rsp + 0x30], 8
jmp 0x14005a6a5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx]
mov dword [rax], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 4]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0xc]
mov dword [rax + 0xc], ecx
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rax + 0x20]
mov rsi, qword [rcx + 0x20]
mov rcx, qword [rsp + 0x38]
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x50], 0
je 0x14005a66e
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
add rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x40], 0
jne 0x14005a680
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x58], 0
je 0x14005a696
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
jmp 0x14005a491
cmp qword [rsp + 0x60], 0
je 0x14005a6b8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [rsp + 0x30], 0
je 0x14005a6d4
mov rcx, qword [rsp + 0x40]
call fcn.14005a3c0
mov qword [rsp + 0x40], 0
jmp 0x14005a6ee
cmp qword [rsp + 0x40], 0
jne 0x14005a6ee
mov dword [rsp + 0x30], 0x2af9
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
add rsp, 0x88
pop rdi
pop rsi
ret