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

Disassembly:
mov eax, 0x4690f4
call fcn.0045962c
sub esp, 0x16c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
cmp dword [ebp + 0x3c], edi
push 1
pop ebx
mov dword [ebp - 4], ebx
jne 0x4580a6
xor eax, eax
jmp 0x4580ae
lea ecx, [ebp + 0x30]
call fcn.004171f3
push 5
push eax
lea ecx, [ebp + 8]
call fcn.004171f3
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp eax, edi
jne 0x4583ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x45838a
cmp dword [ebp + 0x3c], edi
jne 0x4580ee
push 0x482d34
lea ecx, [ebp + 0x30]
call fcn.00416ee0
jmp 0x4581b7
lea eax, [ebp - 0x130]
lea ecx, [ebp + 0x30]
push eax
call fcn.00423dc9
mov esi, eax
lea eax, [ebp - 0xfc]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00417daa
push edi
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 0x46ab58
mov dword [ebp - 0x30], 0x46ab50
call fcn.00408cc3
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x50]
push eax
mov byte [ebp - 4], 4
call fcn.00443774
push esi
push eax
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 5
push eax
call fcn.00429b9d
add esp, 0xc
push dword [0x46a91c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 6
neg ecx
sbb ecx, ecx
push edi
and ecx, eax
push ecx
lea ecx, [ebp + 0x34]
call fcn.004091d7
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.0040bf10
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0040bf10
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.0040bf10
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.0040bf10
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
call fcn.0040bf10
lea eax, [ebp + 0x30]
push ebx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00408cc3
mov esi, 0x48216c
mov byte [ebp - 4], 7
push esi
call fcn.00459758
pop ecx
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.004180ec
lea eax, [ebp - 0x78]
lea ecx, [ebp + 8]
push eax
call fcn.00443774
push dword [0x46a91c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 8
neg ecx
sbb ecx, ecx
push edi
and ecx, eax
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00429e4b
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.0040bf10
mov eax, dword [ebp - 0x94]
mov esi, 0x1fff
push esi
mov dword [ebp - 0x18], esi
lea eax, [eax + eax + 1]
mov dword [ebp - 0x14], eax
call fcn.004597af
cmp eax, edi
mov dword [ebp - 0x1c], eax
setne cl
mov byte [ebp - 0x20], cl
lea eax, [ebp - 0x78]
push edi
push eax
mov byte [ebp - 4], 0xa
call fcn.0042c0e2
add esp, 0xc
push str.WININIT.INI
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xb
push eax
call fcn.00429f47
add esp, 0xc
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.0040bf10
lea eax, [ebp - 0x50]
push eax
call fcn.004486b2
pop ecx
and al, 0xfe
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004486e9
pop ecx
mov byte [ebp - 4], 0xa
pop ecx
lea ecx, [ebp - 0x50]
call fcn.0040bf10
jmp 0x4582a8
mov ebx, 0x482d10
mov edi, str.rename
push ebx
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 4], 9
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
mov eax, 0x1ffd
sub eax, dword [ebp - 0x14]
cmp eax, esi
jg 0x458326
mov eax, dword [ebp - 0x18]
add eax, eax
test eax, eax
mov dword [ebp - 0x18], eax
je 0x458326
push eax
call fcn.004597af
pop ecx
mov dword [ebp - 0x24], eax
test eax, eax
setne cl
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], cl
push eax
lea ecx, [ebp - 0x20]
call fcn.004424cc
cmp byte [ebp - 0x28], 0
je 0x45830c
push dword [ebp - 0x24]
call fcn.004523d5
pop ecx
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
dec eax
dec eax
jmp 0x4582cf
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x14], eax
call fcn.004171f3
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp - 0x14]
push ebx
and byte [eax + esi + 1], 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
cmp byte [ebp - 0x20], 0
mov esi, eax
je 0x458377
push dword [ebp - 0x1c]
call fcn.004523d5
pop ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.0040bf10
test esi, esi
jne 0x4583ac
lea eax, [ebp + 0x30]
push 1
push eax
lea ecx, [ebp - 0x178]
call fcn.004190f4
lea eax, [ebp - 0x178]
push 0x471ea8
push eax
call fcn.00459775
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040bf10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.0040bf10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret