Function at 0x10006f90
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x51c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x52c]
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x14]
dec eax
xor ebx, ebx
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x10006fc6
mov ecx, dword [str.WININIT.INI]
mov edx, dword [0x10014e08]
mov dword [eax], ecx
mov ecx, dword [0x10014e0c]
mov dword [eax + 4], edx
mov dl, byte [0x10014e10]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
push 0x104
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
push ecx
push 0x104
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x430]
push eax
push 0x10015348
push str.Rename
mov byte [esp + 0x43c], bl
mov byte [esp + 0x130], bl
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007059
call edi
push eax
push str.Get_Error___NUL___ld_n
call fcn.100010f0
add esp, 8
cmp byte [esp + 0x118], bl
je 0x100071e8
lea ecx, [esp + 0x118]
push str.KCRESVDX
push ecx
call fcn.10009959
add esp, 8
test eax, eax
jne 0x100070dc
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push eax
push str.KCRESVDX0.TMP
push str.Rename
call esi
test eax, eax
jne 0x100070b2
call edi
push eax
push str.Write_Error___KCRESVDX0.TMP___ld_n
call fcn.100010f0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push str.KCRESVDX.TMP
push 0x10015348
push str.Rename
call esi
test eax, eax
jne 0x100070dc
call edi
push eax
push str.Write_Error___KCRESVDX.TMP___ld_n
call fcn.100010f0
add esp, 8
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov byte [esp + 0x13], 1
xor esi, esi
lea esp, [esp]
push esi
lea edx, [esp + 0x324]
push str.KCRESVDX_d.TMP
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x104
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x430]
push edx
lea eax, [esp + 0x330]
push eax
push str.Rename
mov byte [esp + 0x43c], bl
mov byte [esp + 0x130], bl
call ebp
test eax, eax
jne 0x1000715a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x324]
push ecx
push str.Get_Error____s___ld_n
call fcn.100010f0
add esp, 0xc
cmp byte [esp + 0x118], bl
jne 0x10007167
mov byte [esp + 0x13], bl
inc esi
cmp byte [esp + 0x13], bl
jne 0x100070f0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x328]
push ecx
push str.Rename
call esi
test eax, eax
jne 0x100071b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x328]
push eax
push str.Write_Error____s___s___ld_n
call fcn.100010f0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push str.KCRESVDX.TMP
push 0x10015348
push str.Rename
call esi
test eax, eax
jne 0x10007221
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_Error___NUL__KCRESVDX.TMP___ld_n
call fcn.100010f0
add esp, 8
jmp 0x10007221
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x220]
push eax
push 0x10015348
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x10007221
call edi
push eax
lea ecx, [esp + 0x220]
push ecx
push str.Error___NUL___s___ld_n
call fcn.100010f0
add esp, 0xc
mov ecx, dword [esp + 0x528]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10007cb4
add esp, 0x51c
ret 0xc