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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rbp, rcx
mov ecx, 0x38
call fcn.14018ef40
mov rdi, rax
mov qword [rsp + 0xd8], rax
xor esi, esi
test rax, rax
je 0x1401ebb0b
lea rax, [0x14037d220]
mov qword [rdi + 0x30], rax
mov qword [rdi], rsi
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x20], rsi
mov qword [rdi + 0x28], rsi
jmp 0x1401ebb0e
mov rdi, rsi
mov rbx, rdi
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 1
mov r8d, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
test rax, rax
je 0x1401ebbfa
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
jne 0x1401ebb68
xor bpl, bpl
jmp 0x1401ebd50
mov r8, r14
mov edx, 4
mov rcx, qword [0x14037d220]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xd8]
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r14d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov r15, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call sub.gdiplus.dll_GdipAlloc
mov r14, rax
test rax, rax
je 0x1401ebbeb
lea rax, vtable.Gdiplus::Image.0
mov qword [r14], rax
lea rdx, [r14 + 8]
mov qword [rdx], rsi
mov rcx, r15
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [r14 + 0x10], eax
jmp 0x1401ebbee
mov r14, rsi
mov qword [rdi], r14
mov rax, qword [r15]
mov rcx, r15
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, qword [rdi]
mov ecx, dword [rax + 0x10]
mov dword [rax + 0x10], esi
xor bpl, bpl
test ecx, ecx
jne 0x1401ebd50
mov rax, qword [rdi]
mov dword [rax + 0x10], esi
mov rbx, qword [rdi]
mov dword [rsp + 0xd8], esi
lea rdx, [rsp + 0xd8]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipImageGetFrameDimensionsCount
test eax, eax
je 0x1401ebc36
mov dword [rbx + 0x10], eax
mov ebx, dword [rsp + 0xd8]
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140247068
mov qword [rdi + 0x18], rax
mov rbp, qword [rdi]
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rbp + 8]
call sub.gdiplus.dll_GdipImageGetFrameDimensionsList
test eax, eax
je 0x1401ebc75
mov dword [rbp + 0x10], eax
mov r8d, 0x27
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov rbx, qword [rdi]
mov dword [rsp + 0xd8], esi
lea r8, [rsp + 0xd8]
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipImageGetFrameCount
test eax, eax
je 0x1401ebcb0
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0xd8]
mov dword [rdi + 0x28], eax
mov rbx, qword [rdi]
mov dword [rsp + 0xd8], esi
lea r8, [rsp + 0xd8]
mov edx, 0x5100
mov rcx, qword [rbx + 8]
call sub.gdiplus.dll_GdipGetPropertyItemSize
test eax, eax
je 0x1401ebce1
mov dword [rbx + 0x10], eax
mov ebx, dword [rsp + 0xd8]
mov ecx, ebx
call fcn.140250fe4
mov qword [rdi + 0x20], rax
mov rbp, qword [rdi]
mov r9, rax
mov r8d, ebx
mov edx, 0x5100
mov rcx, qword [rbp + 8]
call sub.gdiplus.dll_GdipGetPropertyItem
test eax, eax
je 0x1401ebd11
mov dword [rbp + 0x10], eax
mov rdx, qword [0x14037d230]
cmp qword [0x14037d238], rdx
je 0x1401ebd31
mov rbx, rsi
mov qword [rdx], rdi
add qword [0x14037d230], 8
jmp 0x1401ebd4d
lea r8, [rsp + 0xe0]
lea rcx, [0x14037d228]
call fcn.1401e5e60
mov rbx, qword [rsp + 0xe0]
mov bpl, 1
test rbx, rbx
je 0x1401ebdbe
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401ebd6a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401ebd7c
call fcn.140247060
mov qword [rbx + 0x18], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1401ebd8e
call fcn.14024c3e8
mov qword [rbx + 0x20], rsi
mov r8, qword [rbx + 8]
test r8, r8
je 0x1401ebdb1
mov rcx, qword [rbx + 0x30]
mov edx, 1
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov edx, 0x38
mov rcx, rbx
call fcn.140247060
movzx eax, bpl
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret