Function at 0x1800061c4
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x18004d040]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rcx
mov qword [rbp - 8], rcx
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov r14d, 0x585d
mov eax, dword [0x1800537b0]
cmp eax, 0x55f0
jae 0x180006227
mov rax, qword [0x1800533b0]
mov rcx, qword [rax + 0xd8]
jmp 0x180006241
cmp eax, r14d
mov rax, qword [0x1800533b0]
jae 0x180006239
mov rcx, qword [rax + 0x28]
jmp 0x18000623d
mov rcx, qword [rax + 0x30]
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x180006252
mov qword [rsp + 0x58], rcx
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.180006a04
nop
cmp qword [0x18004d0f8], r13
je 0x18000639e
lea rbx, [0x18004d0e8]
mov rcx, rbx
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rcx, qword [0x18004d0e8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000639e
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rbx, qword [0x18004d0e8]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp - 8], rax
dec rax
cmp rax, 0xfffffffffffffffd
seta al
mov rcx, qword [rbp + 0x58]
test al, al
jne 0x180006981
mov qword [rbp - 0x40], r13
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rbp + 0x58]
test eax, eax
je 0x180006987
mov rdi, qword [rbp - 0x40]
mov rcx, rdi
call fcn.18001f5cc
mov rsi, rax
test rax, rax
je 0x18000632b
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.ucrtbase.dll_memset
jmp 0x18000632e
mov rsi, r13
mov qword [rbp - 0x30], rsi
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8d, dword [rbp - 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbp + 0x58]
test eax, eax
je 0x18000698d
mov edx, dword [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rdi, rax
mov qword [rsp + 0x60], rax
test rsi, rsi
je 0x180006382
mov r8, rsi
xor edx, edx
mov rcx, qword [0x1800537a8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180006464
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180006464
xor edx, edx
mov r8d, 0x822
lea rcx, str.Windows.UI.Xaml.Controls.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
mov qword [rbp - 8], rax
mov rcx, qword [rbp + 0x58]
test rax, rax
je 0x180006993
mov edx, 0x7d0
mov r8d, 0xa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
mov rcx, qword [rbp + 0x58]
test rax, rax
je 0x180006999
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp + 0x58]
test rax, rax
je 0x18000699f
lea rax, [rbp - 0x40]
mov qword [rbp - 0x70], rax
mov byte [rbp - 0x68], 1
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, qword [rbp + 0x58]
test eax, eax
je 0x1800069a5
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov edx, edi
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rdi, rax
mov qword [rsp + 0x60], rax
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18000645b
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x58]
test rdi, rdi
je 0x1800069ab
mov rsi, r13
mov qword [rbp - 8], r13
mov eax, dword [0x1800537b0]
cmp eax, 0x55f0
jae 0x180006495
mov rax, qword [0x1800533b0]
mov rbx, qword [rax + 0x138]
jmp 0x1800064b1
cmp eax, r14d
mov rax, qword [0x1800533b0]
jae 0x1800064aa
mov rbx, qword [rax + 0xf0]
jmp 0x1800064b1
mov rbx, qword [rax + 0xf8]
mov r14, r13
test rbx, rbx
je 0x1800064cd
mov rsi, rbx
mov qword [rbp - 8], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r14, rbx
mov qword [rbp + 0x10], r13
mov rax, qword [r14]
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [0x180039b58]
mov rdx, rdi
mov rcx, r14
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069b1
mov qword [rbp + 8], r13
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 8]
xor edx, edx
call qword [rax + 0x68]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069b9
mov qword [rbp - 0x10], r13
mov rax, qword [r14]
lea rdx, [rbp - 0x10]
mov rcx, r14
call qword [rax + 0x50]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069c1
mov qword [rbp - 0x70], r13
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [0x180039b68]
mov rdx, qword [rbp + 8]
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069c9
mov qword [rbp - 0x18], r13
mov rax, qword [r14]
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rbp - 0x10]
mov rcx, r14
call qword [rax + 0x90]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069d1
mov dword [rbp - 0x28], r13d
mov dword [rbp - 0x24], r13d
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea r8, [rbp - 0x24]
lea rdx, [rbp - 0x28]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069d9
cmp qword [0x1800531c0], r13
jne 0x180006726
mov rax, r13
mov qword [rbp - 0x40], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x1800065e7
mov rbx, r13
mov rdi, r13
jmp 0x18000660e
mov qword [rbp - 0x38], r13
mov rax, qword [rcx]
lea r8, [rbp - 0x38]
lea rdx, [0x18003a440]
call qword [rax]
test eax, eax
js 0x1800069e1
mov rbx, qword [rbp - 0x38]
mov rdi, rbx
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rdi]
mov r14, qword [rcx + 0x28]
test rax, rax
je 0x180006628
lea rcx, [rbp - 0x40]
call fcn.1800078ec
mov eax, dword [0x1800537b0]
cmp eax, 0x55f0
jae 0x180006645
mov rax, qword [0x1800533b0]
mov rdx, qword [rax + 0xe8]
jmp 0x180006665
cmp eax, 0x585d
mov rax, qword [0x1800533b0]
jae 0x18000665d
mov rcx, qword [rax + 0x30]
mov rdx, qword [rcx + 0x18]
jmp 0x180006665
mov rdx, qword [rax + 0x38]
mov rdx, qword [rdx + 0x18]
lea r8, [rbp - 0x40]
mov rcx, rdi
call r14
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069e9
test rbx, rbx
je 0x18000668a
lea rcx, [rsp + 0x48]
call fcn.18000778c
mov dword [rsp + 0x48], 1
mov dword [rbp - 0x38], 0xa
mov eax, dword [rbp - 0x24]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
mov eax, dword [rbp - 0x28]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss dword [rsp + 0x40], xmm0
movss dword [rsp + 0x44], xmm1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x40]
call fcn.180006a70
mov rbx, rax
lea rcx, [0x1800531c0]
cmp rcx, rax
je 0x180006705
cmp qword [0x1800531c0], r13
je 0x1800066f8
call fcn.1800078ec
mov rcx, qword [rbx]
mov qword [rbx], r13
mov qword [0x1800531c0], rcx
cmp qword [rbp - 0x30], r13
je 0x180006715
lea rcx, [rbp - 0x30]
call fcn.1800078ec
nop
cmp qword [rbp - 0x40], r13
je 0x180006742
lea rcx, [rbp - 0x40]
call fcn.1800078ec
jmp 0x180006742
mov eax, dword [rbp - 0x28]
mov dword [rbp - 0x30], eax
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x2c], eax
lea rdx, [rbp - 0x30]
lea rcx, [0x1800531c0]
call fcn.180006af8
mov rcx, qword [0x1800531c0]
test rcx, rcx
jne 0x180006756
mov rbx, r13
mov rdi, r13
jmp 0x180006779
mov qword [rbp - 0x30], r13
mov rax, qword [rcx]
lea r8, [rbp - 0x30]
lea rdx, [0x18003a430]
call qword [rax]
test eax, eax
js 0x1800069f1
mov rbx, qword [rbp - 0x30]
mov rdi, rbx
mov qword [rsp + 0x40], rbx
mov qword [rbp + 0x18], r13
mov qword [rbp - 0x20], r13
mov rax, qword [rdi]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x20]
lea r8, [0x18003abb8]
xor edx, edx
mov rcx, rdi
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x1800069f9
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x178]
mov qword [rbp], r13
mov dword [rsp + 0x70], 0x57
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], 0x42c00000
mov qword [rsp + 0x7c], 0x42c00000
mov qword [rbp - 0x78], r13
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x50], xmm1
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
lea r9, [rbp]
lea r8, [rbp - 0x60]
mov rdx, qword [rbp - 0x18]
call qword [rax + 0x1d0]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 1
movss xmm3, dword [0x18003e1dc]
xor r8d, r8d
mov rdx, qword [rbp]
call qword [rax + 0xd0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x58]
test eax, eax
js 0x180006979
mov rcx, qword [0x1800531c0]
test rcx, rcx
jne 0x180006863
mov qword [rbp - 0x40], r13
jmp 0x18000687f
mov qword [rbp - 0x30], r13
mov rax, qword [rcx]
lea r8, [rbp - 0x30]
lea rdx, [0x18003b3d0]
call qword [rax]
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x40]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.180006b80
nop
cmp qword [rbp - 0x40], r13
je 0x1800068a1
lea rcx, [rbp - 0x40]
call fcn.1800078ec
nop
cmp qword [rbp], r13
je 0x1800068b1
lea rcx, [rbp]
call fcn.18000778c
nop
cmp qword [rbp - 0x20], r13
je 0x1800068c1
lea rcx, [rbp - 0x20]
call fcn.18000778c
nop
test rbx, rbx
je 0x1800068d1
lea rcx, [rsp + 0x40]
call fcn.18000778c
nop
cmp qword [rbp - 0x18], r13
je 0x1800068e1
lea rcx, [rbp - 0x18]
call fcn.18000778c
nop
cmp qword [rbp - 0x10], r13
je 0x1800068f1
lea rcx, [rbp - 0x10]
call fcn.18000778c
nop
cmp qword [rbp + 8], r13
je 0x180006901
lea rcx, [rbp + 8]
call fcn.18000778c
nop
cmp qword [rbp + 0x10], r13
je 0x180006911
lea rcx, [rbp + 0x10]
call fcn.18000778c
nop
test rsi, rsi
je 0x180006920
lea rcx, [rbp - 8]
call fcn.18000778c
nop
cmp qword [rsp + 0x50], r13
je 0x180006932
lea rcx, [rsp + 0x50]
call fcn.1800078ec
nop
cmp qword [rsp + 0x58], r13
je 0x180006944
lea rcx, [rsp + 0x58]
call fcn.18000778c
nop
lea rcx, [rsp + 0x60]
call fcn.18000778c
mov rax, r15
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180031670
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov edx, eax
call fcn.18000abb4
nop
call fcn.18000a760
int3
call fcn.18000a760
nop
call fcn.18000a760
nop
call fcn.18000a760
int3
call fcn.18000a760
int3
call fcn.18000a760
nop
call fcn.18000a760
nop
call fcn.18000a760
nop
mov edx, eax
call fcn.18000abb4
nop
mov edx, eax
call fcn.18000abb4
nop
mov edx, eax
call fcn.18000abb4
nop
mov edx, eax
call fcn.18000abb4
nop
mov edx, eax
call fcn.18000abb4
int3
mov edx, eax
call fcn.18000abb4
nop
mov ecx, eax
call fcn.18000c42c
nop
mov edx, eax
call fcn.18000abb4
nop
mov ecx, eax
call fcn.18000c42c
nop
mov edx, eax
call fcn.18000abb4
int3