Function at 0x140033984
Capabilities:
Check if file exists
Delete registry key
Get file attributes
Get file version info
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa38]
sub rsp, 0xaf8
movaps xmmword [rax - 0x58], xmm6
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
mov rax, qword [rbp + 0xa60]
mov rsi, rcx
mov qword [rbp - 0x80], rcx
mov r15d, 1
xor ecx, ecx
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x68], rdx
mov r13d, r9d
mov qword [rbp - 0x60], rax
mov rdi, r8
mov dword [rsp + 0x58], ecx
mov ebx, r15d
mov dword [rsp + 0x50], ecx
mov r12d, ecx
mov dword [rsp + 0x54], ecx
mov r14d, ecx
cmp rdx, 0xffffffffffffffff
je 0x1400349c1
test r9d, r9d
je 0x140033a19
mov rcx, rsi
call fcn.140032128
test eax, eax
jne 0x140033c2f
mov dword [rsp + 0x50], r15d
test r13d, r13d
mov dword [rsp + 0x28], ebx
lea rax, str.COPYFILES
lea r15, str.DELFILES
cmovne r15, rax
lea r9, str.DEFAULTINSTALL
test rdi, rdi
mov qword [rbp - 0x38], r15
lea r8, [rbp - 0x28]
mov qword [rsp + 0x20], r15
cmovne r9, rdi
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.140030854
xor ecx, ecx
test eax, eax
je 0x1400349c1
mov eax, r13d
neg eax
sbb ecx, ecx
add ecx, 0x26dd
call fcn.140015bb4
lea rcx, [rbp - 0x28]
call fcn.140030704
xor ecx, ecx
mov qword [rbp - 0x30], rax
mov rdi, rax
test rax, rax
je 0x1400349c1
mov r8, qword [rsi + 0x18]
test r8, r8
je 0x1400349ae
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], cx
jne 0x140033aa1
add rax, rax
cmp rax, 0x208
jae 0x1400349ae
mov edx, 0x104
lea rcx, [rbp + 0x7c0]
call fcn.140001470
lea r8, [rbp + 0x7c0]
mov ecx, 4
lea rdx, str._Source_location_is:_S._r_n
call fcn.1400168a8
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, [0x140043808]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcstok]
mov rsi, rax
test rax, rax
je 0x1400349ae
xorps xmm6, xmm6
mov r9, rsi
lea rdx, str._Parsing__S_INFSection:_S_r_n
mov r8, r15
mov ecx, 4
mov r14d, r12d
call fcn.1400168a8
lea r9, str.DESTINATIONDIRS
mov dword [rsp + 0x28], r12d
lea r8, [rbp - 0x10]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.140030854
test eax, eax
jne 0x140033b7e
lea rax, str.DEFAULTDESTDIR
mov dword [rsp + 0x28], r12d
lea r9, str.DESTINATIONDIRS
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
xor ecx, ecx
lea rdx, [rsp + 0x68]
call fcn.140030854
test eax, eax
je 0x14003496d
lea rcx, [rbp - 0x10]
call fcn.140030704
mov r15, rax
test rax, rax
je 0x14003496d
mov r8, rax
lea rcx, [rbp + 0x5b0]
mov edx, 0x104
call fcn.140001470
lea rdx, [0x140043808]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
test rax, rax
je 0x140033bdf
add rdi, 2
mov word [rax], r12w
mov r8, rdi
lea rcx, [rbp + 0x3a0]
mov edx, 0x104
call fcn.140001470
mov r12, qword [rbp - 0x60]
test r12, r12
je 0x140033c7d
xor r14d, r14d
lea rdx, [0x1400420ec]
lea rcx, [rbp + 0x5b0]
mov dword [rsp + 0x40], r14d
lea r8d, [r14 + 2]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
lea rcx, [rbp + 0x5b0]
test eax, eax
jne 0x140033c43
lea r8, [rsp + 0x40]
lea rdx, [0x1400420f4]
call qword [sym.imp.msvcrt.dll_swscanf]
mov eax, dword [rsp + 0x40]
jmp 0x140033c49
mov edx, 0x80004005
cmp eax, edx
jne 0x140033a19
mov eax, edx
jmp 0x1400349d8
call qword [sym.imp.msvcrt.dll__wtoi]
test eax, eax
jne 0x140033c5f
mov ecx, 0x80004003
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x80004003
jmp 0x140033c70
lea r8, [rbp + 0x5b0]
mov edx, eax
mov rcx, r12
call fcn.140030004
xor r12d, r12d
test eax, eax
sete r14b
test eax, eax
je 0x140033c9a
mov edx, 0x208
lea rcx, [rbp + 0x5b0]
call fcn.1400300cc
test eax, eax
jne 0x140033d9c
lea r14d, [rax + 1]
test rdi, rdi
je 0x140033ce1
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
or rdi, 0xffffffffffffffff
lea rcx, [rbp + 0x5b0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140033cba
mov edx, 0x104
lea r8, [rbp + 0x3a0]
sub rdx, rax
lea rcx, [rbp + 0x5b0]
call fcn.140001584
jmp 0x140033ce5
or rdi, 0xffffffffffffffff
test r13d, r13d
je 0x140033d74
lea r8, [rbp + 0x5b0]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140001470
test eax, eax
js 0x140033d68
lea rcx, [rbp + 0x3a0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140033d14
test rax, rax
je 0x140033d52
cmp word [rbp + rax*2 + 0x39e], 0x5c
jne 0x140033d52
lea rcx, [rbp + 0x3a0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140033d38
test rax, rax
je 0x140033d52
mov word [rbp + rax*2 + 0x39e], r12w
jmp 0x140033d0a
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033d68
test al, 0x10
jne 0x140033d74
lea rcx, [rbp + 0x5b0]
call fcn.1400174b4
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r9, rsi
lea r8, [rbp + 0x5b0]
lea rdx, str._Assigned_destination:__S_to__S._r_n
mov ecx, 4
call fcn.1400168a8
mov rcx, r15
call fcn.14003c408
test r14d, r14d
je 0x14003496d
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140033dda
mov rcx, qword [rsp + 0x68]
lea r9, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.14001b0b0
jmp 0x140033ddd
mov eax, r12d
test eax, eax
je 0x140034981
mov rcx, qword [rsp + 0x68]
mov r15d, 1
mov rdx, rsi
mov r14d, r15d
call fcn.14001af24
mov ecx, eax
mov dword [rsp + 0x74], eax
mov esi, eax
call fcn.140015a28
cmp esi, r15d
jb 0x140034981
mov ecx, r14d
call fcn.140015b2c
add r14d, r15d
lea rcx, [rbp - 0x28]
mov dword [rsp + 0x70], r14d
call fcn.140030704
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140034837
lea rdx, [0x140043808]
mov rcx, rax
test r13d, r13d
je 0x14003485b
mov rbx, r12
mov qword [rsp + 0x78], r12
mov r14, r12
mov dword [rsp + 0x44], 3
mov r12d, 0x40
call qword [sym.imp.msvcrt.dll_wcsstr]
mov esi, r15d
xor r15d, r15d
test rax, rax
je 0x140033f5c
mov ecx, esi
mov word [rax], r15w
lea rdi, [rax + 2]
sub ecx, 1
je 0x140033ef6
sub ecx, 1
je 0x140033ef1
cmp ecx, 1
je 0x140033ee4
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140033eb7
lea edx, [rcx + 6]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140033ef9
cmp dword [0x1400516e0], 5
jl 0x140033ef9
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov r8d, 0x2e
mov qword [rsp + 0x20], r15
lea rdx, str.ERROR:_Too_many_commas_in_CopyFiles_section._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140033ef9
mov rcx, rdi
call fcn.140017200
mov r12d, eax
jmp 0x140033ef9
mov r14, rdi
jmp 0x140033ef9
mov rbx, rdi
lea rdx, [0x140043808]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
inc esi
test rax, rax
jne 0x140033e7c
xor esi, esi
mov qword [rsp + 0x78], r14
test rbx, rbx
je 0x140033f35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x140033f24
cmp rax, 2
cmovb rbx, rsi
test r14, r14
je 0x140033f55
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], si
jne 0x140033f3e
cmp rax, 2
cmovb r14, rsi
mov qword [rsp + 0x78], r14
mov rdi, qword [rsp + 0x48]
jmp 0x140033f5e
xor esi, esi
mov rax, qword [rbp - 0x80]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140033f7b
cmp dword [rax + 0x74], esi
jne 0x140033f7b
bt r12d, 0x18
jb 0x140033f7b
and r12d, 0xffffffbf
lea r8, [rbp + 0x7c0]
mov dword [rsp + 0x40], esi
mov edx, 0x103
lea rcx, [rbp + 0x190]
mov r15d, esi
mov r14d, esi
mov r13d, esi
call fcn.140001470
lea r8, [rbp + 0x5b0]
mov edx, 0x103
lea rcx, [rbp + 0x3a0]
call fcn.140001470
test rbx, rbx
je 0x140033fde
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rbx
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140001584
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rdi
lea rcx, [rbp + 0x3a0]
mov edx, 0x104
call fcn.140001584
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034015
test al, 0x10
je 0x14003403b
test rbx, rbx
jne 0x14003403b
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rdi
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140001584
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x14003479a
test al, 0x10
jne 0x14003479a
bt r12d, 0xa
jae 0x140034114
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x14003407f
test al, 0x10
je 0x140034114
lea rdx, str.__WMC_CopyFile:_File__S_was_only_to_be_installed_if_already_present_on_the_system.__It_was_not_present_and_thus_will_not_be_installed._r_n
lea r8, [rbp + 0x190]
mov ecx, 4
call fcn.1400168a8
mov r13d, 1
mov ebx, r13d
xor r12d, r12d
mov r15, qword [rsp + 0x48]
mov r14, qword [rbp - 0x80]
cmp qword [r14 + 0x10], r12
je 0x140034811
mov ecx, 0x208
call fcn.14003c460
mov rdi, rax
test rax, rax
je 0x140034811
mov esi, 0x104
lea r8, [rbp + 0x5b0]
mov edx, esi
mov rcx, rax
call fcn.140001470
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, r15
mov edx, esi
mov rcx, rdi
call fcn.140001584
mov rcx, qword [r14 + 0x10]
xor r8d, r8d
mov rdx, rdi
call fcn.140024800
mov rcx, rdi
call fcn.14003c408
jmp 0x140034811
test r12b, 0x10
je 0x14003413b
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x14003413b
test al, 0x10
jne 0x14003413b
lea rdx, str.__WMC_CopyFile:_File__S_is_not_to_be_installed_if_already_present_on_the_system.__It_was_present_and_thus_will_not_be_reinstalled._r_n
jmp 0x140034086
test r12b, 4
je 0x1400341a5
lea r8, [rbp + 0x190]
lea rdx, str.__WMC_CopyFile:_File__S_should_always_to_be_installed.__This_file_will_be_installed._r_n
mov ecx, 4
call fcn.1400168a8
cmp dword [rsp + 0x50], esi
je 0x14003416b
lea rcx, [rbp + 0x190]
call fcn.140019344
cmp r12d, 8
je 0x14003471b
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x190]
call fcn.14001923c
mov edi, dword [rsp + 0x44]
mov r13d, 1
xor r12d, r12d
test eax, eax
je 0x140034728
mov ebx, r12d
jmp 0x14003476e
lea rdx, [rsp + 0x5c]
mov dword [rsp + 0x5c], esi
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x14003436a
lea rcx, [rbp + 0x3a0]
call fcn.140017488
test eax, eax
je 0x140034708
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x3a0]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140034708
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov esi, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetFileTime]
xor edi, edi
test eax, eax
je 0x14003435f
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x14003435f
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0xac
call sub.msvcrt.dll_memset
movzx edi, word [rbp + 0x18]
lea rcx, [rbp + 0x30]
movzx r15d, word [rbp + 0x1a]
movzx eax, word [rbp + 0x1e]
mov dword [rsp + 0x40], edi
xor edi, edi
shl r15d, 0x10
mov esi, edi
or r15d, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x14003435f
mov r8d, dword [rbp + 0x30]
lea r9d, [rdi + 1]
movzx eax, r8w
neg ax
test r8d, r8d
cmovg ax, r8w
movzx ecx, ax
mov eax, 0x88888889
mul ecx
movzx eax, word [rbp + 0x20]
movzx ecx, word [rbp + 0x1e]
shr edx, 5
cmp r8d, r9d
jge 0x1400342be
add ax, dx
jmp 0x1400342d8
cmp ax, dx
jae 0x1400342d5
mov r8d, 0xffff
add cx, r8w
mov word [rbp + 0x1e], cx
add ax, 0x18
sub ax, dx
mov word [rbp + 0x20], ax
cmp ax, 0x17
jbe 0x14003431d
add cx, r9w
mov edx, 0xffe8
add ax, dx
mov word [rbp + 0x1e], cx
mov word [rbp + 0x20], ax
cmp cx, 0x20
jne 0x14003431d
movzx eax, word [rbp + 0x1a]
add ax, r9w
mov word [rbp + 0x1e], r9w
mov word [rbp + 0x1a], ax
cmp ax, 0xd
jne 0x14003431d
add word [rbp + 0x18], r9w
mov word [rbp + 0x1a], r9w
lea rdx, [rbp - 0x78]
movsd qword [rbp - 0x78], xmm6
lea rcx, [rbp + 0x18]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x14003435f
movsd xmm0, qword [rbp - 0x78]
lea rdx, [rbp + 0x18]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x14003435f
movzx r15d, word [rbp + 0x1a]
movzx ecx, word [rbp + 0x18]
movzx eax, word [rbp + 0x1e]
shl r15d, 0x10
or r15d, eax
mov dword [rsp + 0x40], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400343d3
mov rcx, rdi
call fcn.14003c460
mov rbx, rax
test rax, rax
je 0x140034708
mov r9, rax
lea rcx, [rbp + 0x3a0]
mov r8d, edi
xor edx, edx
mov esi, 0x80004005
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor edi, edi
test eax, eax
je 0x1400343cb
lea r9, [rbp - 0x68]
mov rcx, rbx
lea r8, [rbp - 0x50]
lea rdx, [0x140042140]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400343cb
mov rax, qword [rbp - 0x50]
mov esi, edi
mov ecx, dword [rax + 8]
mov r15d, dword [rax + 0xc]
mov dword [rsp + 0x40], ecx
mov rcx, rbx
call fcn.14003c408
test esi, esi
jne 0x140034706
lea rdx, [rsp + 0x5c]
mov dword [rsp + 0x5c], edi
lea rcx, [rbp + 0x190]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
jne 0x1400345a1
lea rcx, [rbp + 0x190]
call fcn.140017488
xor edi, edi
test eax, eax
je 0x1400346fa
mov qword [rsp + 0x30], rdi
lea r8d, [rsi + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x190]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400346fa
lea r9, [rbp - 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov esi, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140034596
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140034596
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0xac
call sub.msvcrt.dll_memset
movzx r14d, word [rbp + 0xa]
lea rcx, [rbp + 0xe0]
movzx eax, word [rbp + 0xe]
mov esi, edi
movzx r13d, word [rbp + 8]
shl r14d, 0x10
or r14d, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x140034596
mov r8d, dword [rbp + 0xe0]
lea r9d, [rdi + 1]
movzx eax, r8w
neg ax
test r8d, r8d
cmovg ax, r8w
movzx ecx, ax
mov eax, 0x88888889
mul ecx
movzx eax, word [rbp + 0x10]
movzx ecx, word [rbp + 0xe]
shr edx, 5
cmp r8d, r9d
jge 0x1400344f8
add ax, dx
jmp 0x140034512
cmp ax, dx
jae 0x14003450f
mov r8d, 0xffff
add cx, r8w
mov word [rbp + 0xe], cx
add ax, 0x18
sub ax, dx
mov word [rbp + 0x10], ax
cmp ax, 0x17
jbe 0x140034557
add cx, r9w
mov edx, 0xffe8
add ax, dx
mov word [rbp + 0xe], cx
mov word [rbp + 0x10], ax
cmp cx, 0x20
jne 0x140034557
movzx eax, word [rbp + 0xa]
add ax, r9w
mov word [rbp + 0xe], r9w
mov word [rbp + 0xa], ax
cmp ax, 0xd
jne 0x140034557
add word [rbp + 8], r9w
mov word [rbp + 0xa], r9w
lea rdx, [rbp - 0x70]
movsd qword [rbp - 0x70], xmm6
lea rcx, [rbp + 8]
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x140034596
movsd xmm0, qword [rbp - 0x70]
lea rdx, [rbp + 8]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140034596
movzx r14d, word [rbp + 0xa]
movzx eax, word [rbp + 0xe]
movzx r13d, word [rbp + 8]
shl r14d, 0x10
or r14d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140034607
mov rcx, rdi
call fcn.14003c460
mov rbx, rax
test rax, rax
je 0x1400346fa
mov r9, rax
lea rcx, [rbp + 0x190]
mov r8d, edi
xor edx, edx
mov esi, 0x80004005
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor edi, edi
test eax, eax
je 0x1400345ff
lea r9, [rbp - 0x64]
mov rcx, rbx
lea r8, [rbp - 0x40]
lea rdx, [0x140042140]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400345ff
mov rax, qword [rbp - 0x40]
mov esi, edi
mov r13d, dword [rax + 8]
mov r14d, dword [rax + 0xc]
mov rcx, rbx
call fcn.14003c408
test esi, esi
jne 0x1400346fa
movzx eax, r13w
mov r8, 0xffffffffffff0000
mov ecx, r13d
lea r13d, [rsi + 1]
and rcx, r8
or rcx, rax
mov eax, r14d
shr rax, 0x10
shl rcx, 0x10
or rcx, rax
movzx eax, r14w
shl rcx, 0x10
or rcx, rax
mov eax, dword [rsp + 0x40]
mov edx, eax
movzx eax, ax
and rdx, r8
or rdx, rax
mov eax, r15d
shl rdx, 0x10
shr rax, 0x10
or rdx, rax
movzx eax, r15w
shl rdx, 0x10
or rdx, rax
cmp rdx, rcx
jne 0x14003467a
mov eax, r13d
mov dword [rsp + 0x44], r13d
mov edi, r13d
jmp 0x140034688
sbb eax, eax
not eax
and eax, 2
mov edi, eax
cmp rcx, rdx
ja 0x1400346b0
test r12b, 0x40
jne 0x140034693
cmp eax, r13d
je 0x1400346b0
lea r8, [rbp + 0x3a0]
mov ecx, 4
lea rdx, str.__WMC_CopyFile:_File__S_is_newer_than_the_version_to_be_installed.__Noh
call fcn.1400168a8
jmp 0x14003409d
lea r8, [rbp + 0x190]
mov ecx, 4
lea rdx, str.__WMC_CopyFile:_File__S_is_newer_than_the_installed_version.__This_file_will_be_installed._r_n
call fcn.1400168a8
xor eax, eax
cmp dword [rsp + 0x50], eax
je 0x1400346dc
lea rcx, [rbp + 0x190]
call fcn.140019344
test r12b, 8
jne 0x140034725
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x190]
call fcn.14001923c
jmp 0x140034192
lea rdx, str.ERROR:_WMC_CopyFile:_Could_not_find_file_version_for__S.__This_file_will_not_be_copied._r_n
jmp 0x140034086
xor esi, esi
lea r8, [rbp + 0x3a0]
lea rdx, str.__WMC_CopyFile:_Could_not_find_file_version_for__S.__This_file_will_be_overwritten._r_n
jmp 0x14003414f
mov edi, dword [rsp + 0x44]
mov r13d, 1
xor r12d, r12d
lea r8, [rbp + 0x3a0]
mov ecx, 2
lea rdx, str.__WMC_CopyFile:_Could_not_replace_file__S.__This_file_will_be_replaced_on_reboot._r_n
call fcn.1400168a8
mov r9, qword [rsp + 0x78]
lea rdx, [rbp + 0x3a0]
mov r8d, dword [rsp + 0x50]
lea rcx, [rbp + 0x190]
mov dword [rsp + 0x20], r13d
call fcn.140018858
mov ebx, eax
test eax, eax
js 0x1400347d8
jne 0x1400340a3
mov r15, qword [rsp + 0x48]
lea r9, [rbp + 0x5b0]
cmp edi, r13d
lea rdx, str._Copied_file__S_to__S._r_n
mov r8, r15
mov ecx, 4
cmove ebx, r13d
call fcn.1400168a8
jmp 0x1400340a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
movzx r9d, ax
or r9d, 0x80070000
lea r8, [rbp + 0x190]
test eax, eax
lea rdx, str.ERROR:_WMC_CopyFile:_Could_not_find_source_file__S.__Error:_0x_x._r_n
cmovle r9d, eax
lea ecx, [r12 + 2]
call fcn.1400168a8
mov ebx, 0x80070002
lea r13d, [r12 + 1]
jmp 0x1400347dd
mov rdi, qword [rsp + 0x48]
lea rax, [rbp + 0x5b0]
mov dword [rsp + 0x28], ebx
lea r9, [rbp + 0x7c0]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov dword [rsp + 0x58], ebx
lea rdx, str.ERROR:_Could_not_find_file__S_at_source__S_for_dest__S:_0x_x._r_n
mov ecx, 2
call fcn.1400168a8
mov r15, qword [rsp + 0x48]
cmp ebx, r13d
jne 0x14003481b
mov dword [rsp + 0x54], r13d
mov r13d, dword [rsp + 0x60]
mov rcx, r15
call fcn.14003c408
mov r14d, dword [rsp + 0x70]
mov r15d, 1
mov esi, dword [rsp + 0x74]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x28]
call qword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x140034981
cmp r14d, esi
jbe 0x140033e11
jmp 0x140034981
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14003486a
mov word [rax], r12w
mov ecx, 0x208
call fcn.14003c460
mov rdi, rax
test rax, rax
je 0x140034963
mov ebx, 0x104
lea r8, [rbp + 0x5b0]
mov edx, ebx
mov rcx, rax
call fcn.140001470
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r15, qword [rsp + 0x48]
mov edx, ebx
mov r8, r15
mov rcx, rdi
call fcn.140001584
mov r14d, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov rcx, rdi
call fcn.140018858
mov ebx, eax
mov r8, rdi
test eax, eax
jns 0x1400348ee
mov r9d, eax
mov dword [rsp + 0x58], eax
lea rdx, str.ERROR:_Could_not_delete__S:_0x_x._r_n
lea ecx, [r14 + 1]
call fcn.1400168a8
jmp 0x1400348ff
lea rdx, str._Deleted_file__S._r_n
mov ecx, 4
call fcn.1400168a8
mov esi, dword [rsp + 0x54]
cmp ebx, r14d
mov rax, qword [rbp - 0x80]
cmove esi, r14d
mov dword [rsp + 0x54], esi
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140034956
xor edx, edx
call fcn.140026004
mov r14, rax
test rax, rax
je 0x14003493a
mov r8, rdi
mov rcx, rax
call fcn.14001a324
mov rsi, rax
jmp 0x14003493d
mov rsi, r12
test rsi, rsi
je 0x140034956
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rsi
call fcn.14003c408
mov rcx, rdi
call fcn.14003c408
jmp 0x140034820
mov r15, qword [rsp + 0x48]
jmp 0x140034820
mov r8, rsi
lea rdx, str.ERROR:_Failed_to_assign_destination_for:__S._r_n
mov ecx, 2
call fcn.1400168a8
lea rdx, [0x140043808]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_wcstok]
mov r15, qword [rbp - 0x38]
mov rsi, rax
test rax, rax
jne 0x140033b0f
mov r12d, dword [rsp + 0x58]
mov r14d, dword [rsp + 0x54]
mov rdi, qword [rbp - 0x30]
mov rcx, rdi
call fcn.14003c408
xor ecx, ecx
test ebx, ebx
js 0x1400349c1
test r12d, r12d
jne 0x1400349c4
mov r12d, ebx
mov eax, 1
cmp r12d, eax
jne 0x1400349d5
test r14d, r14d
cmovne r12d, ecx
mov eax, r12d
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.14003c810
movaps xmm6, xmmword [rsp + 0xae0]
add rsp, 0xaf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret