Function at 0x140033890
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 0x1400348cd
test r9d, r9d
je 0x140033925
mov rcx, rsi
call fcn.140032038
test eax, eax
jne 0x140033b3b
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.140030764
xor ecx, ecx
test eax, eax
je 0x1400348cd
mov eax, r13d
neg eax
sbb ecx, ecx
add ecx, 0x26dd
call fcn.140015b74
lea rcx, [rbp - 0x28]
call fcn.140030614
xor ecx, ecx
mov qword [rbp - 0x30], rax
mov rdi, rax
test rax, rax
je 0x1400348cd
mov r8, qword [rsi + 0x18]
test r8, r8
je 0x1400348ba
or rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], cx
jne 0x1400339ad
add rax, rax
cmp rax, 0x208
jae 0x1400348ba
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.140016868
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 0x1400348ba
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.140016868
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.140030764
test eax, eax
jne 0x140033a8a
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.140030764
test eax, eax
je 0x140034879
lea rcx, [rbp - 0x10]
call fcn.140030614
mov r15, rax
test rax, rax
je 0x140034879
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 0x140033aeb
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 0x140033b89
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 0x140033b4f
lea r8, [rsp + 0x40]
lea rdx, [0x1400420f4]
call qword [sym.imp.msvcrt.dll_swscanf]
mov eax, dword [rsp + 0x40]
jmp 0x140033b55
mov edx, 0x80004005
cmp eax, edx
jne 0x140033925
mov eax, edx
jmp 0x1400348e4
call qword [sym.imp.msvcrt.dll__wtoi]
test eax, eax
jne 0x140033b6b
mov ecx, 0x80004003
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x80004003
jmp 0x140033b7c
lea r8, [rbp + 0x5b0]
mov edx, eax
mov rcx, r12
call fcn.14002ff14
xor r12d, r12d
test eax, eax
sete r14b
test eax, eax
je 0x140033ba6
mov edx, 0x208
lea rcx, [rbp + 0x5b0]
call fcn.14002ffdc
test eax, eax
jne 0x140033ca8
lea r14d, [rax + 1]
test rdi, rdi
je 0x140033bed
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 0x140033bc6
mov edx, 0x104
lea r8, [rbp + 0x3a0]
sub rdx, rax
lea rcx, [rbp + 0x5b0]
call fcn.140001584
jmp 0x140033bf1
or rdi, 0xffffffffffffffff
test r13d, r13d
je 0x140033c80
lea r8, [rbp + 0x5b0]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140001470
test eax, eax
js 0x140033c74
lea rcx, [rbp + 0x3a0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140033c20
test rax, rax
je 0x140033c5e
cmp word [rbp + rax*2 + 0x39e], 0x5c
jne 0x140033c5e
lea rcx, [rbp + 0x3a0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140033c44
test rax, rax
je 0x140033c5e
mov word [rbp + rax*2 + 0x39e], r12w
jmp 0x140033c16
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033c74
test al, 0x10
jne 0x140033c80
lea rcx, [rbp + 0x5b0]
call fcn.140017474
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.140016868
mov rcx, r15
call fcn.14003c2b8
test r14d, r14d
je 0x140034879
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140033ce6
mov rcx, qword [rsp + 0x68]
lea r9, [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.14001b05c
jmp 0x140033ce9
mov eax, r12d
test eax, eax
je 0x14003488d
mov rcx, qword [rsp + 0x68]
mov r15d, 1
mov rdx, rsi
mov r14d, r15d
call fcn.14001aed0
mov ecx, eax
mov dword [rsp + 0x74], eax
mov esi, eax
call fcn.1400159e8
cmp esi, r15d
jb 0x14003488d
mov ecx, r14d
call fcn.140015aec
add r14d, r15d
lea rcx, [rbp - 0x28]
mov dword [rsp + 0x70], r14d
call fcn.140030614
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140034743
lea rdx, [0x140043808]
mov rcx, rax
test r13d, r13d
je 0x140034767
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 0x140033e68
mov ecx, esi
mov word [rax], r15w
lea rdi, [rax + 2]
sub ecx, 1
je 0x140033e02
sub ecx, 1
je 0x140033dfd
cmp ecx, 1
je 0x140033df0
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140033dc3
lea edx, [rcx + 6]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140033e05
cmp dword [0x1400516e0], 5
jl 0x140033e05
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 0x140033e05
mov rcx, rdi
call fcn.1400171c0
mov r12d, eax
jmp 0x140033e05
mov r14, rdi
jmp 0x140033e05
mov rbx, rdi
lea rdx, [0x140043808]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
inc esi
test rax, rax
jne 0x140033d88
xor esi, esi
mov qword [rsp + 0x78], r14
test rbx, rbx
je 0x140033e41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x140033e30
cmp rax, 2
cmovb rbx, rsi
test r14, r14
je 0x140033e61
or rax, 0xffffffffffffffff
inc rax
cmp word [r14 + rax*2], si
jne 0x140033e4a
cmp rax, 2
cmovb r14, rsi
mov qword [rsp + 0x78], r14
mov rdi, qword [rsp + 0x48]
jmp 0x140033e6a
xor esi, esi
mov rax, qword [rbp - 0x80]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140033e87
cmp dword [rax + 0x74], esi
jne 0x140033e87
bt r12d, 0x18
jb 0x140033e87
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 0x140033eea
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 0x140033f21
test al, 0x10
je 0x140033f47
test rbx, rbx
jne 0x140033f47
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 0x1400346a6
test al, 0x10
jne 0x1400346a6
bt r12d, 0xa
jae 0x140034020
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x140033f8b
test al, 0x10
je 0x140034020
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.140016868
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 0x14003471d
mov ecx, 0x208
call fcn.14003c310
mov rdi, rax
test rax, rax
je 0x14003471d
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.140024798
mov rcx, rdi
call fcn.14003c2b8
jmp 0x14003471d
test r12b, 0x10
je 0x140034047
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x140034047
test al, 0x10
jne 0x140034047
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 0x140033f92
test r12b, 4
je 0x1400340b1
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.140016868
cmp dword [rsp + 0x50], esi
je 0x140034077
lea rcx, [rbp + 0x190]
call fcn.1400192f8
cmp r12d, 8
je 0x140034627
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x190]
call fcn.1400191f0
mov edi, dword [rsp + 0x44]
mov r13d, 1
xor r12d, r12d
test eax, eax
je 0x140034634
mov ebx, r12d
jmp 0x14003467a
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 0x140034276
lea rcx, [rbp + 0x3a0]
call fcn.140017448
test eax, eax
je 0x140034614
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 0x140034614
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 0x14003426b
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x14003426b
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 0x14003426b
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 0x1400341ca
add ax, dx
jmp 0x1400341e4
cmp ax, dx
jae 0x1400341e1
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 0x140034229
add cx, r9w
mov edx, 0xffe8
add ax, dx
mov word [rbp + 0x1e], cx
mov word [rbp + 0x20], ax
cmp cx, 0x20
jne 0x140034229
movzx eax, word [rbp + 0x1a]
add ax, r9w
mov word [rbp + 0x1e], r9w
mov word [rbp + 0x1a], ax
cmp ax, 0xd
jne 0x140034229
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 0x14003426b
movsd xmm0, qword [rbp - 0x78]
lea rdx, [rbp + 0x18]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x14003426b
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 0x1400342df
mov rcx, rdi
call fcn.14003c310
mov rbx, rax
test rax, rax
je 0x140034614
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 0x1400342d7
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 0x1400342d7
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.14003c2b8
test esi, esi
jne 0x140034612
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 0x1400344ad
lea rcx, [rbp + 0x190]
call fcn.140017448
xor edi, edi
test eax, eax
je 0x140034606
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 0x140034606
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 0x1400344a2
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400344a2
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 0x1400344a2
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 0x140034404
add ax, dx
jmp 0x14003441e
cmp ax, dx
jae 0x14003441b
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 0x140034463
add cx, r9w
mov edx, 0xffe8
add ax, dx
mov word [rbp + 0xe], cx
mov word [rbp + 0x10], ax
cmp cx, 0x20
jne 0x140034463
movzx eax, word [rbp + 0xa]
add ax, r9w
mov word [rbp + 0xe], r9w
mov word [rbp + 0xa], ax
cmp ax, 0xd
jne 0x140034463
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 0x1400344a2
movsd xmm0, qword [rbp - 0x70]
lea rdx, [rbp + 8]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x1400344a2
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 0x140034513
mov rcx, rdi
call fcn.14003c310
mov rbx, rax
test rax, rax
je 0x140034606
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 0x14003450b
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 0x14003450b
mov rax, qword [rbp - 0x40]
mov esi, edi
mov r13d, dword [rax + 8]
mov r14d, dword [rax + 0xc]
mov rcx, rbx
call fcn.14003c2b8
test esi, esi
jne 0x140034606
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 0x140034586
mov eax, r13d
mov dword [rsp + 0x44], r13d
mov edi, r13d
jmp 0x140034594
sbb eax, eax
not eax
and eax, 2
mov edi, eax
cmp rcx, rdx
ja 0x1400345bc
test r12b, 0x40
jne 0x14003459f
cmp eax, r13d
je 0x1400345bc
lea r8, [rbp + 0x3a0]
mov ecx, 4
lea rdx, str.__WMC_CopyFile:_File__S_is_newer_than_the_version_to_be_installed.__No_copy_will_occur._r_n
call fcn.140016868
jmp 0x140033fa9
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.140016868
xor eax, eax
cmp dword [rsp + 0x50], eax
je 0x1400345e8
lea rcx, [rbp + 0x190]
call fcn.1400192f8
test r12b, 8
jne 0x140034631
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x190]
call fcn.1400191f0
jmp 0x14003409e
lea rdx, str.ERROR:_WMC_CopyFile:_Could_not_find_file_version_for__S.__This_file_will_not_be_copied._r_n
jmp 0x140033f92
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 0x14003405b
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.140016868
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.140018810
mov ebx, eax
test eax, eax
js 0x1400346e4
jne 0x140033faf
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.140016868
jmp 0x140033fb4
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.140016868
mov ebx, 0x80070002
lea r13d, [r12 + 1]
jmp 0x1400346e9
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.140016868
mov r15, qword [rsp + 0x48]
cmp ebx, r13d
jne 0x140034727
mov dword [rsp + 0x54], r13d
mov r13d, dword [rsp + 0x60]
mov rcx, r15
call fcn.14003c2b8
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 0x14003488d
cmp r14d, esi
jbe 0x140033d1d
jmp 0x14003488d
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x140034776
mov word [rax], r12w
mov ecx, 0x208
call fcn.14003c310
mov rdi, rax
test rax, rax
je 0x14003486f
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.140018810
mov ebx, eax
mov r8, rdi
test eax, eax
jns 0x1400347fa
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.140016868
jmp 0x14003480b
lea rdx, str._Deleted_file__S._r_n
mov ecx, 4
call fcn.140016868
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 0x140034862
xor edx, edx
call fcn.140025f9c
mov r14, rax
test rax, rax
je 0x140034846
mov r8, rdi
mov rcx, rax
call fcn.14001a2d4
mov rsi, rax
jmp 0x140034849
mov rsi, r12
test rsi, rsi
je 0x140034862
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rsi
call fcn.14003c2b8
mov rcx, rdi
call fcn.14003c2b8
jmp 0x14003472c
mov r15, qword [rsp + 0x48]
jmp 0x14003472c
mov r8, rsi
lea rdx, str.ERROR:_Failed_to_assign_destination_for:__S._r_n
mov ecx, 2
call fcn.140016868
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 0x140033a1b
mov r12d, dword [rsp + 0x58]
mov r14d, dword [rsp + 0x54]
mov rdi, qword [rbp - 0x30]
mov rcx, rdi
call fcn.14003c2b8
xor ecx, ecx
test ebx, ebx
js 0x1400348cd
test r12d, r12d
jne 0x1400348d0
mov r12d, ebx
mov eax, 1
cmp r12d, eax
jne 0x1400348e1
test r14d, r14d
cmovne r12d, ecx
mov eax, r12d
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.14003c6c0
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