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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c29d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x5f6ea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x75], dl
mov edi, ecx
push 0x5f7b48
lea ecx, [ebp - 0x44]
call fcn.0044d150
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov ecx, edi
mov esi, dword [ebp - 0x44]
cmovae eax, esi
cmp dword [edi + 0x14], 8
jb 0x4657a1
mov ecx, dword [edi]
push dword [ebp - 0x34]
mov edx, dword [edi + 0x10]
push eax
push 0
call fcn.00454b60
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, dword [ebp - 0x34]
cmp eax, ecx
jne 0x4657c5
mov byte [ebp - 0x75], 0
jmp 0x465f67
push ecx
mov edx, edi
lea ecx, [ebp - 0x11c]
call fcn.00454810
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push dword [ebp - 0x34]
cmovae ecx, esi
push ecx
mov ecx, eax
call fcn.00453360
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x108]
cmp edx, 8
jb 0x465865
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46585b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fbb
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [ebp - 0x10c], 0
cmp dword [ebp - 0x18], 8
mov word [ebp - 0x11c], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x108], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x465eaf
push ecx
push 0x5e1fa4
mov ecx, edi
call fcn.004531d0
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x465ef2
push ecx
push 0x5e15c0
mov ecx, edi
call fcn.004531d0
mov esi, eax
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
push eax
push 0x5e1cac
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x5c], ax
call fcn.0044b750
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5e1cac
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.0044b750
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x4659d8
cmp esi, dword [ebp - 0x7c]
jl 0x4659d8
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00453170
push eax
lea ecx, [ebp - 0x5c]
call fcn.004499a0
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x46597c
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465972
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fc0
push edx
push ecx
call fcn.00537216
add esp, 8
push esi
push 0
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00453170
push eax
lea ecx, [ebp - 0x74]
call fcn.004499a0
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x4659f5
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4659cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fc5
push edx
push ecx
call fcn.00537216
add esp, 8
jmp 0x4659f5
lea eax, [ebp - 0x74]
cmp eax, edi
je 0x4659f5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4659e9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x74]
push eax
call fcn.0044b750
xor eax, eax
inc eax
lea ecx, [ebp - 0x148]
mov edx, eax
mov dword [ebp - 0xbc], eax
call fcn.0044e380
mov esi, eax
push 0x5e1cb4
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.004548f0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 7
mov ecx, dword [edx + 0x10]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x84], ecx
mov ecx, dword [edx + 0x14]
sub ecx, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jbe 0x465a71
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x465a6e
cmp dword [edx + 0x14], 8
jb 0x465a61
mov edx, dword [edx]
push ecx
push edx
push 0
mov ecx, esi
call fcn.00454ec0
jmp 0x465a82
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x14], 8
jb 0x465a79
mov esi, dword [esi]
push eax
push esi
mov ecx, edx
call fcn.00453360
mov dword [ebp - 0x8c], 0
xor ecx, ecx
mov dword [ebp - 0x88], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x9c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x8c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x5e1cb0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.00453360
mov dword [ebp - 0xdc], 0
xor ecx, ecx
mov dword [ebp - 0xd8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xec], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xdc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0xec]
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
push eax
call fcn.00453360
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb4], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movq qword [ebp - 0xa4], xmm0
mov word [eax], cx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
cmp ecx, edx
jae 0x465b92
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb4]
cmovae eax, dword [ebp - 0xb4]
mov dword [eax + ecx*2], 0x2e
jmp 0x465bad
push 0x2e
mov byte [ebp - 0xb8], 0
push dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044d240
movups xmm0, xmmword [ebp - 0xb4]
xor eax, eax
mov word [ebp - 0xb4], ax
movups xmmword [ebp - 0x104], xmm0
movq xmm0, qword [ebp - 0xa4]
movq qword [ebp - 0xf4], xmm0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x104]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00453360
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2c]
movq qword [ebp - 0x80], xmm0
call fcn.00449940
movups xmm0, xmmword [ebp - 0x130]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x80]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xf0]
movq qword [ebp - 0x1c], xmm0
cmp edx, 8
jb 0x465c8e
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465c84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fbb
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
cmp edx, 8
jb 0x465cef
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465ce5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fbb
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
cmp edx, 8
jb 0x465d50
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465d46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fbb
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x465db1
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465da7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fbb
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
cmp edx, 8
jb 0x465e12
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465e08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fbb
push edx
push ecx
call fcn.00537216
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x465e33
mov eax, dword [ebp - 0xbc]
jmp 0x4659f7
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x465e71
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465e67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fca
push edx
push ecx
call fcn.00537216
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x465eaf
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465ea5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fcf
push edx
push ecx
call fcn.00537216
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ecx, edi
cmovae eax, dword [ebp - 0x2c]
cmp dword [edi + 0x14], 8
jb 0x465ec4
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x465ef8
cmp byte [ebp - 0x75], al
je 0x465ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x465ee3
mov edi, dword [edi]
push eax
push edi
push str._____Cannot_rename:__s._Code__lu
call fcn.0046b580
add esp, 0xc
mov byte [ebp - 0x75], 0
jmp 0x465f16
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x465f12
cmp dword [ebp - 0x18], 8
mov ecx, edi
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0044b750
mov byte [ebp - 0x75], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x465f50
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465f46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fd4
push edx
push ecx
call fcn.00537216
add esp, 8
mov esi, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x465f9a
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x465f90
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465fd9
push ecx
push esi
call fcn.00537216
add esp, 8
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00536fd5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552cb1
call fcn.00552cb1
call fcn.00552cb1
call fcn.00552cb1
call fcn.00552cb1
call fcn.00552cb1
call fcn.00552cb1
int3