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

Disassembly:
push 0xffffffffffffffff
push 0x59a6a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5d0
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
push eax
mov dword [esp + 0x4c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x58], 2
jne 0x410b74
lea ecx, [esp + 0x18]
xor edi, edi
push ecx
push 0xf003f
push edi
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410d36
mov eax, dword [esp + 0x18]
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 0x410d36
cmp dword [esp + 0x10], 1
jbe 0x410d36
push 0xa
lea ecx, [esp + 0x30]
call fcn.0058322c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5e8], edi
inc ecx
mov dword [esp + 0x1c], edi
push ecx
call fcn.00584a5c
add esp, 4
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x18]
push edx
push ebx
push edi
push edi
push str.PendingFileRenameOperations
push eax
call esi
test eax, eax
jne 0x410b52
mov ecx, dword [0x65ec1c]
mov dword [esp + 0x14], ecx
push 0x63aa28
lea ecx, [esp + 0x18]
mov byte [esp + 0x5ec], 1
call fcn.00588849
mov edx, dword [esp + 0x5f0]
lea ecx, [esp + 0x14]
push edx
call fcn.00588a36
push edi
lea ecx, [esp + 0x18]
call fcn.00588a5d
mov edi, dword [esp + 0x14]
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 eax, dword [esp + 0x14]
push ebp
push eax
push esi
call fcn.0056e7e0
add esp, 0xc
test eax, eax
jne 0x410af8
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.0056d4c0
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 0x410b1f
jmp 0x410a95
mov edx, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
add eax, edx
cmp eax, 2
jb 0x410b1f
push eax
push 0
push esi
call fcn.0056d410
mov esi, eax
add esp, 0xc
test esi, esi
je 0x410b1f
inc esi
jmp 0x410a95
lea ecx, [esp + 0x14]
mov byte [esp + 0x5e8], 0
call fcn.005886c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410b52
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push 7
push 0
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.00584a85
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5e8], 0xffffffff
call fcn.005832a0
jmp 0x410d36
mov edx, dword [esp + 0x5f0]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x1e0]
rep stosd dword es:[edi], eax
push edx
push 0x63aa24
lea eax, [esp + 0x1e8]
push str._hs_hs_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x63aa10]
mov ecx, dword [str._Rename__r_n]
add esp, 0x10
mov dword [esp + 0x24], edx
mov ebx, eax
mov ax, word [0x63aa14]
mov dword [esp + 0x20], ecx
mov cl, byte [0x63aa16]
lea edx, [esp + 0xdc]
push 0x104
push edx
mov word [esp + 0x30], ax
mov byte [esp + 0x32], cl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xdc]
push str.WinInit.Ini
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
lea ecx, [esp + 0xf0]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x410d36
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 0x410d1c
push 0
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x18], eax
je 0x410d15
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0056c6b0
add esp, 8
test eax, eax
je 0x410d0a
push 0xa
push eax
call fcn.0056c5f0
mov esi, eax
add esp, 8
inc esi
cmp esi, 1
jbe 0x410d06
lea eax, [esp + 0x1e0]
push ebx
push eax
push esi
call fcn.0056e7e0
add esp, 0xc
test eax, eax
jne 0x410cdd
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 + 0x18]
lea ecx, [esi + ebx]
sub eax, esi
sub eax, ebx
add eax, ebp
push eax
push ecx
push esi
call fcn.0056d4c0
add esp, 0xc
sub ebp, ebx
jmp 0x410cfd
push 0xa
push esi
mov edi, esi
call fcn.0056c5f0
inc eax
push 0x5b
push edi
mov esi, eax
call fcn.0056c5f0
add esp, 0x10
cmp eax, esi
ja 0x410cfd
test eax, eax
jne 0x410d02
cmp esi, 1
ja 0x410c94
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
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 + 0x5e0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5dc
ret 4