Function at 0x140001290
Capabilities:
Get file version info
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push r12
push r13
push r15
lea rbp, [r11 - 0x3f8]
sub rsp, 0x4d0
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rcx
xor r13d, r13d
mov ecx, r13d
mov eax, dword [rbx + 0x38]
test eax, eax
je 0x1400014f9
mov rdx, qword [rbx + 0x30]
mov r8d, eax
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
nop dword [rax]
mov eax, ecx
lea rdx, [rdx + 0x228]
inc ecx
cmp dword [rdx - 0x228], r13d
cmovne ecx, eax
sub r8, 1
jne 0x1400012e0
mov r15d, dword [rbx + 0x50]
mov esi, r13d
imul r12d, ecx, 0x6c
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x518], r14
add r12d, 4
lea eax, [r15 + r12]
mov dword [rbx + 0x50], eax
nop
mov eax, esi
imul rdi, rax, 0x228
mov rax, qword [rbx + 0x30]
cmp dword [rdi + rax], r13d
jne 0x1400014d4
lea rcx, [rax + 0x1c]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbx + 0x30]
lea rcx, [rbp - 0x3c]
add rdx, 0x1c
add rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rbp - 0x40], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rbx + 0x30]
xor r9d, r9d
mov edx, dword [rbx + 0x50]
add rcx, rdi
xor r8d, r8d
mov rax, qword [rcx + 8]
mov qword [rsp + 0x50], rax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x58], eax
mov eax, dword [rcx + 0x18]
mov dword [rsp + 0x5c], eax
mov eax, dword [rcx + 0x14]
mov rcx, qword [rbx + 0x48]
mov dword [rsp + 0x60], eax
mov eax, dword [rbp - 0x40]
add eax, 0xfffffffe
mov dword [rsp + 0x64], edx
mov dword [rbp - 0x40], eax
lea edi, [rax + 6]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x48]
lea r9, [rsp + 0x48]
mov r8d, edi
mov qword [rsp + 0x20], r13
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add dword [rbx + 0x50], edi
lea rdx, [rsp + 0x3c]
xorps xmm0, xmm0
lea rcx, [rbp - 0x3c]
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov dword [rbp - 0x68], eax
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x140001480
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000146c
mov edx, dword [rsp + 0x3c]
lea rcx, [rbp - 0x3c]
mov r9, rax
mov r8d, r14d
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000146c
lea r9, [rsp + 0x40]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x14001c5dc]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000146c
mov eax, dword [rsp + 0x40]
mov r8d, eax
cmp eax, 0x34
jb 0x14000145d
mov r8d, 0x34
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400039f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x38]
xor r9d, r9d
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
imul rdx, rax, 0x6c
inc eax
mov qword [rbp - 0x64], r13
add rdx, 4
mov qword [rbp - 0x5c], r13
add rdx, r15
mov qword [rbp - 0x54], r13
mov qword [rbp - 0x4c], r13
mov dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x48]
lea r9, [rsp + 0x44]
mov r8d, 0x6c
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, dword [rbx + 0x38]
jb 0x140001320
mov r14, qword [rsp + 0x518]
mov rdi, qword [rsp + 0x510]
mov rsi, qword [rsp + 0x508]
jmp 0x14000150f
mov r15d, dword [rbx + 0x50]
mov r12d, 4
mov dword [rsp + 0x38], r13d
lea eax, [r15 + 4]
mov dword [rbx + 0x50], eax
mov rcx, qword [rbx + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x48]
lea r9, [rsp + 0x44]
mov r8d, 4
mov qword [rsp + 0x20], r13
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, r12d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140002300
add rsp, 0x4d0
pop r15
pop r13
pop r12
pop rbx
pop rbp
ret