Function at 0x14000a980
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r15, rcx
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [0x14003da44]
call fcn.14001f0a4
test rax, rax
je 0x14000aa11
mov r12, rax
mov rcx, rax
call fcn.14001b7b0
lea rdx, [rsp + 0x38]
mov ecx, eax
call fcn.14001ba14
test eax, eax
je 0x14000aa53
mov eax, dword [0x1400480b8]
mov ecx, dword [0x140045e5c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000abba
lea rcx, [0x140047ea8]
lea rdx, str.GetManifestContents:_error_stating_manifest_file:__S
mov r8, r15
call fcn.1400116d0
jmp 0x14000ab90
mov eax, dword [0x1400480b8]
mov ecx, dword [0x140045e5c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000abfb
lea rcx, [0x140047ea8]
lea rdx, str.GetManifestContents:_error_opening_manifest_file:__S
mov r8, r15
call fcn.1400116d0
xor edi, edi
jmp 0x14000ab9a
movsxd rsi, dword [rsp + 0x4c]
lea rcx, [rsi + 1]
call fcn.140021290
test rax, rax
je 0x14000ab90
mov r14, rax
test esi, esi
je 0x14000aaae
mov r13d, 0x7fffffff
mov rbx, r14
cmp rsi, r13
mov edi, 0x7fffffff
cmovb rdi, rsi
mov edx, 1
mov rcx, rbx
mov r8, rdi
mov r9, r12
call fcn.140020b08
cmp rax, rdi
jne 0x14000aaff
add rbx, rdi
sub rsi, rdi
jne 0x14000aa7a
mov esi, dword [rsp + 0x4c]
inc esi
jmp 0x14000aab6
mov esi, 1
mov rbx, r14
mov byte [rbx], 0
movsxd rcx, esi
add rcx, rcx
call fcn.140021290
test rax, rax
je 0x14000ab3a
mov rdi, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov edx, 8
mov r8, r14
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000ab3f
mov rcx, r14
call fcn.140020db8
jmp 0x14000ab92
mov eax, dword [0x1400480b8]
mov ecx, dword [0x140045e5c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ac3c
lea rcx, [0x140047ea8]
lea rdx, str.GetManifestContents:_error_reading_manifest_file:__S
mov r8, r15
call fcn.1400116d0
mov rcx, r14
jmp 0x14000ab8b
mov eax, dword [0x1400480b8]
mov ecx, dword [0x140045e5c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ac7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140047ea8]
lea rdx, str.GetManifestContents:_error_converting_utf8_to_utf16le:__lu
mov r8d, eax
call fcn.1400116d0
mov rcx, r14
call fcn.140020db8
mov rcx, rdi
call fcn.140020db8
xor edi, edi
mov rcx, r12
call fcn.140020548
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140023af0
mov rax, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1400480b8]
call fcn.140013ae0
cmp dword [0x1400480b8], 0xffffffff
jne 0x14000a9f6
mov qword [0x140047ea8], 0
lea rcx, [0x14000acf0]
call fcn.140013c98
lea rcx, [0x1400480b8]
call fcn.140013b48
jmp 0x14000a9f6
lea rcx, [0x1400480b8]
call fcn.140013ae0
cmp dword [0x1400480b8], 0xffffffff
jne 0x14000aa36
mov qword [0x140047ea8], 0
lea rcx, [0x14000acf0]
call fcn.140013c98
lea rcx, [0x1400480b8]
call fcn.140013b48
jmp 0x14000aa36
lea rcx, [0x1400480b8]
call fcn.140013ae0
cmp dword [0x1400480b8], 0xffffffff
jne 0x14000ab24
mov qword [0x140047ea8], 0
lea rcx, [0x14000acf0]
call fcn.140013c98
lea rcx, [0x1400480b8]
call fcn.140013b48
jmp 0x14000ab24
lea rcx, [0x1400480b8]
call fcn.140013ae0
cmp dword [0x1400480b8], 0xffffffff
jne 0x14000ab64
mov qword [0x140047ea8], 0
lea rcx, [0x14000acf0]
call fcn.140013c98
lea rcx, [0x1400480b8]
call fcn.140013b48
jmp 0x14000ab64