Function at 0x459de0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d52f6
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa8], ebx
call fcn.004afb70
mov edx, ebx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004afb70
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x459ecf
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
push 1
cmovae esi, dword [ebp - 0x58]
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push esi
cmovae edi, dword [ebp - 0x40]
push edi
call ebx
test eax, eax
jne 0x459ecf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
push esi
push edi
push 0x50e2cc
push str._s_nold:_s_nnew:_s
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a9b80
add esp, 0x18
lea ecx, [ebp - 0x70]
call fcn.00428650
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x565cc0
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.00428650
lea ecx, [ebp - 0x58]
call fcn.00428650
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00428650
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x28]
call fcn.004afd30
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 3
call fcn.004afd30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x459f97
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
push 1
cmovae esi, dword [ebp - 0x58]
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae edi, dword [ebp - 0x28]
push edi
call ebx
test eax, eax
jne 0x459f97
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
push esi
push edi
push 0x50e2cc
push str._s_nold:_s_nnew:_s
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a9b80
add esp, 0x18
lea ecx, [ebp - 0x70]
call fcn.00428650
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
mov ecx, 0x565cc0
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.00428650
lea ecx, [ebp - 0x58]
call fcn.00428650
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00428650
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x28]
call fcn.004afe10
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 6
call fcn.004afe10
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45a05f
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
push 1
cmovae esi, dword [ebp - 0x58]
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae edi, dword [ebp - 0x28]
push edi
call ebx
test eax, eax
jne 0x45a05f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
push esi
push edi
push 0x50e2cc
push str._s_nold:_s_nnew:_s
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a9b80
add esp, 0x18
lea ecx, [ebp - 0x70]
call fcn.00428650
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
mov ecx, 0x565cc0
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.00428650
lea ecx, [ebp - 0x58]
call fcn.00428650
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00428650
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa0]
call fcn.004afef0
mov edx, dword [ebp - 0xa8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 9
call fcn.004afef0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x45a159
cmp dword [ebp - 0x5c], 0x10
lea esi, [ebp - 0x70]
push 1
cmovae esi, dword [ebp - 0x70]
lea edi, [ebp - 0xa0]
cmp dword [ebp - 0x8c], 0x10
push esi
cmovae edi, dword [ebp - 0xa0]
push edi
call ebx
test eax, eax
jne 0x45a159
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], al
push esi
push edi
push 0x50e2cc
push str._s_nold:_s_nnew:_s
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004a9b80
add esp, 0x18
lea ecx, [ebp - 0xc0]
call fcn.00428650
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
push 0
cmovae eax, dword [ebp - 0x88]
mov ecx, 0x565cc0
push eax
mov eax, dword [0x565cc0]
call dword [eax + 4]
lea ecx, [ebp - 0x88]
call fcn.00428650
lea ecx, [ebp - 0x70]
call fcn.00428650
lea ecx, [ebp - 0xa0]
call fcn.00428650
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 8