Function at 0x140124880
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, 0xe8
lea rbp, [rsp + 0x30]
mov rax, qword [0x140325ed8]
xor rax, rbp
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp], 0
mov dword [rbp + 0xc], 0
cmp qword [rbp + 0xe0], 0
je 0x140124906
cmp dword [rbp + 0xe8], 0
jle 0x140124906
mov eax, 0x1c
imul rax, rax, 0
mov rcx, qword [rbp + 0xe0]
add rcx, rax
mov rax, rcx
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
lea rax, [rbp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x7c], 0
mov dword [rbp + 0x80], 1
mov dword [rbp + 0x84], 6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xd0]
movsx eax, byte [rcx + rax]
cmp eax, 0x5b
jne 0x1401249e4
mov edx, 0x1000
mov rcx, qword [rbp + 0xd0]
call fcn.140001160
mov dword [rbp + 8], eax
movsxd rax, dword [rbp + 8]
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14012497c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14026deb0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x40], rax
cmp dword [rbp + 8], 2
jge 0x1401249a4
mov eax, 0xffffffff
jmp 0x140124cd2
mov eax, dword [rbp + 8]
sub eax, 2
cdqe
mov rcx, qword [rbp + 0xd0]
inc rcx
movsxd rdx, dword [rbp + 8]
mov r9, rax
mov r8, rcx
mov rcx, qword [rbp + 0x40]
call fcn.140001020
mov eax, dword [rbp + 8]
sub eax, 2
cdqe
mov rcx, qword [rbp + 0x40]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0
jne 0x1401249f7
mov dword [rbp + 0x20], 0
jmp 0x140124a29
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rbp + 0xd0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [rax + rax + 2]
mov dword [rbp + 0x20], eax
movsxd rax, dword [rbp + 0x20]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0xd8], 0
jne 0x140124a44
mov dword [rbp + 0x24], 0
jmp 0x140124a76
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rbp + 0xd8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [rax + rax + 2]
mov dword [rbp + 0x24], eax
movsxd rax, dword [rbp + 0x24]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x28], 0
jne 0x140124a8f
mov qword [rbp + 0x58], 0
jmp 0x140124abc
mov rax, qword [rbp + 0x28]
add rax, 0xf
cmp rax, qword [rbp + 0x28]
ja 0x140124aa7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14026deb0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x50], rax
cmp qword [rbp + 0x30], 0
jne 0x140124ad5
mov qword [rbp + 0x60], 0
jmp 0x140124b02
mov rax, qword [rbp + 0x30]
add rax, 0xf
cmp rax, qword [rbp + 0x30]
ja 0x140124aed
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14026deb0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x50], 0
je 0x140124b3b
mov eax, dword [rbp + 0x28]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0xd0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp qword [rbp + 0x48], 0
je 0x140124b6c
mov eax, dword [rbp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0xd8]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x78]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov dword [rbp + 0x38], eax
cmp dword [rbp + 0x38], 0
je 0x140124ba3
cmp qword [rbp + 0x18], 0
je 0x140124b9c
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
xor eax, eax
jmp 0x140124cd2
cmp qword [rbp + 0x18], 0
jne 0x140124bb4
mov eax, 0xffffffff
jmp 0x140124cd2
mov rax, qword [rbp + 0x18]
mov qword [rbp], rax
cmp qword [rbp], 0
je 0x140124bed
mov rax, qword [rbp]
cmp dword [rax + 4], 2
je 0x140124bd7
mov rax, qword [rbp]
cmp dword [rax + 4], 0x17
jne 0x140124bdf
mov eax, dword [rbp + 0xc]
inc eax
mov dword [rbp + 0xc], eax
mov rax, qword [rbp]
mov rax, qword [rax + 0x28]
mov qword [rbp], rax
jmp 0x140124bbc
cmp qword [rbp + 0xe0], 0
je 0x140124c41
cmp dword [rbp + 0xe8], 0
jne 0x140124c41
mov rax, qword [rbp + 0xe0]
mov qword [rbp + 0x68], rax
movsxd rax, dword [rbp + 0xc]
imul rax, rax, 0x1c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.140113f90
mov rcx, qword [rbp + 0x68]
mov qword [rcx], rax
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0xe8], eax
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp], rax
cmp qword [rbp], 0
je 0x140124cc5
cmp dword [rbp + 0xe8], 0
jle 0x140124cc5
mov rax, qword [rbp]
cmp dword [rax + 4], 2
je 0x140124c6d
mov rax, qword [rbp]
cmp dword [rax + 4], 0x17
jne 0x140124cb7
movsxd rax, dword [rbp + 0x10]
imul rax, rax, 0x1c
mov rcx, qword [rbp + 0xe0]
add rcx, rax
mov qword [rbp + 0x70], rcx
mov rax, qword [rbp]
mov r9, qword [rax + 0x10]
mov rax, qword [rbp]
mov r8, qword [rax + 0x20]
mov edx, 0x1c
mov rcx, qword [rbp + 0x70]
call fcn.140001020
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0xe8]
dec eax
mov dword [rbp + 0xe8], eax
mov rax, qword [rbp]
mov rax, qword [rax + 0x28]
mov qword [rbp], rax
jmp 0x140124c49
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [rbp + 0x10]
mov rcx, qword [rbp + 0xa8]
xor rcx, rbp
call fcn.14026d940
lea rsp, [rbp + 0xb8]
pop rdi
pop rbp
ret