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

Disassembly:
sub esp, 0x624
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0x620], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x638]
push edi
mov edi, dword [esp + 0x638]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], bl
call fcn.0044ac90
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
add esp, 0xc
cmp esi, ebx
je 0x44289c
push 0x104
lea ecx, [esp + 0x224]
push ecx
push esi
call ebp
test eax, eax
jne 0x4428a7
lea edx, [esp + 0x220]
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x442890
jmp 0x4428a7
mov dword [esp + 0x220], 0x4c554e
push 0x104
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x11c]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4428c2
mov ecx, dword [str.WININIT.INI]
mov edx, dword [0x472818]
mov dword [eax], ecx
mov ecx, dword [0x47281c]
mov dword [eax + 4], edx
mov dl, byte [0x472820]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
push 0x104
lea eax, [esp + 0x1c]
push eax
push edi
call ebp
cmp byte [esp + 0x18], bl
jne 0x442907
xor eax, eax
jmp 0x442b7f
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x11c]
push ecx
push 0x104
lea edx, [esp + 0x32c]
push edx
lea eax, [esp + 0x538]
push eax
lea ecx, [esp + 0x230]
push ecx
push str.Rename
mov byte [esp + 0x544], bl
mov byte [esp + 0x33c], bl
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x442961
call edi
push eax
push str.Get_Error___NUL___ld_n
call fcn.0043e1d0
add esp, 8
cmp esi, ebx
je 0x4429a3
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push ecx
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x442996
call edi
push eax
lea edx, [esp + 0x1c]
push edx
jmp 0x442b6e
mov dword [esp + 0x14], 1
jmp 0x442b7b
cmp byte [esp + 0x324], bl
je 0x442b42
lea eax, [esp + 0x324]
push str.KCRESVDX
push eax
call fcn.0044f010
add esp, 8
test eax, eax
jne 0x442a2f
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x328]
push edx
push str.KCRESVDX0.TMP
push str.Rename
call esi
test eax, eax
jne 0x4429ff
call edi
push eax
push str.Write_Error___KCRESVDX0.TMP___ld_n
call fcn.0043e1d0
add esp, 8
lea eax, [esp + 0x11c]
push eax
push str.KCRESVDX.TMP
lea ecx, [esp + 0x228]
push ecx
push str.Rename
call esi
test eax, eax
jne 0x442a2f
call edi
push eax
push str.Write_Error___KCRESVDX.TMP___ld_n
call fcn.0043e1d0
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 + 0x42c]
push str.KCRESVDX_d.TMP
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x11c]
push eax
push 0x104
lea ecx, [esp + 0x32c]
push ecx
lea edx, [esp + 0x538]
push edx
lea eax, [esp + 0x438]
push eax
push str.Rename
mov byte [esp + 0x544], bl
mov byte [esp + 0x33c], bl
call ebp
test eax, eax
jne 0x442aad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x42c]
push ecx
push str.Get_Error____s___ld_n
call fcn.0043e1d0
add esp, 0xc
cmp byte [esp + 0x324], bl
jne 0x442aba
mov byte [esp + 0x13], bl
inc esi
cmp byte [esp + 0x13], bl
jne 0x442a40
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x430]
push ecx
push str.Rename
call esi
test eax, eax
jne 0x442b0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x430]
push eax
push str.Write_Error____s___s___ld_n
call fcn.0043e1d0
add esp, 0x10
lea ecx, [esp + 0x11c]
push ecx
push str.KCRESVDX.TMP
lea edx, [esp + 0x228]
push edx
push str.Rename
call esi
test eax, eax
jne 0x442b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_Error___NUL__KCRESVDX.TMP___ld_n
call fcn.0043e1d0
add esp, 8
jmp 0x442b7b
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x228]
push edx
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x442b7b
call edi
push eax
lea eax, [esp + 0x1c]
push eax
push str.Error___tszShortName___s___ld_n
call fcn.0043e1d0
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ac80
add esp, 0x624
ret 0xc