Function at 0x421fb0
Capabilities:
Check if file exists
Move file
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x4ba34d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp + 0x60], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421fee
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4222cc
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x422007
mov eax, dword [ebx]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x422011
mov ecx, dword [esi]
push 9
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4222cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edi, [ebp + 0x5e]
nop
mov eax, 0xcccccccd
sub edi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [edi], cx
mov ecx, edx
test ecx, ecx
jne 0x422030
xor eax, eax
mov dword [ebp], edx
mov byte [ebp + 0x30], al
lea ecx, [ebp]
push dword [ebp + 0x30]
mov word [ebp], ax
lea eax, [ebp + 0x5e]
push eax
push edi
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], 7
call fcn.00420570
mov dword [ebp - 4], 0
mov eax, SysReAllocString
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 0xe
jb 0x4222eb
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42209a
mov eax, dword [esi]
push ecx
push eax
push 0xe
push str.Error_moving_
push esi
push dword [ebp + 0x30]
lea ecx, [ebp - 0x24]
call fcn.00415088
push str.____
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00424150
push ebx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00424200
push 0x4ebe88
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
call fcn.00424150
add esp, 0x1c
lea ecx, [ebp]
mov byte [ebp - 4], 4
push ecx
push eax
push dword [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.0041fed0
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x42214a
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422140
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4222f0
push edx
push ecx
call fcn.00488f15
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
cmp edx, 8
jb 0x422198
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42218e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4222f0
push edx
push ecx
call fcn.00488f15
add esp, 8
mov edx, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
cmp edx, 8
jb 0x4221e6
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4221dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4222f0
push edx
push ecx
call fcn.00488f15
add esp, 8
mov edx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp edx, 8
jb 0x422234
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42222a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4222f0
push edx
push ecx
call fcn.00488f15
add esp, 8
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x42227e
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x422274
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4222f0
push edx
push ecx
call fcn.00488f15
add esp, 8
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x4222c8
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4222be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4222f0
push edx
push ecx
call fcn.00488f15
add esp, 8
xor al, al
jmp 0x4222ce
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
call fcn.00488f07
lea esp, [ebp + 0x64]
pop ebp
ret
call fcn.00414470
call fcn.0048e1b0
int3