Function at 0x180012a30
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x1800312f8]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x60], r8
mov edi, edx
mov dword [rsp + 0x48], edx
mov r15, rcx
movdqa xmm0, xmmword [0x18002cf00]
movdqa xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
movdqa xmm1, xmm0
movdqa xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor r10d, r10d
mov qword [rbp - 0x78], r10
add edx, 9
mov dword [rsp + 0x40], edx
cmp edi, edx
jae 0x1800130fc
lea ebx, [rdi - 0xd]
mov dword [rsp + 0x50], ebx
lea r11, [0x180000000]
movzx ebx, byte [rsp + 0x48]
movzx r14d, byte [rsp + 0x48]
mov esi, dword [rsp + 0x70]
mov r12, qword [rbp - 0x68]
movzx r13d, byte [rsp + 0x48]
mov edx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
nop
cmp edx, 0xb
ja case.default.0x180012af6
mov eax, edx
mov ecx, dword [r11 + rax*4 + 0x13270]
add rcx, r11
jmp rcx
movzx eax, word [r15]
mov word [rsp + 0x48], ax
mov r9, r8
mov r8d, 0x98
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.18000c8d0
mov bl, 1
jmp 0x180012f73
test r14b, r14b
je case.0x180012af6.6
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.dbghelp.dll_SymSetOptions]
jmp 0x180012f73
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov ecx, edx
movzx eax, r14b
cmp dword [rsp + 0x68], edx
cmovne ecx, eax
movzx r14d, cl
cmp esi, dword [rsp + 0x6c]
je 0x180012bd8
mov edi, 0x61
mov eax, edi
sub eax, 0x61
je 0x180012ba6
sub eax, 1
je 0x180012b93
cmp eax, 1
jne 0x180012bcd
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor bl, bl
jmp case.0x180012af6.11
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
jmp 0x180012bcb
mov qword [r15 + 0x10], rdx
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x180012bb7
mov rax, qword [r15]
mov byte [rax], 0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r12, rax
xor edx, edx
inc edi
cmp edi, 0x64
jb 0x180012b60
mov edi, dword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.GDI32.dll_GetEnhMetaFileDescriptionW]
jmp 0x180012f73
mov qword [rbp - 0x60], r10
call qword [sym.imp.dbghelp.dll_SymGetOptions]
mov dword [rsp + 0x68], eax
jmp 0x180012f73
mov edx, esi
xor r8d, r8d
mov rcx, r15
call fcn.180023be0
mov rdx, r15
cmp qword [r15 + 0x18], 0x10
jb 0x180012c19
mov rdx, qword [r15]
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, esi
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x180012f73
mov rcx, r9
cmp qword [r9 + 0x18], 8
jb 0x180012c44
mov rcx, qword [r9]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rbp - 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x180012f26
mov edi, r14d
cmp edi, 0x11
ja case.default.0x180012c9e
mov ecx, edi
lea rdx, [0x180000000]
mov eax, dword [rdx + rcx*4 + 0x132a0]
add rax, rdx
jmp rax
mov dword [rbp + 0x5a], 0x64
jmp case.default.0x180012c9e
mov word [rbp + 0x32], r14w
jmp case.default.0x180012c9e
mov dword [rbp + 0x26], 0x47
mov r8d, 2
lea rdx, [0x18002a344]
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov eax, dword [0x18002a3ae]
mov dword [rbp + 0x2c], eax
movzx eax, word [0x18002a3b2]
mov word [rbp + 0x30], ax
jmp case.default.0x180012c9e
mov word [rbp + 0x3a], r14w
mov r8d, 1
lea rdx, [0x18002a402]
lea rcx, [rbp + 0x3a]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0x3c], r14w
jmp case.default.0x180012c9e
mov r8d, 1
lea rdx, [0x18002a470]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp case.default.0x180012c9e
mov r8d, 1
lea rdx, str._Z21convert_char2_sat_rteDv2_h
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov eax, dword [0x18002a52e]
mov dword [rbp + 0x34], eax
movzx eax, word [0x18002a532]
mov word [rbp + 0x38], ax
jmp case.default.0x180012c9e
mov dword [rbp + 0x1c], 0x4c0041
mov eax, dword [0x18002a602]
mov dword [rbp + 0x20], eax
movzx eax, word [0x18002a606]
mov word [rbp + 0x24], ax
jmp case.default.0x180012c9e
mov r8d, 1
lea rdx, [0x18002a62c]
lea rcx, [rbp + 0x56]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov dword [rbp + 0x58], 0x4e
jmp case.default.0x180012c9e
mov word [rbp + 0x80], r14w
mov word [rbp + 0x10], r14w
mov r8d, 3
lea rdx, [0x18002a71a]
lea rcx, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov eax, dword [0x18002a744]
mov dword [rbp + 0x16], eax
movzx eax, word [0x18002a748]
mov word [rbp + 0x1a], ax
mov word [rbp + 0x1c], r14w
jmp case.default.0x180012c9e
mov qword [rbp - 0x48], 0xffffffffffffffff
xor r8d, r8d
xor edx, edx
lea rcx, [rdx - 1]
call qword [sym.imp.dbghelp.dll_SymInitialize]
mov dword [rsp + 0x74], eax
jmp case.default.0x180012c9e
movsd xmm0, qword [0x18002a780]
movsd qword [rbp + 0x3c], xmm0
movzx eax, word [0x18002a788]
mov word [rbp + 0x44], ax
mov word [rbp + 0x46], r14w
mov qword [rbp - 0x68], 0xffffffff80000001
mov r13b, 1
jmp case.default.0x180012c9e
mov dword [rsp + 0x70], r14d
mov ecx, r14d
movzx eax, r13b
cmp dword [rsp + 0x74], r14d
cmovne ecx, eax
movzx r13d, cl
jmp case.default.0x180012c9e
mov r8d, 5
lea rdx, [0x18002a7d8]
lea rcx, [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
movsd xmm0, qword [0x18002a86e]
movsd qword [rbp + 0x6e], xmm0
movzx eax, word [0x18002a876]
mov word [rbp + 0x76], ax
mov word [rbp + 0x78], r14w
mov r8d, 3
lea rdx, [0x18002a8a0]
lea rcx, [rbp + 0x78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 0x7e], r14w
jmp case.default.0x180012c9e
mov word [rbp + 0x5e], r14w
mov r8d, 3
lea rdx, [0x18002a9aa]
lea rcx, [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
jmp case.default.0x180012c9e
mov r8d, 1
lea rdx, [0x18002aa48]
lea rcx, [rbp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
jmp case.default.0x180012c9e
mov eax, dword [0x18002ab02]
mov dword [rbp + 0x48], eax
movzx eax, word [0x18002ab06]
mov word [rbp + 0x4c], ax
mov eax, dword [0x18002abba]
mov dword [rbp + 0x4e], eax
movzx eax, word [0x18002abbe]
mov word [rbp + 0x52], ax
mov word [rbp + 0x54], r14w
jmp case.default.0x180012c9e
mov eax, 0x73
mov word [rbp + 0x7e], ax
inc edi
lea eax, [rdi + 0xa7]
cmp eax, 0xb9
jb 0x180012c82
mov edi, dword [rsp + 0x48]
mov r14b, 1
xor eax, eax
mov dword [rsp + 0x6c], eax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
jmp 0x180012f73
mov r8d, 0x74
mov rdx, r9
lea rcx, [rbp - 0x30]
call fcn.18000ff80
test al, al
je 0x1800130e7
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x10]
mov ecx, 0x41
call fcn.180014b20
test al, al
je 0x1800130e7
lea r11, [0x180000000]
xor r10d, r10d
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
inc edi
mov dword [rsp + 0x48], edi
inc edx
mov dword [rsp + 0x50], edx
cmp edi, eax
jae case.0x180012af6.11
jmp 0x180012ae0
test r13b, r13b
je 0x1800130c6
mov ebx, 0x15
movabs rsi, 0x72006500660066
mov rdi, qword [rbp - 0x48]
cmp ebx, 0x2f94
ja 0x180013075
je 0x180013061
cmp ebx, 0x15
je 0x18001303b
cmp ebx, 0xfea
je 0x180013018
cmp ebx, 0x1fbf
jne 0x1800130b4
mov dword [rbp + 0xa0], 0x3a
mov r8d, 1
lea rdx, [0x18002a90c]
lea rcx, [rbp + 0xa2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp 0x1800130b4
mov r8d, 5
lea rdx, [0x18002a8e8]
lea rcx, [rbp + 0x8e]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov qword [rbp + 0x98], rsi
jmp 0x1800130b4
mov dword [rbp + 0x88], 0x4f
mov r8d, 2
lea rdx, [0x18002a96a]
lea rcx, [rbp + 0x88]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
jmp 0x1800130b4
mov dword [rbp + 0xa4], 0x780030
mov word [rbp + 0xa8], r14w
jmp 0x1800130b4
cmp ebx, 0x3f69
je 0x180013090
cmp ebx, 0x4f3e
jne 0x1800130b4
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_SymCleanup]
jmp 0x1800130b4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.dbghelp.dll_SymGetModuleBase64]
lea r8, [rbp + 0x88]
mov edx, 0x100
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
add ebx, 0xfd5
cmp ebx, 0x5efe
jbe 0x180012fc4
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x2b0]
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
xor bl, bl
jmp case.0x180012af6.11
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
mov bl, 1
jmp case.0x180012af6.11
movzx ebx, byte [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1800131bb
mov rsi, qword [rbp - 0x80]
xor r14d, r14d
cmp rdi, rsi
je 0x180013173
nop dword [rax + rax]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180013156
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x180013151
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001319f
mov rcx, r8
call fcn.180023e38
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
add rdi, 0x20
cmp rdi, rsi
jne 0x180013120
mov rdi, qword [rsp + 0x78]
mov rdx, qword [rbp - 0x78]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800131a6
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800131a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180023e38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r14
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1800131f2
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800131ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180013235
call fcn.180023e38
movdqa xmm0, xmmword [0x18002cf00]
movdqa xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x180013241
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001323c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001323c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180023e38
movzx eax, bl
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1800245e0
mov rbx, qword [rsp + 0x618]
add rsp, 0x5d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret