Function at 0x41c640
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6395e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5d4
push ebx
push ebp
push esi
lea eax, [esp + 0x48]
push edi
push eax
mov dword [esp + 0x50], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x5c], 2
jne 0x41c876
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
push 0xf003f
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ca38
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
push edi
push edi
push edi
push str.PendingFileRenameOperations
push eax
call esi
test eax, eax
jne 0x41c866
cmp dword [esp + 0x10], 1
jbe 0x41c866
push 0xa
lea ecx, [esp + 0x34]
call fcn.0062129b
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5ec], edi
inc ecx
mov dword [esp + 0x1c], edi
push ecx
call fcn.00622acb
add esp, 4
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x14]
push edx
push ebx
push edi
push edi
push str.PendingFileRenameOperations
push eax
call esi
test eax, eax
jne 0x41c849
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x18], ecx
push 0x6cae90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5f0], 1
call fcn.00622f13
mov edx, dword [esp + 0x5f4]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00402850
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5f0], 2
call fcn.006230c8
lea ecx, [esp + 0x20]
mov byte [esp + 0x5ec], 1
call fcn.00622d8a
push edi
lea ecx, [esp + 0x1c]
call fcn.006230b3
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
add ebp, 2
mov ecx, dword [esp + 0x18]
push ebp
push ecx
push esi
call fcn.0060bf70
add esp, 0xc
test eax, eax
jne 0x41c7ef
mov ecx, ebp
mov eax, 0x20202020
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
lea ecx, [esi + ebp]
sub eax, ebp
add eax, edx
push eax
push ecx
push esi
call fcn.0060ac20
mov eax, dword [esp + 0x1c]
mov edx, ebx
sub eax, ebp
sub edx, esi
add edx, eax
add esp, 0xc
cmp edx, 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 1
jl 0x41c816
jmp 0x41c78c
mov edx, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
add eax, edx
cmp eax, 2
jb 0x41c816
push eax
push 0
push esi
call fcn.0060ab70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c816
inc esi
jmp 0x41c78c
lea ecx, [esp + 0x18]
mov byte [esp + 0x5ec], 0
call fcn.00622d8a
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41c849
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push 7
push 0
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.00622af4
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x5ec], 0xffffffff
call fcn.0062130f
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41ca38
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1e4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x5f4]
lea ecx, [esp + 0x1e4]
push eax
push 0x6cba88
push str._hs_hs_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [str._Rename__r_n]
mov cx, word [0x6cba78]
mov ebx, eax
mov eax, dword [0x6cba74]
add esp, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dl, byte [0x6cba7a]
lea eax, [esp + 0xe0]
push 0x104
push eax
mov word [esp + 0x34], cx
mov byte [esp + 0x36], dl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xe0]
push str.WinInit.Ini
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
lea edx, [esp + 0xf4]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
je 0x41ca38
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push 0
push ebp
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
je 0x41ca1e
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x14], eax
je 0x41ca17
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x41ca0c
push 0xa
push eax
call fcn.00609c00
mov esi, eax
add esp, 8
inc esi
cmp esi, 1
jbe 0x41ca08
lea edx, [esp + 0x1e4]
push ebx
push edx
push esi
call fcn.0060bf70
add esp, 0xc
test eax, eax
jne 0x41c9df
mov ecx, ebx
mov eax, 0x20202020
mov edx, ecx
mov edi, esi
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 + 0x14]
lea ecx, [esi + ebx]
sub eax, esi
sub eax, ebx
add eax, ebp
push eax
push ecx
push esi
call fcn.0060ac20
add esp, 0xc
sub ebp, ebx
jmp 0x41c9ff
push 0xa
push esi
mov edi, esi
call fcn.00609c00
inc eax
push 0x5b
push edi
mov esi, eax
call fcn.00609c00
add esp, 0x10
cmp eax, esi
ja 0x41c9ff
test eax, eax
jne 0x41ca04
cmp esi, 1
ja 0x41c996
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x5e4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5e0
ret 4