Function at 0x40faab
Capabilities:
Move file
Read .ini file

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x4258b6
call fcn.004121ac
mov eax, 0x10190
call fcn.00412870
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40fb0a
push 5
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40fd1e
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0040f289
push 0x42df08
lea eax, [ebp - 0xf4]
push eax
call fcn.00411180
push edi
push str.wininit.ini
push 0x7fff
lea eax, [ebp - 0x1019c]
push eax
mov edi, str.rename
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp + 0x54], eax
cmp eax, 0x7ffd
je 0x40fd1d
push ebx
push dword [ebp + 0x60]
lea eax, [ebp - 0x28]
push eax
call fcn.0040f57a
pop ecx
pop ecx
xor ebx, ebx
push 0x429cf0
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.0040590a
mov byte [ebp - 4], 1
cmp dword [ebp + 0x64], ebx
je 0x40fc63
push dword [ebp + 0x64]
lea ecx, [ebp - 0x148]
call fcn.0040fa6a
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 2
call fcn.0040f680
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040f6e6
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 4
call fcn.0040f61a
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0040f964
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.0040f698
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 7
call fcn.0040f705
push ebx
push 1
lea ecx, [ebp - 0xb8]
call fcn.0040394b
lea ecx, [ebp - 0x60]
call fcn.0040414b
push ebx
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040394b
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.0040394b
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xd
call fcn.0040414b
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040f85f
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00404a70
push ebx
push 1
lea ecx, [ebp]
call fcn.0040394b
lea ecx, [ebp - 0x19c]
call fcn.0040f3e2
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 1
call fcn.0040f3e2
push 0x429cec
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp]
push eax
call fcn.0040f8d0
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040f4bb
add esp, 0x18
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 0x11
call fcn.0040394b
cmp dword [ebp + 0x50], 0x10
mov edx, dword [ebp + 0x3c]
jae 0x40fca5
lea edx, [ebp + 0x3c]
mov ecx, dword [ebp + 0x54]
lea ecx, [ebp + ecx - 0x1019c]
mov al, byte [edx]
inc edx
mov byte [ecx], al
inc ecx
cmp al, bl
jne 0x40fcaf
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x54]
add eax, ecx
mov byte [ebp + eax - 0x1019b], bl
push str.wininit.ini
lea eax, [ebp - 0x1019c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push ebx
test eax, eax
jne 0x40fcfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040f289
push 0x42df08
lea eax, [ebp - 0x64]
jmp 0x40fb04
push 1
lea ecx, [ebp + 0x38]
call fcn.0040394b
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040394b
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040394b
pop ebx
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
add ebp, 0x58
leave
ret