Function at 0x10003ac9
Capabilities:
Delete registry value
Get common file path
Get file size
Query or enumerate registry value
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
push 0x5c
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
inc eax
cmp byte [0x1000d0bd], bl
mov dword [ebp - 0xc], eax
je 0x10003bf5
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10003d22
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push 0x10009370
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 8]
mov dword [ebp - 4], 0xa28
call edi
test eax, eax
jne 0x10003b84
mov eax, dword [ebp - 4]
xor esi, esi
dec eax
je 0x10003b84
push dword [ebp - 0xc]
lea eax, [esi + 0x10009370]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10003b76
lea eax, [esi + 0x10009370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 2]
mov eax, dword [ebp - 4]
dec eax
cmp esi, eax
jb 0x10003b47
jmp 0x10003b84
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 4]
push eax
push 0x10009370
push ebx
push ebx
mov esi, str.PendingFileRenameOperations2
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0xa28
call edi
test eax, eax
jne 0x10003bde
mov eax, dword [ebp - 4]
dec eax
je 0x10003bde
push dword [ebp - 0xc]
lea edi, [ebx + 0x10009370]
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10003bd4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 2]
mov eax, dword [ebp - 4]
dec eax
cmp ebx, eax
jb 0x10003bab
jmp 0x10003bde
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003d22
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x118], bl
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x8000080
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10003d22
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x2710
jae 0x10003d19
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x10006c60
push esi
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
cmp eax, ebx
je 0x10003d19
lea edi, [edi + 0x10006c60]
cmp eax, edi
mov ecx, eax
mov dword [ebp - 0xc], ebx
je 0x10003cb7
mov dl, byte [ecx]
cmp dl, 0xa
je 0x10003cb7
cmp dl, 0xd
je 0x10003cb7
inc ecx
cmp ecx, edi
jne 0x10003ca6
sub ecx, esi
mov dword [ebp - 0x10], ecx
jmp 0x10003ccb
mov cl, byte [eax]
cmp cl, 0xa
je 0x10003cd1
cmp cl, 0xd
je 0x10003cd1
dec eax
cmp eax, esi
ja 0x10003cbe
jmp 0x10003cd6
sub eax, esi
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 8]
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call esi
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
push ecx
lea eax, [eax + 0x10006c60]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret