Function at 0x466280
Capabilities:
Check if file exists
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a09fb
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x670], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
push ecx
mov dword [ebp - 0x664], eax
lea ecx, [ebp - 0x660]
mov eax, dword [ebp + 0xc]
push str.InstallVitualChannel::CopySMModule
mov dword [ebp - 0x66c], eax
mov dword [ebp - 0x67c], esi
mov dword [ebp - 0x680], edi
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46637b
test byte [ecx + 0x1c], 1
je 0x466339
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x20
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x46637b
test byte [ecx + 0x1c], 1
je 0x46637b
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edi, dword [ebp - 0x664]
push ebx
push esi
push dword [ebp - 0x66c]
push edi
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.004656f0
add esp, 0x20
jmp 0x466381
mov edi, dword [ebp - 0x664]
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x668], 0
push 0
push eax
mov dword [ebp - 0x678], 1
mov dword [ebp - 0x674], 0x104
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0x24
lea eax, [ebp - 0x628]
mov esi, 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x628]
push 0x5c692c
push eax
call edi
push dword [ebp - 0x66c]
lea eax, [ebp - 0x628]
push eax
call edi
lea eax, [ebp - 0x668]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4665d5
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x678]
push eax
push 0
push dword [ebp - 0x67c]
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4665c1
push ebx
lea eax, [ebp - 0x420]
push eax
call edi
push dword [ebp - 0x680]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c692c
lea eax, [ebp - 0x218]
push eax
call edi
push ebx
lea eax, [ebp - 0x218]
push eax
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, esi
je 0x466509
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4664f0
test byte [ecx + 0x1c], 4
je 0x4664f0
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [esi + 0x21]
call fcn.00401840
add esp, 0xc
push dword [ebp - 0x668]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x608f30]
jmp 0x46661d
lea eax, [ebp - 0x420]
push eax
call edi
mov edi, dword [ebp - 0x670]
test eax, eax
je 0x46653a
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00465a40
cmp eax, 1
jne 0x4665c1
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4665c1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x466594
test byte [ecx + 0x1c], 4
je 0x466594
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.00401840
add esp, 0xc
lea eax, [ebp - 0x420]
mov ecx, edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00465c40
mov ecx, dword [0x6184f0]
push 0x5c7da0
push str.RebootYesNo
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
push dword [ebp - 0x668]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x608f30]
jmp 0x46661d
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x46661b
test byte [ecx + 0x1c], 4
je 0x46661b
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5ce63c
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x24
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
xor esi, esi
mov byte [ebp - 0x65c], 1
cmp ecx, 0x608f30
je 0x46665f
test byte [ecx + 0x1c], 1
je 0x46665f
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5ce63c
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x25
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x660]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x14