Function at 0x140001110
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov ebx, ecx
mov rdi, rdx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
lea ecx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea ecx, [rbp + 0x30]
mov qword [rsp + 0x28], rax
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x30], rax
mov r15, rax
cmp ebx, 3
je 0x14000116f
lea rcx, str.Wrong_input_n
call fcn.140001010
lea eax, [rbp + 1]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0x80], rsi
lea rdx, [0x1400032b0]
mov rsi, qword [rdi + 8]
mov rdi, qword [rdi + 0x10]
mov rcx, rsi
mov qword [rsp + 0x40], r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
lea rdx, [0x1400032b0]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r13, rax
test rbx, rbx
je 0x1400013d9
test rax, rax
je 0x1400013d9
mov rdx, r14
mov qword [rsp + 0x48], r12
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
movsxd rsi, dword [r14 + 0x14]
movsxd r12, dword [r15 + 0x14]
lea rcx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [r12 + 1]
mov r15, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, r15
mov r14, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, r13
mov r8, r12
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rsi + r15], bpl
lea r8, [rsp + 0x90]
movabs rbx, 0x30307473696c7062
mov byte [r12 + r14], bpl
mov edx, esi
mov rcx, r15
cmp qword [r15], rbx
jne 0x140001262
call qword [sym.imp.plist.dll_plist_from_bin]
jmp 0x14000127a
movzx eax, byte [r15]
sub al, 0x5b
test al, 0xdf
je 0x140001274
call qword [sym.imp.plist.dll_plist_from_xml]
jmp 0x14000127a
call qword [sym.imp.plist.dll_plist_from_json]
lea r8, [rsp + 0x98]
mov edx, r12d
mov rcx, r14
cmp qword [r14], rbx
jne 0x140001295
call qword [sym.imp.plist.dll_plist_from_bin]
jmp 0x1400012ad
movzx eax, byte [r14]
sub al, 0x5b
test al, 0xdf
je 0x1400012a7
call qword [sym.imp.plist.dll_plist_from_xml]
jmp 0x1400012ad
call qword [sym.imp.plist.dll_plist_from_json]
mov r12, qword [rsp + 0x48]
cmp qword [rsp + 0x90], rbp
je 0x1400013c6
cmp qword [rsp + 0x98], rbp
je 0x1400013c6
lea rcx, str.PList_parsing_succeeded_n
call fcn.140001010
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x1400012f5
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x1400012f5
mov rbx, qword [rbx]
jmp 0x1400012f8
mov rbx, rbp
mov rdx, qword [rsp + 0x98]
test rdx, rdx
je 0x140001313
mov rdi, qword [rdx + 0x28]
test rdi, rdi
je 0x140001313
mov rdi, qword [rdi]
jmp 0x140001316
mov rdi, rbp
test rbx, rbx
jne 0x140001333
test rdi, rdi
jne 0x140001374
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.plist.dll_plist_compare_node_value]
movzx esi, al
jmp 0x140001377
test rdi, rdi
je 0x140001374
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rbx
call fcn.140001070
movsx esi, al
test al, al
je 0x140001374
mov rcx, qword [rdi]
test rbx, rbx
je 0x14000136f
mov rax, qword [rbx]
mov rdi, rcx
mov rbx, rax
test rax, rax
je 0x14000136f
test rcx, rcx
jne 0x140001340
jmp 0x140001374
test rcx, rcx
je 0x140001377
xor sil, sil
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.plist.dll_plist_free]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.plist.dll_plist_free]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test sil, sil
sete bpl
mov eax, ebp
jmp 0x1400013ea
lea rcx, str.PList_parsing_failed_n
call fcn.140001010
mov eax, 3
jmp 0x1400013ea
lea rcx, str.File_does_not_exists_n
call fcn.140001010
mov eax, 2
mov rsi, qword [rsp + 0x80]
mov r13, qword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret