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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r13, rdx
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x410d62ee
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
je 0x410d62ee
cmp dword [rsp + 0x40], edi
jne 0x410d62ee
mov rcx, rsi
call fcn.4120fd60
mov r12, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410d62ee
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x48]
lea edx, [rdi + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x410d62e5
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, r12
call qword [rax + 0x20]
test eax, eax
jne 0x410d62d2
lea ecx, [rdi + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rsi, rax
test rax, rax
je 0x410d62cb
mov rcx, qword [rsp + 0x48]
lea rax, [0x412ae830]
mov qword [rsi], rax
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x58]
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rsi + 0x10], eax
mov rcx, qword [rsp + 0x58]
mov qword [rsi + 8], rcx
jmp 0x410d62ce
mov rsi, rdi
mov qword [rbx + 0x10], rsi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, r12
call fcn.41212980
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x410d62fe
xor eax, eax
jmp 0x410d6455
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], edi
test eax, eax
je 0x410d6326
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x410d631b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x10], rdi
xor eax, eax
jmp 0x410d6455
mov rsi, qword [rbx + 0x10]
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 8]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x410d6343
mov dword [rsi + 0x10], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov rsi, qword [rbx + 0x10]
mov dword [rsp + 0x40], edi
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 8]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x410d6366
mov dword [rsi + 0x10], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 4], eax
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x410d63fb
lea rdx, [rsp + 0x58]
mov rcx, qword [rsi + 8]
call sub.gdiplus.dll_GdipGetImageRawFormat
test eax, eax
je 0x410d638f
mov dword [rsi + 0x10], eax
lea rax, [rsp + 0x58]
lea rcx, [0x412c3360]
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x410d63ad
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
je 0x410d63b4
sbb eax, eax
sbb eax, 0xffffffff
mov edi, eax
test edi, edi
jne 0x410d63fb
mov byte [rbx + 8], 1
mov eax, dword [0x41360a58]
test al, 1
jne 0x410d63e8
or eax, 1
mov dword [0x41360a58], eax
lea rcx, [0x41360a10]
call fcn.410b6ef0
lea rcx, [0x41297250]
call fcn.412172f0
nop
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
lea rcx, [0x41360a10]
call fcn.410b71e0
mov rcx, r13
call fcn.410028f0
test eax, eax
je 0x410d6450
mov byte [rbx + 8], 1
mov eax, dword [0x41360a58]
test al, 1
jne 0x410d6437
or eax, 1
mov dword [0x41360a58], eax
lea rcx, [0x41360a10]
call fcn.410b6ef0
lea rcx, [0x41297250]
call fcn.412172f0
nop
mov r9d, 1
mov r8, r13
mov rdx, qword [rbx + 0x10]
lea rcx, [0x41360a10]
call fcn.410b7330
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.41211b80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret