Function at 0x427190
Capabilities:
Check if file exists
Copy file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x427476
cmp byte [ebx], 0
je 0x427476
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4271c6
push ebx
push ebx
call fcn.00427490
mov ebp, dword [esp + 0x12c]
mov dword [esp + 0x1c], 1
cmp ebp, edi
je 0x4271eb
cmp byte [ebp], 0
je 0x4271eb
push ebp
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootA]
mov dword [esp + 0x1c], eax
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x427222
mov eax, dword [esp + 0x10]
cmp eax, 6
jae 0x427230
xor eax, eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], eax
add eax, 0x622
push eax
call fcn.0041b540
mov edx, eax
add esp, 4
cmp edx, edi
mov dword [esp + 0x18], edx
je 0x427476
mov eax, dword [esp + 0x10]
mov edi, edx
lea ecx, [eax + 0x622]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4272ad
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x42729d
mov eax, dword [esp + 0x10]
cmp eax, 6
jae 0x4272b1
xor eax, eax
mov dword [esp + 0x14], 7
mov dword [esp + 0x10], eax
jmp 0x4272b1
mov edi, dword [esp + 0x18]
test eax, eax
mov esi, edi
je 0x4272bb
lea esi, [edi + eax - 1]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42732a
mov al, byte [ebx]
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
test al, al
je 0x4272e3
push ebx
push str.___s
push 0x104
push esi
call edi
add esp, 0x10
inc eax
jmp 0x4272eb
mov byte [esi], 0
mov eax, 1
add esi, eax
test ebp, ebp
je 0x42731b
cmp byte [ebp], 0
je 0x42731b
mov byte [esi], 0x21
mov al, byte [ebp]
inc esi
test al, al
je 0x42731b
push ebp
push str.___s
push 0x104
push esi
call edi
add esp, 0x10
inc eax
add esi, eax
jmp 0x42742d
mov eax, 1
mov byte [esi], 0
add esi, eax
jmp 0x42742d
push 0x104
lea edx, [esp + 0x24]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x20]
push ecx
push 0
push 0x464e10
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x20]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x427399
mov al, byte [esp + 0x20]
test al, al
je 0x427399
lea edx, [esp + 0x20]
push edx
push str.___s
push 0x104
push esi
call edi
add esp, 0x10
inc eax
jmp 0x4273a1
mov byte [esi], 0
mov eax, 1
add esi, eax
mov byte [esi], 0x21
inc esi
test ebp, ebp
je 0x4273c5
cmp byte [ebp], 0
je 0x4273c5
push ebp
push str.___s
push 0x104
push esi
call edi
add esp, 0x10
inc eax
jmp 0x4273cd
mov byte [esi], 0
mov eax, 1
add esi, eax
lea eax, [esp + 0x20]
test eax, eax
je 0x4273f7
mov al, byte [esp + 0x20]
test al, al
je 0x4273f7
lea ecx, [esp + 0x20]
push ecx
push str.___s
push 0x104
push esi
call edi
add esp, 0x10
inc eax
jmp 0x4273ff
mov byte [esi], 0
mov eax, 1
add esi, eax
mov byte [esi], 0
mov al, byte [ebx]
inc esi
test al, al
je 0x42741f
push ebx
push str.___s
push 0x104
push esi
call edi
add esp, 0x10
inc eax
jmp 0x427427
mov byte [esi], 0
mov eax, 1
add esi, eax
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x18]
mov byte [esi], 0
mov edx, dword [esp + 0x14]
sub esi, edi
inc esi
push esi
push edi
push edx
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov esi, eax
push edi
neg esi
sbb esi, esi
inc esi
call fcn.0041da60
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret 8