Function at 0x1400101f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, [0x140049f3c]
call fcn.140025060
test rax, rax
je 0x1400102bb
mov rsi, rax
mov rcx, rax
call fcn.1400208ec
lea rdx, [rsp + 0x30]
mov ecx, eax
call fcn.140020d54
test eax, eax
je 0x140010312
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010455
lea rdx, str.GetManifestContents:_error_stating_manifest_file:__S
mov r8, rdi
call fcn.140013a80
xor edi, edi
mov rcx, rsi
call fcn.14002667c
test eax, eax
je 0x1400102f1
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400104d7
lea rdx, str.File_close_did_not_execute_successfully
call fcn.140013a80
jmp 0x1400102f1
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010496
lea rdx, str.GetManifestContents:_error_opening_manifest_file:__S
mov r8, rdi
call fcn.140013a80
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002cd90
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movsxd r12, dword [rsp + 0x44]
lea rcx, [r12 + 1]
call fcn.1400278f8
test rax, rax
je 0x14001027a
mov rbx, rax
test r12d, r12d
je 0x140010370
mov r13d, 0x7fffffff
mov r14, rbx
cmp r12, r13
mov r15d, 0x7fffffff
cmovb r15, r12
mov edx, 1
mov rcx, r14
mov r8, r15
mov r9, rsi
call fcn.140026fc4
cmp rax, r15
jne 0x1400103c2
add r14, r15
sub r12, r15
jne 0x14001033b
mov ebp, dword [rsp + 0x44]
inc ebp
jmp 0x140010378
mov ebp, 1
mov r14, rbx
mov byte [r14], 0
movsxd rcx, ebp
add rcx, rcx
call fcn.1400278f8
test rax, rax
je 0x1400103f6
mov rdi, rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov edx, 8
mov r8, rbx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400103fb
mov rcx, rbx
call fcn.140027244
jmp 0x140010447
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010518
lea rdx, str.GetManifestContents:_error_reading_manifest_file:__S
mov r8, rdi
call fcn.140013a80
mov rcx, rbx
jmp 0x140010440
mov eax, dword [0x140055e98]
mov ecx, dword [0x140052e00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140010559
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.GetManifestContents:_error_converting_utf8_to_utf16le:__lu
mov r8d, eax
call fcn.140013a80
mov rcx, rbx
call fcn.140027244
mov rcx, rdi
call fcn.140027244
xor edi, edi
test rsi, rsi
jne 0x14001027c
jmp 0x1400102f1
lea rcx, [0x140055e98]
call fcn.1400157d4
cmp dword [0x140055e98], 0xffffffff
jne 0x14001026b
mov qword [0x140055c88], 0
lea rcx, [0x1400087f0]
call fcn.1400158b8
lea rcx, [0x140055e98]
call fcn.14001584c
jmp 0x14001026b
lea rcx, [0x140055e98]
call fcn.1400157d4
cmp dword [0x140055e98], 0xffffffff
jne 0x1400102e0
mov qword [0x140055c88], 0
lea rcx, [0x1400087f0]
call fcn.1400158b8
lea rcx, [0x140055e98]
call fcn.14001584c
jmp 0x1400102e0
lea rcx, [0x140055e98]
call fcn.1400157d4
cmp dword [0x140055e98], 0xffffffff
jne 0x1400102ad
mov qword [0x140055c88], 0
lea rcx, [0x1400087f0]
call fcn.1400158b8
lea rcx, [0x140055e98]
call fcn.14001584c
jmp 0x1400102ad
lea rcx, [0x140055e98]
call fcn.1400157d4
cmp dword [0x140055e98], 0xffffffff
jne 0x1400103e7
mov qword [0x140055c88], 0
lea rcx, [0x1400087f0]
call fcn.1400158b8
lea rcx, [0x140055e98]
call fcn.14001584c
jmp 0x1400103e7
lea rcx, [0x140055e98]
call fcn.1400157d4
cmp dword [0x140055e98], 0xffffffff
jne 0x140010420
mov qword [0x140055c88], 0
lea rcx, [0x1400087f0]
call fcn.1400158b8
lea rcx, [0x140055e98]
call fcn.14001584c
jmp 0x140010420