Function at 0x14000cad0
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 0x14000cc9e
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 0x14000cc9a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x14000cc9a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000cc91
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 0x14000cc1e
cmp rbx, 1
jne 0x14000cbd8
movzx ecx, byte [rdi]
mov rax, qword [rbp - 0x20]
mov byte [rax], cl
inc qword [rbp - 0x10]
jmp 0x14000cc91
cmp rbx, 2
jne 0x14000cbf1
movzx ecx, word [rdi]
mov rax, qword [rbp - 0x20]
mov word [rax], cx
add qword [rbp - 0x10], rbx
jmp 0x14000cc91
cmp rbx, 4
jne 0x14000cc08
mov ecx, dword [rdi]
mov rax, qword [rbp - 0x20]
mov dword [rax], ecx
add qword [rbp - 0x10], rbx
jmp 0x14000cc91
cmp rbx, 8
jne 0x14000cc1e
mov rcx, qword [rdi]
mov rax, qword [rbp - 0x20]
mov qword [rax], rcx
add qword [rbp - 0x10], rbx
jmp 0x14000cc91
test rbx, rbx
je 0x14000cc91
mov rcx, qword [rbp - 0x20]
test rcx, rcx
jne 0x14000cc3a
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140010990
jmp 0x14000cc83
mov rsi, qword [rbp - 8]
test rsi, rsi
cmovle rsi, r13
cmp rax, rbx
jl 0x14000cc58
sub rax, rbx
cmp rax, rsi
jg 0x14000cc58
mov qword [rbp - 0x10], rbx
jmp 0x14000cc86
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.1401b0750
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 0x14000ccc6
cmp qword [r14 + 0x48], rcx
jne 0x14000ccbd
lea rcx, [0x14022f9b0]
jmp 0x14000ccc6
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14000cd00
cmp word [rcx], 0
je 0x14000cd00
test rax, rax
js 0x14000cd00
lea rdx, [0x140234614]
call fcn.1401ba238
mov rdi, rax
test rax, rax
je 0x14000cd00
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rsi
call fcn.1401b83d0
mov rcx, rdi
call fcn.1401b50f0
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 0x14000cd2a
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 0x14000ce15
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 0x14000cdf2
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 0x14000cdc0
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 0x14000cda0
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
jne 0x14000ce39
cmp qword [r14 + 0x48], rcx
lea rcx, [0x14022f9b0]
je 0x14000ce39
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 0x140010120
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 0x14001025f
cmp word [rcx], 0
je 0x14001025f
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 0x140010216
cmp word [rcx + 2], di
je 0x140010216
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x1400101d0
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x140010216
cmp word [rcx + r8*2 - 4], 0x3a
je 0x140010216
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.1400119d0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x140010216
lea rcx, [0x14022f9b0]
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 0x140010246
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 0x140010261
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