Function at 0x100024a0
Capabilities:
Copy file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x364
xor eax, eax
mov dword [esp + 4], eax
push ebx
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x268]
push edi
mov dword [esp + 0xc], eax
push ebp
mov dword [esp + 0x18], eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x270]
mov edi, dword [esp + 0x378]
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call ebx
test eax, eax
je 0x1000251c
lea eax, [esp + 0x270]
push 0x104
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call esi
lea ecx, [esp + 0x270]
push ecx
push edi
call ebx
test eax, eax
je 0x10002522
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x364
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [esp + 0x37c]
lea eax, [esp + 0x270]
push ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1000a0a4
push edi
push eax
call ebp
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebp
push eax
call ebp
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x270]
push eax
push ecx
push edx
mov edi, 0x1000a0a4
call fcn.100012c0
lea ecx, [esp + 0x178]
add esp, 0xc
push 0x104
push ecx
call esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x16c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.sysbckup
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x16c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1000a0a4
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x16c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x170]
push eax
call ebp
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
lea eax, [esp + 0x16c]
push ecx
push edx
push eax
call fcn.100012c0
lea ecx, [esp + 0x38]
lea edx, [esp + 0x178]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ecx
push edx
call edi
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x44]
push eax
call ebp
lea eax, [esp + 0x40]
lea ecx, [esp + 0x24]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ecx + 4], eax
call esi
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x270]
push ecx
push eax
call edi
mov edi, eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x44]
push ecx
call ebp
push edi
call esi
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], ecx
ja 0x100026bb
jne 0x1000274d
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x18], eax
jb 0x1000274d
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x28], eax
jne 0x100026cf
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x40], eax
je 0x1000274d
lea eax, [esp + 0x16c]
push 0
lea ecx, [esp + 0x274]
push eax
push ecx
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
call ebp
lea ecx, [esp + 0x1c]
push ecx
push str.SystemCurrentControlSetcontrolSessionManagerCheckVerDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000274d
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x14], 0
push 0
push ecx
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10002742
lea eax, [esp + 0x2c]
push 0x140
mov ecx, dword [esp + 0x20]
push eax
push 3
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x364
ret