Function at 0x140022f20
Capabilities:
Convert ip address from string
Get routing table
Query or enumerate registry value

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x4f]
sub rsp, 0x88
xor ecx, ecx
call fcn.140022520
mov rdi, rax
test rax, rax
jne 0x140021f38
add rsp, 0x88
pop rdi
pop rbp
ret
mov qword [rsp + 0x80], rbx
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x78], rsi
xor r8d, r8d
xor esi, esi
mov qword [rsp + 0x70], r12
xor ecx, ecx
mov dword [rbp + 0x67], esi
mov r12d, esi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x1400222c7
mov ecx, dword [rbp + 0x67]
mov qword [rsp + 0x68], r13
call fcn.140038534
xor r8d, r8d
lea rdx, [rbp + 0x67]
mov rcx, rax
mov r13, rax
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x1400222c2
lea rcx, [0x1400745d8]
mov qword [rsp + 0x60], r14
xor bl, bl
mov qword [rbp - 1], rsi
call fcn.140008e10
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000c130
mov rdx, qword [rbp - 1]
lea rax, [rbp + 0xf]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022041
lea rcx, [0x140074618]
mov dword [rbp + 0x77], 4
mov dword [rbp + 0x6f], 4
call fcn.140008c70
mov rcx, qword [rbp + 0xf]
lea r9, [rbp + 0x77]
mov r14, rax
xor r8d, r8d
lea rax, [rbp + 0x6f]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002202f
mov eax, 1
movzx ebx, bl
cmp dword [rbp + 0x7f], eax
cmove ebx, eax
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.140038520
mov rcx, qword [rbp - 1]
mov qword [rsp + 0x58], r15
call fcn.140038520
test bl, bl
je 0x1400221e8
lea rcx, [0x1400745d8]
mov qword [rbp + 0xf], rsi
mov r15, rsi
call fcn.140008e10
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.14000c130
mov rdx, qword [rbp + 0xf]
lea rax, [rbp + 7]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002212f
lea rcx, [0x140074628]
mov dword [rbp + 0x77], 4
call fcn.140008c70
mov rcx, qword [rbp + 7]
lea r9, [rbp + 0x77]
mov rbx, rax
xor r8d, r8d
lea rax, [rbp + 0x6f]
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002211d
mov ecx, dword [rbp + 0x6f]
test ecx, ecx
je 0x14002211d
call fcn.140038534
mov rcx, qword [rbp + 7]
lea r9, [rbp + 0x77]
mov r15, rax
xor r8d, r8d
lea rax, [rbp + 0x6f]
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14002211d
mov rcx, r15
call fcn.140038520
mov r15, rsi
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140038520
mov rcx, qword [rbp + 0xf]
call fcn.140038520
test r15, r15
je 0x1400222b0
mov edx, 0x3a
mov rcx, r15
call fcn.140036edc
test rax, rax
je 0x140022156
mov byte [rax], sil
lea r8, [rbp - 1]
mov rdx, r15
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1400222a8
mov rbx, rsi
cmp qword [rdi + 8], rbx
jbe 0x1400222a8
nop
mov rax, qword [rdi]
lea r8, [rbp + 0x7f]
mov ecx, 2
mov r14, qword [rax + rbx*8]
mov rdx, qword [r14 + 0x18]
call sub.WS2_32.dll_InetPtonW
cmp eax, 1
jne 0x1400221da
mov rdx, qword [r14 + 8]
lea r8, [rbp - 9]
lea ecx, [rax + 1]
call sub.WS2_32.dll_InetPtonW
cmp eax, 1
jne 0x1400221da
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x1400221da
mov edx, dword [rbp - 9]
and edx, eax
and eax, dword [rbp - 1]
cmp eax, edx
jne 0x1400221da
mov rcx, r12
call fcn.140038520
mov rcx, qword [r14 + 8]
call fcn.14003fa28
mov r12, rax
inc rbx
cmp rbx, qword [rdi + 8]
jb 0x140022180
jmp 0x1400222a8
mov edx, dword [r13]
mov r9d, esi
mov r8d, 0xffffffff
test rdx, rdx
je 0x14002221d
lea rax, [r13 + 0x28]
nop
cmp dword [rax - 0x24], esi
jne 0x140022213
mov ecx, dword [rax]
cmp r8d, ecx
jbe 0x140022213
mov r9d, dword [rax - 0x18]
mov r8d, ecx
add rax, 0x38
sub rdx, 1
jne 0x140022200
mov ecx, 0x20
mov dword [rbp + 0x7f], r9d
call fcn.140038534
mov r9d, sendto
lea rdx, [rbp + 0x7f]
mov r8, rax
mov r15, rax
lea ecx, [r9 - 0xe]
call sub.WS2_32.dll_InetNtopW
test r15, r15
je 0x1400222a8
mov rbx, rsi
cmp qword [rdi + 8], rbx
jbe 0x1400222a8
mov rax, qword [rdi]
mov r9, r15
mov r14, qword [rax + rbx*8]
mov rax, qword [r14 + 0x50]
sub r9, rax
nop dword [rax]
nop word [rax + rax]
movzx r8d, word [rax]
movzx edx, word [rax + r9]
sub r8d, edx
jne 0x140022286
add rax, 2
test edx, edx
jne 0x140022270
test r8d, r8d
jne 0x14002229f
mov rcx, r12
call fcn.140038520
mov rcx, qword [r14 + 8]
call fcn.14003fa28
mov r12, rax
inc rbx
cmp rbx, qword [rdi + 8]
jb 0x140022252
mov rcx, r15
call fcn.140038520
mov rcx, r13
call fcn.140038520
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
cmp qword [rdi + 8], rsi
jbe 0x1400222f0
nop dword [rax]
mov rax, qword [rdi]
mov rbx, qword [rax + rsi*8]
mov rcx, rbx
call fcn.14000b5b0
mov rcx, rbx
call fcn.140038520
inc rsi
cmp rsi, qword [rdi + 8]
jb 0x1400222d0
xor edx, edx
mov rcx, rdi
call fcn.140004aa0
mov rcx, rdi
call fcn.140038520
mov rsi, qword [rsp + 0x78]
mov rax, r12
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x88
pop rdi
pop rbp
ret
jmp 0x140021f10