Function at 0x180045e78
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x180201ac0]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, r8d
mov rbx, rdx
mov rsi, rcx
call fcn.180047a2c
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 6
mov rdi, qword [rbx]
mov r15, qword [rbx + 8]
cmp rdi, r15
je 0x1800460a6
and qword [rsp + 0x20], 0
lea rbx, [rdi + 0x20]
mov rdx, rbx
cmp qword [rdi + 0x38], 0x10
jb 0x180045efb
mov rdx, qword [rbx]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180045f08
mov rcx, qword [rdi]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x180046045
and qword [rsp + 0x70], 0
and qword [rbp - 0x80], 0
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], al
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x70]
call fcn.180136140
nop
lea rdx, [rdi + 0x40]
lea rcx, [rsp + 0x70]
call fcn.18002c1e0
xor edx, edx
mov r8d, 0x80
lea rcx, [rbp - 0x70]
call fcn.180136140
mov rax, qword [rsp + 0x20]
movzx ecx, word [rax + 4]
mov word [rbp - 0x70], cx
mov eax, 2
mov rdx, rdi
cmp ax, cx
jne 0x180045f92
cmp qword [rdi + 0x18], 0x10
jb 0x180045f8c
mov rdx, qword [rdi]
lea r8, [rbp - 0x6c]
jmp 0x180045fa0
cmp qword [rdi + 0x18], 0x10
jb 0x180045f9c
mov rdx, qword [rdi]
lea r8, [rbp - 0x68]
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, 0xa
xor edx, edx
mov rcx, rbx
call fcn.180047ecc
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x6e], ax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rsi + 0x50]
cmp rax, qword [rsi + 0x58]
je 0x180045fee
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.180042fcc
add qword [rsi + 0x50], 0xa0
jmp 0x180046000
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rsi + 0x48]
call fcn.180042484
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18004603c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046037
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180046155
call fcn.180133ca4
add rdi, 0x60
jmp 0x180045edb
mov r9d, 2
mov r8d, 0x105
lea rdx, str.Z:DevelopePrivateCodes_netshield_thirdgen_serverlocal_serverlocal_server.cpp
lea rcx, [rsp + 0x28]
call fcn.180076e30
nop
mov rcx, rax
call fcn.18007cf90
mov rcx, rax
lea rdx, str.failed_to_resolve_host
call fcn.18002e990
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180046087
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.18002ff30
nop
lea rcx, [rsp + 0x28]
call fcn.180077220
or eax, 0xffffffff
jmp 0x18004612d
mov rcx, qword [rsi + 0x50]
sub rcx, qword [rsi + 0x48]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsi + 0x60], rdx
mov rcx, rsi
call fcn.1800466e0
mov rcx, qword [rsi]
call fcn.180068220
lea r8, [0x180041ec4]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi]
call fcn.18006bc20
lea r8, [0x180041f50]
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rsi]
call fcn.18006bc20
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rsi]
call fcn.18006a8c0
mov rax, qword [rsi + 0x18]
mov qword [rax], rsi
mov rax, qword [rsi + 0x20]
mov qword [rax], rsi
mov rax, qword [rsi + 0x28]
mov qword [rax], rsi
mov dword [rsi + 0x147c], r12d
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.180133630
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.18013a40c
int3