Function at 0x14001a320
Capabilities:
Read file on windows
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x110], rbx
mov rax, qword [0x1400f5010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov dword [rbp - 0x79], r9d
mov rdi, r8
mov qword [rbp - 0x71], r8
mov r13, rdx
call fcn.140003970
mov rcx, rax
test rax, rax
je 0x14001a700
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rbp - 9], rbx
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], eax
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, r13
mov edx, 1
lea r8d, [rdx + 0x1b]
lea rcx, [rbp - 0x31]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, 0xffffffffffffffff
test rax, rax
je 0x14001a69d
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400aa028]
lea rcx, [rbp - 9]
call fcn.140003400
xor r12d, r12d
xor r15d, r15d
movups xmm0, xmmword [rbp - 0x31]
movaps xmmword [rbp - 0x59], xmm0
mov ecx, dword [rbp - 0x21]
mov dword [rbp - 0x49], ecx
mov qword [rbp - 0x11], r12
lea r9d, [r12 + 0xa]
lea r8d, [r12 + 8]
lea rdx, [rbp + 7]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow_s]
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x59]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromCLSID]
mov rdx, qword [rbp - 0x11]
test rdx, rdx
jne 0x14001a42a
xor eax, eax
jmp 0x14001a43a
mov rax, r14
nop dword [rax]
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14001a430
mov r8d, eax
lea rcx, [rbp - 9]
call fcn.140003400
mov ebx, 1
mov r8d, ebx
lea rdx, [0x1400ae240]
lea rcx, [rbp - 9]
call fcn.14000d940
lea rcx, [rbp + 7]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001a465
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 9]
call fcn.14000d940
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14001a48e
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov ecx, dword [rbp - 0x1d]
mov eax, ecx
and eax, 0xf0000000
jge 0x14001a4a5
xor esi, esi
cmp dword [rbp - 0x79], esi
setne sil
jmp 0x14001a4ad
xor esi, esi
cmp dword [rbp - 0x79], esi
cmove esi, ebx
and ecx, 0xfffff
mov dword [rbp - 0x1d], ecx
cmp ecx, 0x10001
jne 0x14001a538
mov ecx, dword [rbp - 0x19]
call fcn.14008b448
mov r15, rax
mov r8d, dword [rbp - 0x19]
mov r9, r13
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edi, dword [r15]
mov rbx, qword [rbp - 9]
test esi, esi
je 0x14001a52f
cmp dword [rbx - 8], 1
jle 0x14001a4fd
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 9]
call fcn.140003340
mov rbx, qword [rbp - 9]
mov dword [rbp - 1], edi
mov dword [rsp + 0x28], 4
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rdi, qword [rbp - 0x71]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ecx, dword [rbp - 0x1d]
jmp 0x14001a53c
mov ecx, dword [rbp - 0x1d]
mov rdi, qword [rbp - 0x71]
jmp 0x14001a53c
mov rbx, qword [rbp - 9]
cmp ecx, 0x10000
jne 0x14001a5ec
mov ecx, dword [rbp - 0x19]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.14008b448
mov r12, rax
mov r8d, dword [rbp - 0x19]
xor edx, edx
mov rcx, rax
call fcn.1400916b0
mov r8d, dword [rbp - 0x19]
mov r9, r13
mov edx, 1
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test esi, esi
je 0x14001a5e9
cmp dword [rbx - 8], 1
jle 0x14001a59f
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 9]
call fcn.140003340
mov rbx, qword [rbp - 9]
test r12, r12
je 0x14001a5e9
xor r8d, r8d
mov rdx, r12
nop word [rax + rax]
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x14001a5b3
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x14001a5b0
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r12
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ecx, dword [rbp - 0x1d]
cmp ecx, 1
jne 0x14001a65a
mov ecx, dword [rbp - 0x19]
call fcn.14008b448
mov r15, rax
mov r8d, dword [rbp - 0x19]
xor edx, edx
mov rcx, rax
call fcn.1400916b0
mov r8d, dword [rbp - 0x19]
mov r9, r13
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test esi, esi
je 0x14001a65a
cmp dword [rbx - 8], 1
jle 0x14001a639
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 9]
call fcn.140003340
mov rbx, qword [rbp - 9]
mov eax, dword [rbp - 0x19]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r12, r12
je 0x14001a66c
mov edx, 2
mov rcx, r12
call fcn.14008ae0c
test r15, r15
je 0x14001a67e
mov edx, 1
mov rcx, r15
call fcn.14008ae0c
mov r9, r13
mov edx, 1
lea r8d, [rdx + 0x1b]
lea rcx, [rbp - 0x31]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x14001a3d0
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8d, 0x351
lea rdx, str.CBssForAPOChange::GetDataFromDat
lea rcx, str._s__d
call fcn.14003f0e0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001a6d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14008ade0
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003700
int3