Function at 0x140024800
Capabilities:
Get file size
Get file version info
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rdx
mov r12d, r8d
xor edx, edx
mov r14, rcx
mov ebx, 0x8007000e
call fcn.140026004
xor r13d, r13d
test rax, rax
je 0x14002485e
mov r8, rdi
lea rdx, str.FilesFile
mov rcx, rax
call fcn.14001a100
mov rsi, rax
jmp 0x140024861
mov rsi, r13
test rdi, rdi
jne 0x14002487e
test rsi, rsi
je 0x140024874
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004003
jmp 0x140024cc9
test rsi, rsi
je 0x140024cc7
or r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp word [rdi + rax*2], r13w
jne 0x14002488e
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [0x140044fb0]
test r12d, r12d
lea r9, [0x14004539c]
cmovne r9, rax
mov rax, r15
inc rax
cmp word [r9 + rax*2], r13w
jne 0x1400248d4
mov ecx, dword [r14 + 0x14]
lea eax, [rax*2 + 2]
lea r8, [0x140044be0]
mov dword [rsp + 0x20], eax
mov rdx, rsi
call fcn.14001a8c0
mov ecx, dword [r14 + 0x14]
lea r9, [0x14004539c]
lea r8, str.InProc
mov dword [rsp + 0x20], 4
mov rdx, rsi
call fcn.14001a8c0
mov rcx, rdi
call fcn.140017488
test eax, eax
je 0x140024cbb
mov ecx, 0x82
call fcn.14003c460
mov r14, rax
test rax, rax
je 0x140024cbb
mov eax, 3
mov qword [rsp + 0x30], r13
mov r8d, eax
mov dword [rsp + 0x28], 0x8000080
xor r9d, r9d
mov dword [rsp + 0x40], r13d
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rdi
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, r15
je 0x140024a06
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400249fd
mov r9d, dword [rsp + 0x40]
mov edx, 0x41
mov rcx, r14
test r9d, r9d
je 0x1400249b8
lea r8, str._lu_lu
mov dword [rsp + 0x20], eax
call fcn.140001734
jmp 0x1400249c7
mov r9d, eax
lea r8, [0x140042130]
call fcn.140001734
mov rax, r15
inc rax
cmp word [r14 + rax*2], r13w
jne 0x1400249ca
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.Size
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], r13d
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x140024bd4
mov rcx, rdi
call fcn.140017488
test eax, eax
je 0x140024cb3
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r12d, [r9 + 1]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, r15
je 0x140024cb3
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r13d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140024bc9
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140024bc9
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xac
call sub.msvcrt.dll_memset
movzx eax, word [rsp + 0x68]
lea rcx, [rbp - 0x80]
movzx ebx, word [rsp + 0x6a]
xor r13d, r13d
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x6e]
shl ebx, 0x10
or ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x140024bc9
mov r8d, dword [rbp - 0x80]
movzx eax, r8w
neg ax
test r8d, r8d
cmovg ax, r8w
movzx ecx, ax
mov eax, 0x88888889
mul ecx
movzx eax, word [rsp + 0x70]
movzx ecx, word [rsp + 0x6e]
shr edx, 5
cmp r8d, r12d
jge 0x140024b17
add ax, dx
jmp 0x140024b32
cmp ax, dx
jae 0x140024b2f
mov r8d, 0xffff
add cx, r8w
mov word [rsp + 0x6e], cx
add ax, 0x18
sub ax, dx
mov word [rsp + 0x70], ax
cmp ax, 0x17
jbe 0x140024b7f
add cx, r12w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x6e], cx
mov word [rsp + 0x70], ax
cmp cx, 0x20
jne 0x140024b7f
movzx eax, word [rsp + 0x6a]
add ax, r12w
mov word [rsp + 0x6e], r12w
mov word [rsp + 0x6a], ax
cmp ax, 0xd
jne 0x140024b7f
add word [rsp + 0x68], r12w
mov word [rsp + 0x6a], r12w
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
movsd qword [rsp + 0x50], xmm0
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x140024bc9
movsd xmm0, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140024bc9
movzx eax, word [rsp + 0x68]
movzx ebx, word [rsp + 0x6a]
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x6e]
shl ebx, 0x10
or ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140024c42
mov ecx, eax
call fcn.14003c460
mov r12, rax
test rax, rax
je 0x140024cb3
mov r8d, dword [rsp + 0x44]
mov r9, rax
xor edx, edx
mov rcx, rdi
mov r13d, 0x80004005
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140024c34
lea r9, [rsp + 0x44]
mov rcx, r12
lea r8, [rsp + 0x60]
lea rdx, [0x140042140]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140024c34
mov rcx, qword [rsp + 0x60]
xor r13d, r13d
mov eax, dword [rcx + 8]
mov dword [rsp + 0x40], eax
mov ebx, dword [rcx + 0xc]
mov rcx, r12
call fcn.14003c408
mov r12d, 1
test r13d, r13d
js 0x140024cb0
mov r9d, dword [rsp + 0x40]
lea r8, str._lu._lu._lu._lu
movzx ecx, bx
mov edx, 0x41
mov dword [rsp + 0x30], ecx
mov rcx, r14
movzx eax, r9w
shr ebx, 0x10
mov dword [rsp + 0x28], ebx
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.140001734
xor r13d, r13d
inc r15
cmp word [r14 + r15*2], r13w
jne 0x140024c7d
lea eax, [r15*2 + 2]
mov r9d, r12d
mov dword [rsp + 0x28], eax
lea rdx, [0x14003fa00]
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140024cb3
xor r13d, r13d
mov rcx, r14
call fcn.14003c408
mov rcx, rsi
mov ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret