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

Disassembly:
push 0xffffffffffffffff
push 0x641221
mov eax, dword fs:[0]
push eax
sub esp, 0x5d4
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x5d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x5e8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5f8]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x50], 2
jne 0x41c88d
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ca5a
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push str.PendingFileRenameOperations
push eax
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x41c84e
cmp dword [esp + 0x18], 1
jbe 0x41c84e
push 0xa
lea ecx, [esp + 0x28]
call fcn.005feeb3
mov dword [esp + 0x5f0], ebx
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
call fcn.005f15c2
add esp, 4
lea edx, [esp + 0x18]
push edx
mov ebp, eax
mov eax, dword [esp + 0x20]
push ebp
push ebx
push ebx
push str.PendingFileRenameOperations
push eax
call edi
test eax, eax
jne 0x41c831
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x5f0], 1
push 0x679ee8
lea ecx, [esp + 0x18]
call fcn.0054e080
push ebx
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00402a70
add esp, 0xc
mov byte [esp + 0x5f0], 2
push eax
lea ecx, [esp + 0x18]
call fcn.0040e6c0
mov byte [esp + 0x5f0], 1
lea ecx, [esp + 0x20]
call fcn.00402570
mov edx, dword [esp + 0x14]
mov edi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x41c76e
push esi
lea ecx, [esp + 0x18]
call fcn.004020c0
mov edx, dword [esp + 0x14]
mov byte [edi + edx], 0
test esi, esi
jl 0x41c883
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x41c883
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
mov byte [esi + edx], 0
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41c7a0
sub eax, edx
lea edi, [eax + 2]
mov esi, ebp
mov edi, edi
mov eax, dword [esp + 0x14]
push edi
push eax
push esi
call fcn.00621d6d
add esp, 0xc
test eax, eax
jne 0x41c85e
push edi
push 0x20
push esi
call fcn.0061d9e0
mov ecx, ebp
sub ecx, esi
sub ecx, edi
add ecx, dword [esp + 0x24]
lea edx, [esi + edi]
push ecx
push edx
push esi
call fcn.006204c0
mov eax, dword [esp + 0x30]
sub eax, edi
mov ecx, ebp
sub ecx, esi
add ecx, eax
add esp, 0x18
cmp ecx, 2
mov dword [esp + 0x18], eax
mov ebx, 1
jge 0x41c7b0
mov byte [esp + 0x5f0], 0
lea ecx, [esp + 0x14]
call fcn.00402570
test ebx, ebx
je 0x41c831
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push ebp
push 7
push 0
push str.PendingFileRenameOperations
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebp
call fcn.005f15b7
add esp, 4
mov dword [esp + 0x5f0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.005fefa4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41ca5a
mov eax, ebp
sub eax, esi
add eax, dword [esp + 0x18]
cmp eax, 2
jb 0x41c802
push eax
push 0
push esi
call fcn.0061fad0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c802
inc esi
jmp 0x41c7b0
push 0x80070057
call fcn.00401090
push 0x400
lea edx, [esp + 0x1e8]
push 0
push edx
call fcn.0061d9e0
push esi
push 0x67a324
lea eax, [esp + 0x1f8]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x67a310]
mov ecx, dword [str._Rename__r_n]
add esp, 0x1c
mov dword [esp + 0xd8], edx
mov edi, eax
mov ax, word [0x67a314]
mov dword [esp + 0xd4], ecx
mov cl, byte [0x67a316]
push 0x104
lea edx, [esp + 0xe4]
push edx
mov word [esp + 0xe4], ax
mov byte [esp + 0xe6], cl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
je 0x41ca5a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
push ebx
push 0
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x41ca40
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x14], eax
test eax, eax
je 0x41ca39
lea edx, [esp + 0xd4]
push edx
push eax
call fcn.0061e9a0
add esp, 8
test eax, eax
je 0x41ca2e
push 0xa
push eax
call fcn.0061e8e0
mov esi, eax
inc esi
add esp, 8
cmp esi, 1
jbe 0x41ca2a
lea esp, [esp]
push edi
lea eax, [esp + 0x1e8]
push eax
push esi
call fcn.00621d6d
add esp, 0xc
test eax, eax
jne 0x41c9fb
push edi
push 0x20
push esi
call fcn.0061d9e0
mov ecx, dword [esp + 0x20]
sub ecx, esi
sub ecx, edi
add ecx, ebx
push ecx
lea edx, [esi + edi]
push edx
push esi
call fcn.006204c0
add esp, 0x18
sub ebx, edi
jmp 0x41ca1f
push 0xa
push esi
mov ebp, esi
call fcn.0061e8e0
inc eax
push 0x5b
push ebp
mov esi, eax
call fcn.0061e8e0
add esp, 0x10
cmp eax, esi
ja 0x41ca1b
test eax, eax
jne 0x41ca26
mov ebp, dword [esp + 0x1c]
cmp esi, 1
ja 0x41c9c0
jmp 0x41ca2a
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x5e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5d0]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x5e0
ret 4