Function at 0x420660
Capabilities:
Copy file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x539ffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
push str.TMP.000_
lea ecx, [esp + 0x1c]
call fcn.00512952
mov eax, dword [0x5ab980]
xor ebx, ebx
mov dword [esp + 0x144], ebx
mov dword [esp + 0x10], eax
push 0xa
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call fcn.00510deb
mov ebp, dword [esp + 0x150]
lea ecx, [esp + 0x10]
push ebp
mov byte [esp + 0x148], 2
call fcn.00512a1d
mov ecx, dword [esp + 0x18]
push ecx
push 3
lea ecx, [esp + 0x18]
call fcn.0050df1d
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00512659
call fcn.004201f0
add esp, 0xc
cmp eax, ebx
je 0x42087f
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42076e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
mov dword [esp + 0x1c], eax
je 0x42076e
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call fcn.00510e5f
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.005128e4
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffffe
jmp 0x420965
cmp dword [esp + 0x158], 2
jne 0x4207d3
mov ebp, dword [ebp]
mov esi, 0x596258
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4207a6
cmp cl, bl
je 0x4207a2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4207a6
add eax, 2
add esi, 2
cmp cl, bl
jne 0x420782
xor eax, eax
jmp 0x4207ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
push 5
je 0x4207c2
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x42092e
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x42092e
mov edx, dword [0x5ab980]
mov dword [esp + 0x14], edx
lea eax, [esp + 0xbc]
push 0x7e
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x150], 3
call fcn.00421160
add esp, 0xc
test eax, eax
jl 0x42086e
mov edi, dword [ebp]
mov esi, 0x596258
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x42082e
cmp cl, bl
je 0x42082a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42082e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x42080a
xor eax, eax
jmp 0x420833
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x420840
lea edx, [esp + 0x3c]
jmp 0x4208e3
lea ecx, [esp + 0x3c]
push 0x7e
push ecx
push ebp
call fcn.00421160
add esp, 0xc
test eax, eax
jge 0x420900
mov esi, dword [esp + 0x154]
mov ecx, ebp
mov eax, dword [esi]
push eax
call fcn.0050e341
cmp eax, 3
je 0x4208bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call fcn.00510e5f
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.005128e4
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x420965
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x14]
push edx
call fcn.00512a6d
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push eax
push 3
call fcn.0050df1d
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xbc]
push str.WININIT.INI
lea edx, [esp + 0x40]
push ecx
push edx
push str.RENAME
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x144], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x144], 1
call fcn.00510e5f
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], bl
call fcn.005128e4
lea ecx, [esp + 0x18]
mov dword [esp + 0x144], 0xffffffff
call fcn.005128e4
xor eax, eax
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret