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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1d0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
mov rax, qword [0x180036040]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov r12, rdx
mov r15, rcx
xor r13d, r13d
movss xmm12, dword [0x1800360f0]
movss xmm11, dword [0x180039a70]
xorps xmm6, xmm6
ucomiss xmm11, xmm6
jp 0x18000c086
je 0x18000c853
mov esi, 1
lea edi, [rsi + 3]
cmp qword [0x180039c58], r13
jne 0x18000c146
mov rax, qword [rcx]
lea r8, [0x180039c58]
lea rdx, [0x180029ab0]
call qword [rax + 0x1f8]
mov ebx, eax
test eax, eax
jns 0x18000c0cd
mov rcx, qword [rbp + 0x108]
mov edx, ebx
call fcn.180003324
mov eax, ebx
jmp 0x18000c855
mov dword [rbp - 8], esi
mov rcx, qword [0x180039c58]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
lea r9, [rbp - 8]
xor r8d, r8d
mov edx, edi
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x18000c0b8
mov dword [rbp - 8], esi
mov rcx, qword [0x180039c58]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
lea r9, [rbp - 8]
xor r8d, r8d
lea edx, [r8 + 2]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x18000c0b8
mov dword [rbp - 8], esi
mov rcx, qword [0x180039c58]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
lea r9, [rbp - 8]
xor r8d, r8d
mov edx, 0x80000006
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x18000c0b8
mov byte [0x180039659], sil
cmp qword [0x180039c60], r13
jne 0x18000c1b0
mov rax, qword [r15]
lea r8, [0x180039c60]
lea rdx, [0x180029af0]
mov rcx, r15
call qword [rax + 0x1f8]
mov ebx, eax
test eax, eax
js 0x18000c0b8
mov dword [rbp - 8], r13d
mov rcx, qword [0x180039c60]
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
lea r9, [rbp - 8]
xor r8d, r8d
mov edx, esi
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x18000c0b8
mov r8, qword [0x180039c58]
xor edx, edx
mov rcx, qword [0x180039c60]
call fcn.1800025ac
cmp byte [0x180039659], r13b
je 0x18000c5d8
mov rbx, r13
mov qword [rbp + 8], rbx
cmp qword [0x1800361c0], r13
je 0x18000c323
lea rdi, [0x1800361b0]
mov rcx, rdi
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rcx, qword [0x1800361b0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000c323
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rdi, qword [0x1800361b0]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, esi
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rbp], rax
inc rax
test rax, 0xfffffffffffffffe
je 0x18000c256
mov qword [rbp - 0x10], r13
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18000c266
mov rcx, qword [rbp + 0x108]
call fcn.18000a3e4
mov esi, eax
jmp 0x18000c2ce
mov rsi, qword [rbp - 0x10]
mov rcx, rsi
call fcn.1800118ec
mov r14, rax
test rax, rax
je 0x18000c289
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.ucrtbase.dll_memset
jmp 0x18000c28c
mov r14, r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8d, dword [rbp - 0x10]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000c2ea
mov rcx, qword [rbp + 0x108]
call fcn.18000a3e4
mov esi, eax
test r14, r14
je 0x18000c2ce
mov r8, r14
xor edx, edx
mov rcx, qword [0x180039be8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000c56f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000c56f
mov edx, dword [rbp - 0x10]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rbx, rax
mov qword [rbp + 8], rax
test r14, r14
je 0x18000c315
mov r8, r14
xor edx, edx
mov rcx, qword [0x180039be8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000c3ad
lea r8, [0x18002ace0]
mov edx, 0x66
lea r14, [0x180000000]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x18000c3b5
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x18000c3b5
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
jne 0x18000c389
mov rcx, qword [rbp + 0x108]
call fcn.18000a3e4
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x18000c56f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov edx, esi
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov rbx, rax
mov qword [rbp + 8], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, rbx
test rax, rax
jne 0x18000c3c8
mov rcx, qword [rbp + 0x108]
call fcn.18000a3e4
mov esi, eax
jmp 0x18000c56f
mov rdi, r13
mov qword [rbp], r13
mov eax, dword [0x180039bf0]
cmp eax, 0x55f0
jae 0x18000c3ec
mov rax, qword [0x1800399a0]
mov rsi, qword [rax + 0x138]
jmp 0x18000c40a
cmp eax, 0x585d
mov rax, qword [0x1800399a0]
jae 0x18000c403
mov rsi, qword [rax + 0xf0]
jmp 0x18000c40a
mov rsi, qword [rax + 0xf8]
mov r14, r13
test rsi, rsi
je 0x18000c426
mov rdi, rsi
mov qword [rbp], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov r14, rsi
mov qword [rbp + 0x18], r13
mov rax, qword [r14]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [0x180029a68]
mov rdx, rbx
mov rcx, r14
call qword [rax + 0x20]
mov esi, eax
test eax, eax
jns 0x18000c462
mov rcx, qword [rbp + 0x108]
mov edx, eax
call fcn.180003324
jmp 0x18000c550
mov qword [rbp + 0x10], r13
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
xor edx, edx
call qword [rax + 0x68]
mov esi, eax
test eax, eax
jns 0x18000c48f
mov rcx, qword [rbp + 0x108]
mov edx, eax
call fcn.180003324
jmp 0x18000c540
mov qword [rbp - 8], r13
mov rax, qword [r14]
lea rdx, [rbp - 8]
mov rcx, r14
call qword [rax + 0x50]
mov esi, eax
test eax, eax
js 0x18000c521
mov rcx, qword [rbp - 8]
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, [0x180029a78]
mov rdx, qword [rbp + 0x10]
call qword [rax + 0x40]
mov esi, eax
test eax, eax
js 0x18000c521
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rcx, qword [0x180039c58]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 8
lea r9, [rbp - 0x10]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x48]
mov esi, eax
test eax, eax
js 0x18000c521
mov rcx, qword [rbp - 8]
mov rax, qword [rcx]
lea r8, [0x180039a64]
lea rdx, [0x180039a68]
call qword [rax + 0x18]
mov esi, eax
test eax, eax
jns 0x18000c584
mov edx, eax
mov rcx, qword [rbp + 0x108]
call fcn.180003324
nop
cmp qword [rbp - 8], r13
je 0x18000c540
lea rcx, [rbp - 8]
call fcn.180001e50
nop
cmp qword [rbp + 0x10], r13
je 0x18000c550
lea rcx, [rbp + 0x10]
call fcn.180001e50
nop
cmp qword [rbp + 0x18], r13
je 0x18000c560
lea rcx, [rbp + 0x18]
call fcn.180001e50
nop
test rdi, rdi
je 0x18000c56f
lea rcx, [rbp]
call fcn.180001e50
nop
test rbx, rbx
je 0x18000c57d
lea rcx, [rbp + 8]
call fcn.180001e50
mov eax, esi
jmp 0x18000c855
mov byte [0x180039659], r13b
cmp qword [rbp - 8], r13
je 0x18000c59b
lea rcx, [rbp - 8]
call fcn.180001e50
nop
cmp qword [rbp + 0x10], r13
je 0x18000c5ab
lea rcx, [rbp + 0x10]
call fcn.180001e50
nop
cmp qword [rbp + 0x18], r13
je 0x18000c5bb
lea rcx, [rbp + 0x18]
call fcn.180001e50
nop
test rdi, rdi
je 0x18000c5ca
lea rcx, [rbp]
call fcn.180001e50
nop
lea rcx, [rbp + 8]
call fcn.180001e50
mov esi, 1
mov rax, qword [r15]
lea rdx, [rbp]
mov rcx, r15
call qword [rax + 0x1a8]
mov eax, dword [0x180039a68]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [rbp]
divss xmm1, xmm0
mov eax, dword [0x180039a64]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm2, dword [rbp + 4]
divss xmm2, xmm0
unpcklps xmm1, xmm2
movsd qword [rbp + 8], xmm1
mov rcx, qword [0x180039c58]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 8
lea r9, [rbp + 8]
xor r8d, r8d
mov edx, esi
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x18000c0b8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rax
mov rax, qword [r15]
lea rdx, [rbp + 0x40]
mov rcx, r15
call qword [rax + 0xf8]
movss xmm10, dword [rbp + 0x50]
movss xmm7, dword [rbp + 0x54]
and dword [rbp + 0x54], 0
and dword [rbp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov rax, qword [r12]
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, r12
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x18000c0b8
comiss xmm10, xmm6
jb 0x18000c6a5
movss xmm9, dword [rbp + 0x20]
jmp 0x18000c6a9
xorps xmm9, xmm9
comiss xmm7, xmm6
jb 0x18000c6b6
movss xmm8, dword [rbp + 0x24]
jmp 0x18000c6ba
xorps xmm8, xmm8
movss xmm1, dword [0x18002c7bc]
subss xmm1, xmm12
mulss xmm1, xmm10
movss dword [rbp + 0x30], xmm1
movss dword [rbp + 0x34], xmm7
xor eax, eax
mov qword [rbp + 0x38], rax
movss xmm0, dword [rbp + 0x28]
subss xmm0, dword [rbp + 0x20]
maxss xmm1, xmm6
addss xmm0, xmm1
movss dword [rbp + 0x38], xmm0
maxss xmm7, xmm6
movss xmm0, dword [rbp + 0x2c]
subss xmm0, dword [rbp + 0x24]
addss xmm7, xmm0
movss dword [rbp + 0x3c], xmm7
mov rcx, qword [0x180039c60]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 0x10
lea r9, [rbp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x18000c0b8
movaps xmm0, xmmword [0x18002c810]
and dword [rbp - 0x68], 0
and dword [rbp - 0x64], 0
movq rax, xmm0
cmp qword [rbp + 0x40], rax
jne 0x18000c853
psrldq xmm0, 8
movq rax, xmm0
cmp qword [rbp + 0x48], rax
jne 0x18000c853
mov rax, qword [rbp + 0x50]
cmp rax, qword [rbp - 0x68]
jne 0x18000c853
xor edx, edx
lea r8d, [rdx + 0x44]
lea rcx, [rsp + 0x44]
call sub.ucrtbase.dll_memset
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], esi
movaps xmm0, xmmword [0x18002c810]
movups xmmword [rsp + 0x5c], xmm0
and dword [rsp + 0x6c], 0
and dword [rsp + 0x70], 0
movss dword [rsp + 0x74], xmm11
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], esi
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rbp - 0x30], xmm1
movsd xmm0, qword [rbp - 0x80]
movsd qword [rbp - 0x20], xmm0
mov rax, qword [r15]
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov rcx, r15
call qword [rax + 0x2b0]
unpcklps xmm9, xmm8
movsd qword [rbp + 8], xmm9
mov rcx, qword [0x180039c60]
mov qword [rbp], r13
mov rax, qword [rcx]
lea rdx, [rbp]
call qword [rax + 0x90]
mov rax, qword [r15]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], esi
lea r9, [rbp + 0x30]
lea r8, [rbp + 8]
mov rdx, qword [rbp]
mov rcx, r15
call qword [rax + 0x298]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x148]
xor eax, eax
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.180023360
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret