Function at 0x14004c050
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x40], 0
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
jl 0x14004c30c
lea rdx, str.chrome
call fcn.1400cc8a4
test rax, rax
je 0x14004c30c
mov rcx, qword [rsi]
sub rax, rcx
sar rax, 1
test eax, eax
jle 0x14004c30c
mov edx, 0x5c
call fcn.1400ce3c8
test rax, rax
je 0x14004c2c7
sub rax, qword [rsi]
sar rax, 1
test eax, eax
jle 0x14004c2c7
lea r8d, [rax + 1]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14001ae30
nop
lea r8, str.VisualElementsManifest.xml
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd8]
call fcn.14001aed0
nop
mov rcx, qword [rsp + 0xd8]
mov edx, 1
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
or eax, edx
jge 0x14004c12e
xor edx, edx
lea rcx, [rsp + 0xd8]
call fcn.140002490
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
test rax, rax
je 0x14004c291
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rax + 0xa]
call fcn.1400cc61c
mov r15, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xd0]
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0xd0]
mov byte [rcx + r15], 0
mov ecx, dword [0x1401bdd80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub r8d, eax
cmp r8d, 0xd
jne 0x14004c1f0
lea ecx, [r8 - 9]
call fcn.1400cc2a0
mov ecx, dword [0x1401bdd80]
mov dword [rax], ecx
lea rdx, str.SplashScreen_Image
mov rcx, r15
call fcn.1400cf560
mov rbx, rax
test rax, rax
je 0x14004c291
mov edx, 0x5c
lea rcx, [rax + 0x14]
call fcn.1400cf1e4
test rax, rax
je 0x14004c291
mov byte [rax], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea rdx, [rbx + 0x14]
lea rcx, [rsp + 0x60]
call fcn.140001370
nop
mov rdx, rax
mov rcx, rbp
call fcn.140020a50
mov dword [rsp + 0x40], 1
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c26a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c284
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, rsi
call fcn.140002290
jmp 0x14004c33a
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c2ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c2c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [0x1401bdd80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
mov eax, dword [0x1401bef00]
mov ecx, 0x5a10cbc4
cmp r8d, 0xf
cmove eax, ecx
mov dword [0x1401bef00], eax
lea rdx, [0x14014bc30]
mov rcx, rbp
call fcn.1400021f0
mov dword [rsp + 0x40], 1
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c33a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret