Function at 0x14007d430
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, rdx
mov r12, rcx
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14007d785
mov edx, CreateErrorInfo
xor ecx, ecx
lea r8d, [r15 + 0x17]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x14007d785
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
lea ecx, [rsi + 2]
call fcn.14010a204
mov r14, rax
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call fcn.14010c9b0
lea edx, [rsi + 1]
mov byte [rdx + r14], r15b
mov byte [rsi + r14], r15b
mov rdx, r14
lea rcx, [rbp - 0x69]
call fcn.1400cc800
nop
mov r8, qword [r12 + 0x280]
lea rdx, str._EXCLUSIONFILELIST
lea rcx, [rbp - 0x69]
call fcn.1400cb7b0
mov rdx, qword [0x1402b9cc8]
mov qword [rbp - 0x61], rdx
mov esi, r15d
mov rax, qword [r12 + 0x260]
sub rax, qword [r12 + 0x258]
sar rax, 3
test rax, rax
je 0x14007d70c
nop dword [rax]
mov rax, qword [r12 + 0x258]
mov rdx, qword [rax + rsi*8]
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x11]
call fcn.1400056d0
nop
lea rdi, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdi, qword [rbp - 0x11]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400854f0
mov rbx, rax
mov qword [rbp - 0x51], rax
test rax, rax
je 0x14007d5e5
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14007d5e8
test rdi, rdi
jne 0x14007d6f6
jmp 0x14007d5e8
mov rbx, r15
mov qword [rbp - 0x59], rbx
test rbx, rbx
je 0x14007d701
cmp qword [rbx + 8], 0
jne 0x14007d608
mov rcx, qword [rbx]
call fcn.14010a850
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x21], 0xf
mov qword [rbp - 0x29], r15
mov byte [rbp - 0x39], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x39]
call fcn.140015af0
nop
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x61]
call fcn.1400ca830
lea rdx, str.__br__r_n
lea rcx, [rbp - 0x61]
call fcn.1400ca830
nop
cmp qword [rbp - 0x21], 0x10
jb 0x14007d670
mov rcx, qword [rbp - 0x39]
call fcn.140085540
mov qword [rbp - 0x21], 0xf
mov qword [rbp - 0x29], r15
mov byte [rbp - 0x39], 0
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x14007d6b0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14007d69a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14007d6a8
call fcn.14010d304
mov rcx, rbx
call fcn.140085540
mov qword [rbp - 0x59], r15
cmp qword [rbp + 7], 8
jb 0x14007d6c4
mov rcx, qword [rbp - 0x11]
call fcn.140085540
mov qword [rbp + 7], 7
mov qword [rbp - 1], r15
mov word [rbp - 0x11], r15w
inc rsi
mov rax, qword [r12 + 0x260]
sub rax, qword [r12 + 0x258]
sar rax, 3
cmp rsi, rax
jae 0x14007d70c
jmp 0x14007d560
mov ecx, 0x8007000e
call fcn.14010a480
nop
mov ecx, 0x8007000e
call fcn.14010a480
nop
mov r8, qword [rbp - 0x61]
lea rdx, str._AVHELPLINKS
lea rcx, [rbp - 0x69]
call fcn.1400cb7b0
lea r8, [r12 + 0x14c]
lea rdx, str._EXCLUSIONFOLDER
lea rcx, [rbp - 0x69]
call fcn.1400cb7b0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdx, qword [rbp - 0x69]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x49]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140085540
nop
lea rcx, [rbp - 0x61]
call fcn.1400ca400
nop
lea rcx, [rbp - 0x69]
call fcn.1400ca400
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret