Function at 0x465250
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 0x57bdfd
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 0x5f7b30
lea ecx, [ebp - 0x44]
call fcn.0044d140
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 0x4652c1
mov ecx, dword [edi]
push dword [ebp - 0x34]
mov edx, dword [edi + 0x10]
push eax
push 0
call fcn.004547a0
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, dword [ebp - 0x34]
cmp eax, ecx
jne 0x4652e5
mov byte [ebp - 0x75], 0
jmp 0x465a87
push ecx
mov edx, edi
lea ecx, [ebp - 0x11c]
call fcn.00454450
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.00452fa0
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 0x465385
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46537b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465adb
push edx
push ecx
call fcn.00536da7
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 0x4659cf
push ecx
push 0x5e1f64
mov ecx, edi
call fcn.00452e10
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x465a12
push ecx
push 0x5e15b0
mov ecx, edi
call fcn.00452e10
mov esi, eax
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
push eax
push 0x5e1c9c
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x5c], ax
call fcn.0044b740
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5e1c9c
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.0044b740
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x4654f8
cmp esi, dword [ebp - 0x7c]
jl 0x4654f8
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00452db0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00449990
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x46549c
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465492
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465ae0
push edx
push ecx
call fcn.00536da7
add esp, 8
push esi
push 0
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00452db0
push eax
lea ecx, [ebp - 0x74]
call fcn.00449990
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x465515
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4654ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465ae5
push edx
push ecx
call fcn.00536da7
add esp, 8
jmp 0x465515
lea eax, [ebp - 0x74]
cmp eax, edi
je 0x465515
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x465509
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x74]
push eax
call fcn.0044b740
xor eax, eax
inc eax
lea ecx, [ebp - 0x148]
mov edx, eax
mov dword [ebp - 0xbc], eax
call fcn.0044e370
mov esi, eax
push 0x5e1ca4
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.00454530
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 0x465591
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x46558e
cmp dword [edx + 0x14], 8
jb 0x465581
mov edx, dword [edx]
push ecx
push edx
push 0
mov ecx, esi
call fcn.00454b00
jmp 0x4655a2
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x14], 8
jb 0x465599
mov esi, dword [esi]
push eax
push esi
mov ecx, edx
call fcn.00452fa0
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 0x5e1ca0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.00452fa0
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.00452fa0
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 0x4656b2
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 0x4656cd
push 0x2e
mov byte [ebp - 0xb8], 0
push dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044d230
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.00452fa0
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.00449930
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 0x4657ae
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4657a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465adb
push edx
push ecx
call fcn.00536da7
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 0x46580f
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465805
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465adb
push edx
push ecx
call fcn.00536da7
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 0x465870
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465866
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465adb
push edx
push ecx
call fcn.00536da7
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 0x4658d1
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4658c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465adb
push edx
push ecx
call fcn.00536da7
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 0x465932
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465928
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465adb
push edx
push ecx
call fcn.00536da7
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 0x465953
mov eax, dword [ebp - 0xbc]
jmp 0x465517
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x465991
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465987
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465aea
push edx
push ecx
call fcn.00536da7
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4659cf
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4659c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465aef
push edx
push ecx
call fcn.00536da7
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 0x4659e4
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x465a18
cmp byte [ebp - 0x75], al
je 0x465a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x465a03
mov edi, dword [edi]
push eax
push edi
push str.____Cannot_rename:__s._Code__lu
call fcn.0046b090
add esp, 0xc
mov byte [ebp - 0x75], 0
jmp 0x465a36
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x465a32
cmp dword [ebp - 0x18], 8
mov ecx, edi
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0044b740
mov byte [ebp - 0x75], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x465a70
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465a66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465af4
push edx
push ecx
call fcn.00536da7
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 0x465aba
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x465ab0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465af9
push ecx
push esi
call fcn.00536da7
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.00536b66
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552841
call fcn.00552841
call fcn.00552841
call fcn.00552841
call fcn.00552841
call fcn.00552841
call fcn.00552841
int3