Function at 0x14001b160
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 [0x1400ff010]
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.140003db0
mov rcx, rax
test rax, rax
je 0x14001b540
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 0x14001b4dd
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400b1068]
lea rcx, [rbp - 9]
call fcn.140003840
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 0x14001b26a
xor eax, eax
jmp 0x14001b27a
mov rax, r14
nop dword [rax]
inc rax
cmp word [rdx + rax*2], r12w
jne 0x14001b270
mov r8d, eax
lea rcx, [rbp - 9]
call fcn.140003840
mov ebx, 1
mov r8d, ebx
lea rdx, [0x1400b5624]
lea rcx, [rbp - 9]
call fcn.14000dfe0
lea rcx, [rbp + 7]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001b2a5
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 9]
call fcn.14000dfe0
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14001b2ce
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 0x14001b2e5
xor esi, esi
cmp dword [rbp - 0x79], esi
setne sil
jmp 0x14001b2ed
xor esi, esi
cmp dword [rbp - 0x79], esi
cmove esi, ebx
and ecx, 0xfffff
mov dword [rbp - 0x1d], ecx
cmp ecx, 0x10001
jne 0x14001b378
mov ecx, dword [rbp - 0x19]
call fcn.140092598
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 0x14001b36f
cmp dword [rbx - 8], 1
jle 0x14001b33d
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 9]
call fcn.140003780
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 0x14001b37c
mov ecx, dword [rbp - 0x1d]
mov rdi, qword [rbp - 0x71]
jmp 0x14001b37c
mov rbx, qword [rbp - 9]
cmp ecx, 0x10000
jne 0x14001b42c
mov ecx, dword [rbp - 0x19]
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140092598
mov r12, rax
mov r8d, dword [rbp - 0x19]
xor edx, edx
mov rcx, rax
call fcn.140098800
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 0x14001b429
cmp dword [rbx - 8], 1
jle 0x14001b3df
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 9]
call fcn.140003780
mov rbx, qword [rbp - 9]
test r12, r12
je 0x14001b429
xor r8d, r8d
mov rdx, r12
nop word [rax + rax]
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x14001b3f3
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x14001b3f0
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 0x14001b49a
mov ecx, dword [rbp - 0x19]
call fcn.140092598
mov r15, rax
mov r8d, dword [rbp - 0x19]
xor edx, edx
mov rcx, rax
call fcn.140098800
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 0x14001b49a
cmp dword [rbx - 8], 1
jle 0x14001b479
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 9]
call fcn.140003780
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 0x14001b4ac
mov edx, 2
mov rcx, r12
call fcn.140091f5c
test r15, r15
je 0x14001b4be
mov edx, 1
mov rcx, r15
call fcn.140091f5c
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 0x14001b210
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8d, 0x2b3
lea rdx, str.CBssForAPOChange::GetDataFromDat
lea rcx, str._s__d
call fcn.1400430e0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001b519
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.140091f30
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.140003b40
int3