Function at 0x140024798
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.140025f9c
xor r13d, r13d
test rax, rax
je 0x1400247f6
mov r8, rdi
lea rdx, str.FilesFile
mov rcx, rax
call fcn.14001a0b4
mov rsi, rax
jmp 0x1400247f9
mov rsi, r13
test rdi, rdi
jne 0x140024816
test rsi, rsi
je 0x14002480c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004003
jmp 0x140024c61
test rsi, rsi
je 0x140024c5f
or r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140024826
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 0x14002486c
mov ecx, dword [r14 + 0x14]
lea eax, [rax*2 + 2]
lea r8, [0x140044be0]
mov dword [rsp + 0x20], eax
mov rdx, rsi
call fcn.14001a86c
mov ecx, dword [r14 + 0x14]
lea r9, [0x14004539c]
lea r8, str.InProc
mov dword [rsp + 0x20], 4
mov rdx, rsi
call fcn.14001a86c
mov rcx, rdi
call fcn.140017448
test eax, eax
je 0x140024c53
mov ecx, 0x82
call fcn.14003c310
mov r14, rax
test rax, rax
je 0x140024c53
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 0x14002499e
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140024995
mov r9d, dword [rsp + 0x40]
mov edx, 0x41
mov rcx, r14
test r9d, r9d
je 0x140024950
lea r8, str._lu_lu
mov dword [rsp + 0x20], eax
call fcn.140001734
jmp 0x14002495f
mov r9d, eax
lea r8, [0x140042130]
call fcn.140001734
mov rax, r15
inc rax
cmp word [r14 + rax*2], r13w
jne 0x140024962
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 0x140024b6c
mov rcx, rdi
call fcn.140017448
test eax, eax
je 0x140024c4b
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 0x140024c4b
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 0x140024b61
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140024b61
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 0x140024b61
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 0x140024aaf
add ax, dx
jmp 0x140024aca
cmp ax, dx
jae 0x140024ac7
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 0x140024b17
add cx, r12w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x6e], cx
mov word [rsp + 0x70], ax
cmp cx, 0x20
jne 0x140024b17
movzx eax, word [rsp + 0x6a]
add ax, r12w
mov word [rsp + 0x6e], r12w
mov word [rsp + 0x6a], ax
cmp ax, 0xd
jne 0x140024b17
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 0x140024b61
movsd xmm0, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140024b61
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 0x140024bda
mov ecx, eax
call fcn.14003c310
mov r12, rax
test rax, rax
je 0x140024c4b
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 0x140024bcc
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 0x140024bcc
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.14003c2b8
mov r12d, 1
test r13d, r13d
js 0x140024c48
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 0x140024c15
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 0x140024c4b
xor r13d, r13d
mov rcx, r14
call fcn.14003c2b8
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.14003c6c0
mov rbx, qword [rsp + 0x198]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret