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

Disassembly:
mov eax, 0x468952
call fcn.004571ec
sub esp, 0x174
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 0x45215b
xor eax, eax
jmp 0x452163
lea ecx, [ebp + 0x30]
call fcn.00405599
push 5
push eax
lea ecx, [ebp + 8]
call fcn.00405599
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp eax, edi
jne 0x4524c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4524a1
cmp dword [ebp + 0x3c], edi
jne 0x4521a3
push 0x4824a8
lea ecx, [ebp + 0x30]
call fcn.00404bc1
jmp 0x45226c
lea eax, [ebp - 0xd4]
lea ecx, [ebp + 0x30]
push eax
call fcn.00417f37
mov esi, eax
lea eax, [ebp - 0x138]
lea ecx, [ebp + 0x30]
push eax
mov byte [ebp - 4], 2
call fcn.00417e3f
push edi
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 0x469494
mov dword [ebp - 0x30], 0x46948c
call fcn.00404b2e
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x50]
push eax
mov byte [ebp - 4], 4
call fcn.00420142
push esi
push eax
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 5
push eax
call fcn.00418763
add esp, 0xc
push dword [0x46950c]
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.00405665
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 5
call fcn.004060f2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.004060f2
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.004060f2
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.004060f2
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.004060f2
lea eax, [ebp + 0x30]
push ebx
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404b2e
mov esi, 0x47e6a8
mov byte [ebp - 4], 7
push esi
call fcn.00456df6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.00406094
lea eax, [ebp - 0x78]
lea ecx, [ebp + 8]
push eax
call fcn.00420142
push dword [0x46950c]
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.00411a14
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.004060f2
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.00457805
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.0041ddf5
add esp, 0xc
push str.WININIT.INI
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xb
push eax
call fcn.0040614f
add esp, 0xc
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.004060f2
lea ecx, [ebp - 0xdc]
call fcn.004162da
push edi
push edi
push ebx
push 0x80
push ebx
lea eax, [ebp - 0x50]
push 0x80000000
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xe
call fcn.00416698
lea ecx, [ebp - 0xdc]
call fcn.0041637e
lea eax, [ebp - 0x50]
push eax
call fcn.004520fa
pop ecx
and al, 0xfe
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.004289dc
pop ecx
mov dword [ebp - 0xdc], 0x469ce8
pop ecx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xf
call fcn.0041637e
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xd
call fcn.004060f2
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.004060f2
jmp 0x4523bc
mov ebx, 0x47e6b4
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 0x45243a
mov eax, dword [ebp - 0x18]
add eax, eax
test eax, eax
mov dword [ebp - 0x18], eax
je 0x45243a
push eax
call fcn.00457805
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.0041f494
cmp byte [ebp - 0x28], 0
je 0x452420
push dword [ebp - 0x24]
call fcn.00451b84
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 0x4523e3
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x14], eax
call fcn.00405599
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 0x45248b
push dword [ebp - 0x1c]
call fcn.00451b84
pop ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 1
call fcn.004060f2
test esi, esi
jne 0x4524c2
push 1
pop ebx
lea eax, [ebp + 0x30]
push ebx
push eax
lea ecx, [ebp - 0x180]
call fcn.004082db
lea eax, [ebp - 0x180]
push 0x46d3b8
push eax
call fcn.00457c2c
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004060f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.004060f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret