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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x640]
sub rsp, 0x740
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov rbx, rcx
lea rcx, [rbp + 0x100]
call fcn.14000ffb0
nop
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.1400100b0
lea rax, [rbp + 0x78]
mov qword [rbp + 0x70], rax
xor edi, edi
mov word [rbp + 0x78], di
lea r8d, [rdi - 1]
mov rdx, qword [rbp + 0x210]
lea rcx, [rbp + 0x70]
call fcn.14000cdd0
nop
mov esi, edi
mov ebx, edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], di
lea r8d, [rdi - 1]
mov rdx, qword [0x140148c30]
lea rcx, [rsp + 0x50]
call fcn.14000cdd0
nop
mov rdx, qword [0x140148cc0]
lea rcx, [rsp + 0x50]
cmp word [rdx], di
jne 0x140033f2b
mov rdx, qword [rbp + 0x70]
call fcn.14000ccf0
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, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140033ed3
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x140034054
call fcn.1400a9798
jmp 0x140034054
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x140033eb6
mov dword [rsp + 0x40], edi
mov ecx, ebx
call fcn.1400a2da4
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], ebx
je 0x140034037
mov rcx, rsi
call fcn.1400a2510
mov rsi, rdi
jmp 0x140033eb6
call fcn.14000ccf0
mov r14, qword [0x140151640]
test r14, r14
je 0x140033eb6
mov dword [rsp + 0x40], edi
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x18], di
mov r8d, 0xffffffff
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp - 0x20]
call fcn.14000cdd0
nop
lea r8, [0x140113a2c]
lea rdx, [0x140113a30]
lea rcx, [rbp - 0x20]
call fcn.14000cf10
lea rax, [rbp + 0x400]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x20]
mov rcx, r14
call fcn.140041e90
test eax, eax
je 0x140033fb7
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140033eb6
call fcn.1400a9798
jmp 0x140033eb6
mov ebx, dword [rbp + 0x62c]
test ebx, ebx
je 0x140033f9c
mov ecx, ebx
call fcn.1400a2da4
mov rsi, rax
cmp dword [r14], 1
je 0x140033fe8
mov dword [0x14015166c], 0x80000
mov rcx, rax
call fcn.1400a2510
mov rsi, rdi
jmp 0x140033f9c
mov dword [rsp + 0x20], 3
mov r9d, ebx
mov r8, rsi
mov edx, dword [rsp + 0x40]
mov rcx, qword [r14 + 8]
call fcn.140041890
mov dword [0x14015166c], eax
test eax, eax
je 0x140034024
cmp eax, 0x600
je 0x140034024
mov rcx, rsi
call fcn.1400a2510
mov rsi, rdi
jmp 0x140033f9c
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140034037
call fcn.1400a9798
nop
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14003404b
call fcn.1400a9798
test rsi, rsi
jne 0x1400340dc
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 r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400340d3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400340d3
mov dword [rsp + 0x44], edi
mov ecx, ebx
call fcn.1400a2da4
mov rsi, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], ebx
jne 0x14003416e
test rsi, rsi
je 0x140034177
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r15, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.1400a4bc0
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 0x14003415a
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 0x14003415a
mov rdi, rbx
jmp 0x14003416e
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.1400a2510
nop
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x14003418a
call fcn.1400a9798
nop
lea rax, [rbp + 0x380]
mov rcx, qword [rbp + 0x378]
cmp rcx, rax
je 0x1400341a2
call fcn.1400a9798
lea rax, [rbp + 0x2a0]
mov rcx, qword [rbp + 0x298]
cmp rcx, rax
je 0x1400341ba
call fcn.1400a9798
lea rax, [rbp + 0x218]
mov rcx, qword [rbp + 0x210]
cmp rcx, rax
je 0x1400341d2
call fcn.1400a9798
lea rax, [rbp + 0x190]
mov rcx, qword [rbp + 0x188]
cmp rcx, rax
je 0x1400341ea
call fcn.1400a9798
lea rax, [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
cmp rcx, rax
je 0x140034202
call fcn.1400a9798
mov rax, rdi
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.1400a24f0
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret