Function at 0x1400566c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov dword [rsp + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov r12, r8
mov r13, rdx
xor eax, eax
mov r14d, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400569db
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd r15, eax
lea ecx, [r15 - 1]
cmp ecx, 0xfffffffd
ja 0x1400569d2
mov rcx, r15
call fcn.14006f2e8
mov rsi, rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], r15
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.140070390
nop
mov rcx, rdi
test rsi, rsi
jne 0x140056781
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r14d, r14d
mov rcx, rsi
call fcn.14006ec58
mov rax, r14
jmp 0x1400569dd
xor eax, eax
mov dword [rbp - 0x29], eax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
mov r8d, r15d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x14005676e
mov edx, eax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14005676e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, dword [rbp - 0x29]
mov rdx, rsi
mov rcx, rax
call fcn.140071350
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [rbp - 0x19], 0
lea r8, [rbp - 0x19]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
jne 0x14005676e
mov qword [rbp - 0x11], 0
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b8b10]
xor r8d, r8d
mov edx, dword [rbp - 0x29]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov ebx, eax
mov rcx, qword [rbp - 0x19]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov qword [rbp - 0x19], 0
test ebx, ebx
jne 0x14005676e
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14005676e
xor ebx, ebx
mov qword [rbp - 0x21], rbx
mov rax, qword [rcx]
lea rdx, [rbp - 0x21]
call qword [rax + 0x18]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400569bf
lea r8, [rbp + 7]
lea edx, [rbx + 0x20]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov rcx, r12
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdi, rax
mov eax, dword [rbp + 0x6f]
mov rcx, r12
test eax, eax
je 0x140056935
mov ebx, dword [rbp + 0x77]
mov r8d, ebx
mov edx, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, rax
mov rdx, rax
mov rcx, r13
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rbp + 0x7f]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r15, rax
mov edx, 4
mov rcx, r13
call qword [sym.imp.GDI32.dll_SetStretchBltMode]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov dword [rsp + 0x50], 0xcc0020
mov eax, dword [rbp + 0xf]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xb]
mov dword [rsp + 0x40], eax
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
mov r9d, dword [rbp + 0x6f]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.GDI32.dll_StretchBlt]
xor ebx, ebx
jmp 0x140056996
mov r8d, dword [rbp + 0xf]
mov edx, dword [rbp + 0xb]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, rax
mov rdx, rax
mov rcx, r13
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rbp + 0x7f]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x21]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov r15, rax
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rdi
mov eax, dword [rbp + 0xf]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0xb]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.GDI32.dll_BitBlt]
test r15, r15
je 0x1400569a7
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.GDI32.dll_DeleteObject]
test rdi, rdi
je 0x1400569bf
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rbp - 0x11]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x11], rbx
jmp 0x140056771
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret