Function at 0x14000a5f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, rcx
mov r13, qword [0x14003da78]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rdx, [0x14003dc04]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
test rax, rax
je 0x14000a684
mov rsi, rax
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
cmp eax, 0xffffffff
je 0x14000a653
test eax, eax
je 0x14000a6da
movzx eax, byte [0x14005b818]
test al, al
je 0x14000a803
lea rcx, [0x14005c900]
lea rdx, str.GetManifestContents:_error_stating_manifest_file:__S
mov r8, rdi
call fcn.140016400
xor edi, edi
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
jmp 0x14000a6ab
movzx eax, byte [0x14005b818]
test al, al
je 0x14000a84d
lea rcx, [0x14005c900]
lea rdx, str.GetManifestContents:_error_opening_manifest_file:__S
mov r8, rdi
call fcn.140016400
xor edi, edi
mov rax, qword [rsp + 0x80]
xor rax, rsp
mov rcx, qword [r13]
cmp rcx, rax
jne 0x14000a7fe
mov rax, rdi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [rsp + 0x60]
lea ebp, [rbx + 1]
movsxd r14, ebp
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
je 0x14000a678
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x38], rax
mov r15, rax
test ebx, ebx
je 0x14000a74a
movsxd rbx, ebx
movabs rbp, 0x7fffffffffffffff
mov r15, qword [rsp + 0x38]
nop word cs:[rax + rax]
cmp rbx, rbp
mov r12, rbp
cmovb r12, rbx
mov edx, 1
mov rcx, r15
mov r8, r12
mov r9, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, r12
jne 0x14000a79d
add r15, r12
sub rbx, r12
jne 0x14000a720
mov byte [r15], 0
add r14, r14
mov rcx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
je 0x14000a7c2
mov rdi, rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov ecx, 0xfde9
mov edx, 8
mov rbx, qword [rsp + 0x38]
mov r8, rbx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000a7c9
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14000a67a
movzx eax, byte [0x14005b818]
test al, al
je 0x14000a897
lea rcx, [0x14005c900]
lea rdx, str.GetManifestContents:_error_reading_manifest_file:__S
mov r8, rdi
call fcn.140016400
mov rcx, qword [rsp + 0x38]
jmp 0x14000a7f4
call fcn.140003270
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetManifestContents:_error_converting_utf8_to_utf16le:__lu
mov rcx, r14
mov r8d, eax
call fcn.140016400
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x14000a678
call fcn.140018700
lea rcx, [0x14005b818]
call fcn.1400174a0
test eax, eax
je 0x14000a662
lea rbx, [0x14005c900]
mov rcx, rbx
call fcn.140016350
lea rcx, [0x14000ad20]
lea r8, [0x14005b770]
mov rdx, rbx
call fcn.1400182f0
lea rcx, [0x14005b818]
call fcn.14001757b
jmp 0x14000a662
lea rcx, [0x14005b818]
call fcn.1400174a0
test eax, eax
je 0x14000a693
lea rsi, [0x14005c900]
mov rcx, rsi
call fcn.140016350
lea rcx, [0x14000ad20]
lea r8, [0x14005b770]
mov rdx, rsi
call fcn.1400182f0
lea rcx, [0x14005b818]
call fcn.14001757b
jmp 0x14000a693
lea rcx, [0x14005b818]
call fcn.1400174a0
test eax, eax
je 0x14000a7ac
lea r14, [0x14005c900]
mov rcx, r14
call fcn.140016350
lea rcx, [0x14000ad20]
lea r8, [0x14005b770]
mov rdx, r14
call fcn.1400182f0
lea rcx, [0x14005b818]
call fcn.14001757b
jmp 0x14000a7ac