Function at 0x14000ca10
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov edi, edx
mov r14, rcx
xor r12d, r12d
mov dword [rbp - 0x40], r12d
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x38], rax
lea rax, vtable.CVolObject.0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov r13d, 0x40
mov qword [rbp - 8], r13
mov dword [rbp - 0x40], 1
mov ebx, r12d
mov qword [rbp - 0x10], rbx
test edx, edx
je 0x14000cbde
lea rcx, vtable.CVolAppInstance.0
mov rax, qword [vtable.CVolAppInstance.0]
call qword [rax]
mov rbx, rax
movzx edx, di
lea r8d, [r12 + 0xa]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000cbda
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x14000cbda
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000cbd1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov qword [rbp - 0x10], r12
mov rax, qword [rbp - 0x18]
cmp rax, rbx
jl 0x14000cb5e
cmp rbx, 1
jne 0x14000cb18
movzx ecx, byte [rdi]
mov rax, qword [rbp - 0x20]
mov byte [rax], cl
inc qword [rbp - 0x10]
jmp 0x14000cbd1
cmp rbx, 2
jne 0x14000cb31
movzx ecx, word [rdi]
mov rax, qword [rbp - 0x20]
mov word [rax], cx
add qword [rbp - 0x10], rbx
jmp 0x14000cbd1
cmp rbx, 4
jne 0x14000cb48
mov ecx, dword [rdi]
mov rax, qword [rbp - 0x20]
mov dword [rax], ecx
add qword [rbp - 0x10], rbx
jmp 0x14000cbd1
cmp rbx, 8
jne 0x14000cb5e
mov rcx, qword [rdi]
mov rax, qword [rbp - 0x20]
mov qword [rax], rcx
add qword [rbp - 0x10], rbx
jmp 0x14000cbd1
test rbx, rbx
je 0x14000cbd1
mov rcx, qword [rbp - 0x20]
test rcx, rcx
jne 0x14000cb7a
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.1400108d0
jmp 0x14000cbc3
mov rsi, qword [rbp - 8]
test rsi, rsi
cmovle rsi, r13
cmp rax, rbx
jl 0x14000cb98
sub rax, rbx
cmp rax, rsi
jg 0x14000cb98
mov qword [rbp - 0x10], rbx
jmp 0x14000cbc6
mov rax, rbx
cqo
idiv rsi
sub rsi, rdx
add rsi, rbx
mov r8, rsi
mov rdx, rcx
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rbx
mov rcx, rax
mov r8, rbx
mov rdx, rdi
call fcn.1401b0690
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbx, qword [rbp - 0x10]
mov rcx, qword [r14 + 0x18]
mov rsi, qword [rbp - 0x20]
mov rax, rbx
test rcx, rcx
jne 0x14000cc06
cmp qword [r14 + 0x48], rcx
jne 0x14000cbfd
lea rcx, [0x14022e9b0]
jmp 0x14000cc06
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14000cc40
cmp word [rcx], 0
je 0x14000cc40
test rax, rax
js 0x14000cc40
lea rdx, [0x140233624]
call fcn.1401ba178
mov rdi, rax
test rax, rax
je 0x14000cc40
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rsi
call fcn.1401b8310
mov rcx, rdi
call fcn.1401b5030
mov eax, 1
and eax, 0xfffffffe
mov dword [rbp - 0x40], eax
lea rax, vtable.CVolMem.0
mov qword [rbp - 0x38], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x14000cc6a
lea rcx, [rbp - 0x38]
mov rax, qword [rbp - 0x38]
call qword [rax + 0x18]
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
lea rax, vtable.CVolObject.0
mov qword [rbp - 0x38], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x50], 0xfffffffffffe7960
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
mov dword [rsp + 0x20], 0xff
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
je 0x14000cd55
nop
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14000cd32
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14000cd00
mov dword [rsp + 0x20], 0xff
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea ecx, [r8 + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
test eax, eax
jne 0x14000cce0
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
jne 0x14000cd79
cmp qword [r14 + 0x48], rcx
lea rcx, [0x14022e9b0]
je 0x14000cd79
mov rcx, qword [r14 + 0x38]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp 0x140010060
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
test rcx, rcx
je 0x14001019f
cmp word [rcx], 0
je 0x14001019f
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x60], rdx
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x60], rsi
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea rax, vtable.CWString.0
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x10], 0xfe
cmp word [rcx], di
je 0x140010156
cmp word [rcx + 2], di
je 0x140010156
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140010110
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x140010156
cmp word [rcx + r8*2 - 4], 0x3a
je 0x140010156
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.140011910
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x140010156
lea rcx, [0x14022e9b0]
cmp qword [rbp - 0x18], 0
cmovne rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, rdi
cmp eax, 0xffffffff
setne bl
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], r14
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140010186
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x60], rsi
mov rax, rbx
jmp 0x1400101a1
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret