Function at 0x14014c220
Capabilities:
Resolve dns

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140575740]
xor rax, rbp
mov qword [rbp + 0x128], rax
mov qword [rbp + 0xc8], 0
mov dword [rbp + 4], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x74], 0
cmp qword [rbp + 0x160], 0
je 0x14014c2cf
cmp dword [rbp + 0x168], 0
jle 0x14014c2cf
mov eax, 0x1c
imul rax, rax, 0
mov rcx, qword [rbp + 0x160]
add rcx, rax
mov rax, rcx
mov r8d, 0x1c
xor edx, edx
mov rcx, rax
call fcn.140410c60
nop
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.140410c60
mov dword [rbp + 0x3c], 0
mov dword [rbp + 0x40], 1
mov dword [rbp + 0x44], 6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x150]
movsx eax, byte [rcx + rax]
cmp eax, 0x5b
jne 0x14014c3f4
mov edx, 0x1000
mov rcx, qword [rbp + 0x150]
call fcn.140136c70
mov dword [rbp + 0x78], eax
movsxd rax, dword [rbp + 0x78]
add rax, 0x24
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0xd8]
add rax, 0xf
cmp rax, qword [rbp + 0xd8]
ja 0x14014c353
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14037c5f0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0xe0], rax
lea r8, [rbp + 0xc8]
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
call fcn.14037c2c0
add qword [rbp + 0xe0], 0x20
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0x80], rax
cmp dword [rbp + 0x78], 2
jge 0x14014c3ab
mov eax, 0xffffffff
jmp 0x14014c7dc
mov eax, dword [rbp + 0x78]
sub eax, 2
cdqe
mov rcx, qword [rbp + 0x150]
inc rcx
movsxd rdx, dword [rbp + 0x78]
mov r9, rax
mov r8, rcx
mov rcx, qword [rbp + 0x80]
call fcn.140136a00
mov eax, dword [rbp + 0x78]
sub eax, 2
cdqe
mov rcx, qword [rbp + 0x80]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x150], rax
cmp qword [rbp + 0x150], 0
jne 0x14014c40a
mov dword [rbp + 0xe8], 0
jmp 0x14014c43f
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x150]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [rax + rax + 2]
mov dword [rbp + 0xe8], eax
movsxd rax, dword [rbp + 0xe8]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x158], 0
jne 0x14014c463
mov dword [rbp + 0xec], 0
jmp 0x14014c498
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x158]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [rax + rax + 2]
mov dword [rbp + 0xec], eax
movsxd rax, dword [rbp + 0xec]
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x88], 0
jne 0x14014c4bd
mov qword [rbp + 0xf0], 0
jmp 0x14014c535
mov rax, qword [rbp + 0x88]
add rax, 0x24
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
add rax, 0xf
cmp rax, qword [rbp + 0xf8]
ja 0x14014c4ed
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14037c5f0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x100], rax
lea r8, [rbp + 0xc8]
mov rdx, qword [rbp + 0xf8]
mov rcx, qword [rbp + 0x100]
call fcn.14037c2c0
add qword [rbp + 0x100], 0x20
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x90], 0
jne 0x14014c55a
mov qword [rbp + 0x108], 0
jmp 0x14014c5d2
mov rax, qword [rbp + 0x90]
add rax, 0x24
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
add rax, 0xf
cmp rax, qword [rbp + 0x110]
ja 0x14014c58a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14037c5f0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x118], rax
lea r8, [rbp + 0xc8]
mov rdx, qword [rbp + 0x110]
mov rcx, qword [rbp + 0x118]
call fcn.14037c2c0
add qword [rbp + 0x118], 0x20
mov rax, qword [rbp + 0x118]
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x108]
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0x98], 0
je 0x14014c61b
mov eax, dword [rbp + 0x88]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x150]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
cmp qword [rbp + 0xa0], 0
je 0x14014c656
mov eax, dword [rbp + 0x90]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x158]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x38]
mov rdx, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov dword [rbp], eax
cmp dword [rbp], 0
je 0x14014c694
cmp qword [rbp + 0x18], 0
je 0x14014c68d
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
nop
xor eax, eax
jmp 0x14014c7dc
cmp qword [rbp + 0x18], 0
jne 0x14014c6a5
mov eax, 0xffffffff
jmp 0x14014c7dc
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14014c6de
mov rax, qword [rbp + 0x28]
cmp dword [rax + 4], 2
je 0x14014c6c8
mov rax, qword [rbp + 0x28]
cmp dword [rax + 4], 0x17
jne 0x14014c6d0
mov eax, dword [rbp + 0x74]
inc eax
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x28], rax
jmp 0x14014c6ad
cmp qword [rbp + 0x160], 0
je 0x14014c73b
cmp dword [rbp + 0x168], 0
jne 0x14014c73b
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0xa8], rax
movsxd rax, dword [rbp + 0x74]
imul rax, rax, 0x1c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140138010
mov rcx, qword [rbp + 0xa8]
mov qword [rcx], rax
mov eax, dword [rbp + 0x74]
mov dword [rbp + 0x168], eax
mov rax, qword [rbp + 0xa8]
mov rax, qword [rax]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14014c7cf
cmp dword [rbp + 0x168], 0
jle 0x14014c7cf
mov rax, qword [rbp + 0x28]
cmp dword [rax + 4], 2
je 0x14014c76b
mov rax, qword [rbp + 0x28]
cmp dword [rax + 4], 0x17
jne 0x14014c7be
movsxd rax, dword [rbp + 4]
imul rax, rax, 0x1c
mov rcx, qword [rbp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
mov r9, qword [rax + 0x10]
mov rax, qword [rbp + 0x28]
mov r8, qword [rax + 0x20]
mov edx, 0x1c
mov rcx, qword [rbp + 0x120]
call fcn.140136a00
mov eax, dword [rbp + 0x168]
dec eax
mov dword [rbp + 0x168], eax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x28], rax
jmp 0x14014c743
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
mov r8, qword [rbp + 0xc8]
call fcn.14037c390
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.14037c650
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret