Function at 0x14017e5e0
Capabilities:
Check os version
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x850]
sub rsp, 0x950
mov rax, qword [0x14045f360]
xor rax, rsp
mov qword [rbp + 0x840], rax
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x70], rcx
call fcn.14016f1c0
nop
lea rax, vtable.xercesc_3_2::Win32TransService.0
mov qword [r15], rax
xor r13d, r13d
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], rbx
mov dword [rbp - 0x80], 0x94
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rbp - 0x70], 2
jne 0x14017e66a
cmp dword [rbp - 0x7c], 5
ja 0x14017e663
jne 0x14017e66a
cmp dword [rbp - 0x78], r13d
jbe 0x14017e66a
mov byte [0x140472c08], 1
mov ecx, 0x38
call fcn.14016c4b0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14017e694
mov r8, qword [0x140472b40]
mov edx, 0x6d
mov rcx, rax
call fcn.14016ee20
jmp 0x14017e697
mov rax, r13
mov qword [r15 + 8], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.MIMEDatabaseCharset
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14017ebb8
mov edi, r13d
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x14017e86f
nop word [rax + rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14017e830
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.14017f010
test al, al
jne 0x14017e825
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Codepage
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14017e825
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x14017e825
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.InternetEncoding
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14017e825
mov rdx, qword [r15 + 0x10]
lea ecx, [rax + 0x18]
call fcn.14016c4e0
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14017e80b
mov r9, qword [r15 + 0x10]
mov r8d, dword [rsp + 0x60]
lea rdx, [rbp + 0x20]
mov rcx, rax
call fcn.14017e400
mov rbx, rax
jmp 0x14017e80e
mov rbx, r13
mov rcx, rbx
call fcn.140135120
mov rdx, rax
mov r8, rbx
mov rcx, qword [r15 + 8]
call fcn.14017f230
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x20]
mov edx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x14017e710
mov r12d, r13d
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x14017ebac
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14017eb6b
mov r8d, 0x400
lea rdx, [rbp + 0x430]
mov rcx, qword [rsp + 0x48]
call fcn.14017f010
test al, al
je 0x14017eb60
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 0xffffffff
lea r8, [rbp + 0x430]
lea edx, [r9 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
test eax, eax
je 0x14017eb60
mov rcx, qword [r15 + 0x10]
mov r8, qword [rcx]
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
call qword [r8 + 0x10]
mov rbx, rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x430]
lea edx, [r9 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [rbx + rdi*2], r13w
mov rcx, rbx
call fcn.1402b2930
mov r9, qword [r15 + 8]
test rbx, rbx
je 0x14017e9b9
movzx eax, word [rbx]
test ax, ax
je 0x14017e9b9
mov r8d, eax
lea rdx, [rbx + 2]
movzx eax, word [rdx]
test ax, ax
je 0x14017e9ae
nop dword [rax]
imul rcx, r8, 0x26
shr r8, 0x18
add rcx, r8
movzx r8d, ax
add r8, rcx
lea rdx, [rdx + 2]
movzx eax, word [rdx]
test ax, ax
jne 0x14017e990
xor edx, edx
mov rax, r8
div qword [r9 + 0x18]
jmp 0x14017e9bc
mov rdx, r13
mov rax, qword [r9 + 0x10]
mov r9, qword [rax + rdx*8]
test r9, r9
je 0x14017eb53
mov rax, qword [r9 + 0x10]
cmp rbx, rax
je 0x14017ea1e
test rbx, rbx
je 0x14017ea0d
movzx edx, word [rbx]
test rax, rax
je 0x14017ea08
test dx, dx
je 0x14017ea12
mov r8, rbx
sub r8, rax
nop
movzx ecx, word [rax]
add rax, 2
cmp dx, cx
jne 0x14017ea18
movzx edx, word [r8 + rax]
test dx, dx
jne 0x14017e9f0
jmp 0x14017ea12
test dx, dx
jmp 0x14017ea16
test rax, rax
je 0x14017ea1e
cmp word [rax], 0
je 0x14017ea1e
mov r9, qword [r9 + 8]
jmp 0x14017e9c4
mov r14, qword [r9]
test r14, r14
je 0x14017eb53
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 0xffffffff
lea r8, [rbp + 0x20]
lea edx, [r9 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rsi, eax
test eax, eax
je 0x14017eb53
mov rcx, qword [r15 + 0x10]
mov r8, qword [rcx]
lea eax, [rsi + 1]
movsxd rdx, eax
add rdx, rdx
call qword [r8 + 0x10]
mov rdi, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x20]
lea edx, [r9 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [rdi + rsi*2], r13w
mov rcx, rdi
call fcn.1402b2930
mov rcx, r14
call fcn.140135120
mov rcx, rax
cmp rdi, rax
je 0x14017eb46
test rdi, rdi
je 0x14017eae7
movzx edx, word [rdi]
test rax, rax
je 0x14017eae0
test dx, dx
je 0x14017eada
mov r8, rdi
sub r8, rax
movzx eax, word [rcx]
add rcx, 2
cmp dx, ax
jne 0x14017eaf2
movzx edx, word [r8 + rcx]
test dx, dx
jne 0x14017eac4
cmp word [rcx], 0
jmp 0x14017eaf0
test dx, dx
jne 0x14017eaf2
jmp 0x14017eb46
test rax, rax
je 0x14017eb46
cmp word [rax], 0
je 0x14017eb46
mov rdx, qword [r15 + 0x10]
mov ecx, 0x18
call fcn.14016c4e0
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14017eb2c
mov rcx, r14
call fcn.1401344b0
mov r8d, eax
mov r9, qword [r15 + 0x10]
mov rdx, rdi
mov rcx, rsi
call fcn.14017e4b0
mov rsi, rax
jmp 0x14017eb2f
mov rsi, r13
mov rcx, rsi
call fcn.140135120
mov rdx, rax
mov r8, rsi
mov rcx, qword [r15 + 8]
call fcn.14017f230
mov rcx, qword [r15 + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x18]
mov rcx, qword [r15 + 0x10]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r12d
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x20]
mov edx, r12d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x14017e8b0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, r15
mov rcx, qword [rbp + 0x840]
xor rcx, rsp
call fcn.140296bc0
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret