Function at 0x14000aa60
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 [0x140047010]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rdx, [0x14003f9d6]
call fcn.14001fa44
test rax, rax
je 0x14000aaf1
mov r12, rax
mov rcx, rax
call fcn.14001b830
lea rdx, [rsp + 0x38]
mov ecx, eax
call fcn.14001ba94
test eax, eax
je 0x14000ab33
mov eax, dword [0x14004a098]
mov ecx, dword [0x140047e4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ac9a
lea rcx, [0x140049e88]
lea rdx, str.GetManifestContents:_error_stating_manifest_file:__S
mov r8, r15
call fcn.1400116a0
jmp 0x14000ac70
mov eax, dword [0x14004a098]
mov ecx, dword [0x140047e4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000acdb
lea rcx, [0x140049e88]
lea rdx, str.GetManifestContents:_error_opening_manifest_file:__S
mov r8, r15
call fcn.1400116a0
xor edi, edi
jmp 0x14000ac7a
movsxd rsi, dword [rsp + 0x4c]
lea rcx, [rsi + 1]
call fcn.140021c30
test rax, rax
je 0x14000ac70
mov r14, rax
test esi, esi
je 0x14000ab8e
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.1400214a8
cmp rax, rdi
jne 0x14000abdf
add rbx, rdi
sub rsi, rdi
jne 0x14000ab5a
mov esi, dword [rsp + 0x4c]
inc esi
jmp 0x14000ab96
mov esi, 1
mov rbx, r14
mov byte [rbx], 0
movsxd rcx, esi
add rcx, rcx
call fcn.140021c30
test rax, rax
je 0x14000ac1a
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 0x14000ac1f
mov rcx, r14
call fcn.140021758
jmp 0x14000ac72
mov eax, dword [0x14004a098]
mov ecx, dword [0x140047e4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ad1c
lea rcx, [0x140049e88]
lea rdx, str.GetManifestContents:_error_reading_manifest_file:__S
mov r8, r15
call fcn.1400116a0
mov rcx, r14
jmp 0x14000ac6b
mov eax, dword [0x14004a098]
mov ecx, dword [0x140047e4c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000ad5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140049e88]
lea rdx, str.GetManifestContents:_error_converting_utf8_to_utf16le:__lu
mov r8d, eax
call fcn.1400116a0
mov rcx, r14
call fcn.140021758
mov rcx, rdi
call fcn.140021758
xor edi, edi
mov rcx, r12
call fcn.140020ee8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400246e0
mov rax, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14004a098]
call fcn.140013b60
cmp dword [0x14004a098], 0xffffffff
jne 0x14000aad6
mov qword [0x140049e88], 0
lea rcx, [0x14000add0]
call fcn.140013d18
lea rcx, [0x14004a098]
call fcn.140013bc8
jmp 0x14000aad6
lea rcx, [0x14004a098]
call fcn.140013b60
cmp dword [0x14004a098], 0xffffffff
jne 0x14000ab16
mov qword [0x140049e88], 0
lea rcx, [0x14000add0]
call fcn.140013d18
lea rcx, [0x14004a098]
call fcn.140013bc8
jmp 0x14000ab16
lea rcx, [0x14004a098]
call fcn.140013b60
cmp dword [0x14004a098], 0xffffffff
jne 0x14000ac04
mov qword [0x140049e88], 0
lea rcx, [0x14000add0]
call fcn.140013d18
lea rcx, [0x14004a098]
call fcn.140013bc8
jmp 0x14000ac04
lea rcx, [0x14004a098]
call fcn.140013b60
cmp dword [0x14004a098], 0xffffffff
jne 0x14000ac44
mov qword [0x140049e88], 0
lea rcx, [0x14000add0]
call fcn.140013d18
lea rcx, [0x14004a098]
call fcn.140013bc8
jmp 0x14000ac44