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

Disassembly:
push 0xdc
mov eax, 0x447a93
call fcn.00431dc6
mov eax, dword [ebp + 8]
mov ebx, edx
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd0], eax
je 0x40692c
cmp eax, edi
je 0x40692c
cmp dword [ebp + 0xc], edi
jne 0x406b91
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b91
cmp dword [esi + 0x30], edi
je 0x40692c
mov eax, ebx
lea ecx, [ebp - 0xc4]
call fcn.00401c6e
inc edi
lea eax, [ebp - 0xc4]
lea esi, [ebp - 0x8c]
mov dword [ebp - 4], edi
call fcn.00401c8a
push str..ex_1
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.00401cb3
mov dword [ebp - 0xc8], edi
mov edi, str..ex__d
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x88]
jae 0x40687e
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4068d8
push 0xffffffffffffffff
lea eax, [ebp - 0xc4]
push eax
xor ebx, ebx
lea eax, [ebp - 0x8c]
call fcn.00402089
inc dword [ebp - 0xc8]
push dword [ebp - 0xc8]
lea eax, [ebp - 0x30]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xd4]
add esp, 0xc
lea esi, [ebp - 0x8c]
call fcn.0040210f
lea eax, [ebp - 0x30]
push eax
mov eax, esi
push eax
call fcn.00401cb3
jmp 0x40686c
mov eax, dword [ebp - 0xc0]
xor esi, esi
cmp dword [ebp - 0xac], 8
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xe4], esi
jae 0x4068fb
lea eax, [ebp - 0xc0]
cmp eax, esi
je 0x40690f
push eax
lea ebx, [ebp - 0xe8]
call fcn.004071bc
cmp eax, esi
jne 0x406936
push esi
push 1
lea esi, [ebp - 0x8c]
call fcn.004022b6
push 0
lea esi, [ebp - 0xc4]
push 1
call fcn.004022b6
xor eax, eax
call fcn.00431e49
ret 8
push dword [ebp - 0xd0]
lea ebx, [ebp - 0xe0]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
call fcn.004071bc
cmp eax, esi
je 0x40690f
mov eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xdc]
adc ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe4], ecx
js 0x406b65
jg 0x406988
cmp eax, 0x73333300
jbe 0x406b65
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xa8]
call fcn.00401c6e
inc dword [ebp - 0xc8]
push dword [ebp - 0xc8]
lea eax, [ebp - 0x70]
push edi
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00401cb3
mov dword [ebp - 0xdc], 1
cmp dword [ebp - 0x90], 8
mov eax, dword [ebp - 0xa4]
jae 0x4069e6
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406ab4
cmp dword [ebp - 0x90], 8
mov ebx, dword [ebp - 0xa4]
jae 0x406a0a
lea ebx, [ebp - 0xa4]
mov ecx, dword [ebp - 0xcc]
call fcn.00407327
test eax, eax
jne 0x406a21
cmp dword [ebp - 0xdc], esi
jne 0x406a65
mov eax, dword [ebp - 0xd4]
inc dword [ebp - 0xc8]
mov dword [ebp - 0xdc], esi
lea esi, [ebp - 0xa8]
call fcn.0040210f
push dword [ebp - 0xc8]
lea eax, [ebp - 0x50]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov eax, esi
push eax
call fcn.00401cb3
xor esi, esi
jmp 0x4069d1
cmp dword [ebp - 0x90], 8
mov eax, dword [ebp - 0xa4]
jae 0x406a7a
lea eax, [ebp - 0xa4]
mov esi, dword [ebp - 0xcc]
push eax
push str.delete_file_failed__s.
push 2
call fcn.00409217
add esp, 0xc
xor edi, edi
push edi
push 1
lea esi, [ebp - 0xa8]
call fcn.004022b6
push edi
push 1
lea esi, [ebp - 0x8c]
call fcn.004022b6
push edi
jmp 0x40691f
cmp dword [ebp - 0x74], 8
mov ebx, dword [ebp - 0x88]
jae 0x406ac6
lea ebx, [ebp - 0x88]
mov esi, dword [ebp - 0xcc]
mov ecx, esi
call fcn.00407327
cmp dword [ebp - 0x74], 8
mov ecx, dword [ebp - 0x88]
jae 0x406ae5
lea ecx, [ebp - 0x88]
push esi
call fcn.00406d83
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x88]
jae 0x406afd
lea eax, [ebp - 0x88]
xor edi, edi
inc edi
push edi
push eax
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406b3c
cmp dword [ebp - 0x74], 8
mov eax, dword [ebp - 0x88]
jae 0x406b24
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0xd0]
push str.move_file_failed__s_to__s.
push 2
call fcn.00409217
add esp, 0x10
xor edi, edi
push 0
push 1
lea esi, [ebp - 0xa8]
call fcn.004022b6
push 0
push 1
lea esi, [ebp - 0x8c]
call fcn.004022b6
lea esi, [ebp - 0xc4]
jmp 0x406cac
cmp dword [ebp - 0xac], 8
mov eax, dword [ebp - 0xc0]
jae 0x406b7a
lea eax, [ebp - 0xc0]
push dword [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xcc]
call dword [eax + 0x30]
pop ecx
pop ecx
mov edi, eax
push esi
jmp 0x406b4d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406bbc
mov ecx, esi
call fcn.00407327
test eax, eax
jne 0x406bbc
push ebx
push str.delete_file_failed__s.
push 2
call fcn.00409217
add esp, 0xc
jmp 0x40692c
mov eax, ebx
lea ecx, [ebp - 0x2c]
call fcn.00401c6e
push str..ex_1
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], edi
call fcn.00401cb3
mov dword [ebp - 0xc8], 1
mov edi, str..ex__d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x406bf2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406c61
cmp dword [ebp - 0x14], 8
mov ebx, dword [ebp - 0x28]
jae 0x406c09
lea ebx, [ebp - 0x28]
mov ecx, dword [ebp - 0xcc]
call fcn.00407327
test eax, eax
jne 0x406c21
cmp dword [ebp - 0xc8], 1
je 0x406c57
mov eax, dword [ebp - 0xd4]
inc dword [ebp - 0xc8]
lea esi, [ebp - 0x2c]
call fcn.0040210f
push dword [ebp - 0xc8]
lea eax, [ebp - 0x50]
push edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov eax, esi
push eax
call fcn.00401cb3
jmp 0x406be6
push 0
lea esi, [ebp - 0x2c]
jmp 0x406925
mov esi, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xd4]
mov ecx, esi
call fcn.00407327
push esi
mov ecx, ebx
call fcn.00406d83
xor edi, edi
inc edi
push edi
push ebx
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406ca9
push ebx
push dword [ebp - 0xd0]
push str.move_file_failed__s_to__s.
push 2
call fcn.00409217
add esp, 0x10
xor edi, edi
lea esi, [ebp - 0x2c]
push 0
push 1
call fcn.004022b6
mov eax, edi
jmp 0x40692e