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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x140144038]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov rbx, rcx
lea rcx, [rbp + 0x100]
call fcn.14000d970
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.14000da70
lea rcx, [rbp + 0x78]
mov qword [rbp + 0x70], rcx
xor edi, edi
mov word [rbp + 0x78], di
mov rax, qword [rbp + 0x210]
lea r13, [0x140112cfc]
mov rsi, r13
test rax, rax
cmovne rsi, rax
mov r14, 0xffffffffffffffff
mov rbx, r14
nop dword [rax]
inc rbx
cmp word [rsi + rbx*2], di
jne 0x14003b5f0
cmp ebx, 0x3f
jl 0x14003b619
mov qword [rbp + 0x70], rdi
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
xor ecx, ecx
call fcn.1400a9604
mov rcx, rax
mov qword [rbp + 0x70], rax
movsxd rbx, ebx
mov r8, rbx
mov rdx, rsi
call fcn.1400a960c
mov rax, qword [rbp + 0x70]
mov word [rax + rbx*2], di
mov rsi, rdi
mov r15d, edi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x50], rcx
mov word [rsp + 0x58], di
mov rax, qword [0x140144c80]
mov r12, r13
test rax, rax
cmovne r12, rax
mov rbx, r14
nop dword [rax + rax]
inc rbx
cmp word [r12 + rbx*2], si
jne 0x14003b660
cmp ebx, 0x3f
jl 0x14003b68c
mov qword [rsp + 0x50], rdi
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
xor ecx, ecx
call fcn.1400a9604
mov rcx, rax
mov qword [rsp + 0x50], rax
movsxd rbx, ebx
mov r8, rbx
mov rdx, r12
call fcn.1400a960c
mov rax, qword [rsp + 0x50]
mov word [rax + rbx*2], di
mov rdx, qword [0x140144d10]
lea rcx, [rsp + 0x50]
cmp word [rdx], 0
jne 0x14003b76f
mov rdx, qword [rbp + 0x70]
call fcn.14000c8f0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003b714
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14003b8d9
call fcn.1400a95f0
jmp 0x14003b8d9
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
test eax, eax
je 0x14003b6f7
mov dword [rsp + 0x40], edi
mov ecx, r15d
call fcn.1400a2ca4
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], r15d
je 0x14003b8bc
mov rcx, rsi
call fcn.1400a2410
mov rsi, rdi
jmp 0x14003b6f7
call fcn.14000c8f0
mov r12, qword [0x14014a530]
test r12, r12
je 0x14003b6f7
mov dword [rsp + 0x40], edi
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x20], rcx
mov word [rbp - 0x18], di
mov rax, qword [rbp + 0x70]
test rax, rax
cmovne r13, rax
nop
inc r14
cmp word [r13 + r14*2], 0
jne 0x14003b7a0
cmp r14d, 0x3f
jl 0x14003b7ce
mov qword [rbp - 0x20], rdi
lea eax, [r14 + 1]
movsxd rdx, eax
add rdx, rdx
xor ecx, ecx
call fcn.1400a9604
mov rcx, rax
mov qword [rbp - 0x20], rax
movsxd rbx, r14d
mov r8, rbx
mov rdx, r13
call fcn.1400a960c
mov rax, qword [rbp - 0x20]
mov word [rax + rbx*2], di
lea r8, [0x140113134]
lea rdx, [0x140113138]
lea rcx, [rbp - 0x20]
call fcn.14000cc90
lea rax, [rbp + 0x400]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x20]
mov rcx, r12
call fcn.1400281a0
test eax, eax
je 0x14003b837
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x14003b6f7
call fcn.1400a95f0
jmp 0x14003b6f7
mov r15d, dword [rbp + 0x62c]
test r15d, r15d
je 0x14003b81c
mov ecx, r15d
call fcn.1400a2ca4
mov rsi, rax
cmp dword [r12], 1
je 0x14003b86c
mov dword [0x14014a550], 0x80000
mov rcx, rax
call fcn.1400a2410
mov rsi, rdi
jmp 0x14003b81c
mov dword [rsp + 0x20], 3
mov r9d, r15d
mov r8, rsi
mov edx, dword [rsp + 0x40]
mov rcx, qword [r12 + 8]
call fcn.140027ba0
mov dword [0x14014a550], eax
test eax, eax
je 0x14003b8a9
cmp eax, 0x600
je 0x14003b8a9
mov rcx, rsi
call fcn.1400a2410
mov rsi, rdi
jmp 0x14003b81c
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x14003b8bc
call fcn.1400a95f0
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14003b8d0
call fcn.1400a95f0
test rsi, rsi
jne 0x14003b964
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b95b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
test eax, eax
je 0x14003b95b
mov dword [rsp + 0x44], edi
mov ecx, r15d
call fcn.1400a2ca4
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, r15d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], r15d
jne 0x14003b9f9
test rsi, rsi
je 0x14003ba02
mov ebx, r15d
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r15, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call fcn.1400a4a90
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov r12, qword [rsp + 0x48]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x14003b9e5
lea rax, vtable.Gdiplus::Image.0
mov qword [rbx], rax
lea rdx, [rbx + 8]
mov qword [rdx], rdi
mov rcx, r12
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x10], edi
test eax, eax
jne 0x14003b9e5
mov rdi, rbx
jmp 0x14003b9f9
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call fcn.1400a2410
nop
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x14003ba15
call fcn.1400a95f0
nop
lea rax, [rbp + 0x380]
mov rcx, qword [rbp + 0x378]
cmp rcx, rax
je 0x14003ba2d
call fcn.1400a95f0
lea rax, [rbp + 0x2a0]
mov rcx, qword [rbp + 0x298]
cmp rcx, rax
je 0x14003ba45
call fcn.1400a95f0
lea rax, [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
cmp rcx, rax
je 0x14003ba5d
call fcn.1400a95f0
lea rax, [rbp + 0x190]
mov rcx, qword [rbp + 0x188]
cmp rcx, rax
je 0x14003ba75
call fcn.1400a95f0
lea rax, [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
cmp rcx, rax
je 0x14003ba8d
call fcn.1400a95f0
mov rax, rdi
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.1400a23f0
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret