Function at 0x465080
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 0x57bb0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x5f5ea4]
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 0x5f6b18
lea ecx, [ebp - 0x44]
call fcn.0044d0f0
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 0x4650f1
mov ecx, dword [edi]
push dword [ebp - 0x34]
mov edx, dword [edi + 0x10]
push eax
push 0
call fcn.00454750
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, dword [ebp - 0x34]
cmp eax, ecx
jne 0x465115
mov byte [ebp - 0x75], 0
jmp 0x4658b7
push ecx
mov edx, edi
lea ecx, [ebp - 0x11c]
call fcn.00454400
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.00452f50
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 0x4651b5
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4651ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46590b
push edx
push ecx
call fcn.00536ae6
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 0x4657ff
push ecx
push 0x5e0f64
mov ecx, edi
call fcn.00452dc0
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x465842
push ecx
push 0x5e05b0
mov ecx, edi
call fcn.00452dc0
mov esi, eax
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 0x48], 7
push eax
push 0x5e0c9c
lea ecx, [ebp - 0x5c]
mov word [ebp - 0x5c], ax
call fcn.0044b730
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5e0c9c
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.0044b730
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x465328
cmp esi, dword [ebp - 0x7c]
jl 0x465328
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00452d60
push eax
lea ecx, [ebp - 0x5c]
call fcn.00449980
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x4652cc
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4652c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465910
push edx
push ecx
call fcn.00536ae6
add esp, 8
push esi
push 0
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00452d60
push eax
lea ecx, [ebp - 0x74]
call fcn.00449980
mov edx, dword [ebp - 0xc0]
cmp edx, 8
jb 0x465345
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46531c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465915
push edx
push ecx
call fcn.00536ae6
add esp, 8
jmp 0x465345
lea eax, [ebp - 0x74]
cmp eax, edi
je 0x465345
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x465339
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x74]
push eax
call fcn.0044b730
xor eax, eax
inc eax
lea ecx, [ebp - 0x148]
mov edx, eax
mov dword [ebp - 0xbc], eax
call fcn.0044e320
mov esi, eax
push 0x5e0ca4
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.004544e0
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 0x4653c1
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x4653be
cmp dword [edx + 0x14], 8
jb 0x4653b1
mov edx, dword [edx]
push ecx
push edx
push 0
mov ecx, esi
call fcn.00454ab0
jmp 0x4653d2
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x14], 8
jb 0x4653c9
mov esi, dword [esi]
push eax
push esi
mov ecx, edx
call fcn.00452f50
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 0x5e0ca0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.00452f50
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.00452f50
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 0x4654e2
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 0x4654fd
push 0x2e
mov byte [ebp - 0xb8], 0
push dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044d1e0
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.00452f50
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.00449920
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 0x4655de
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4655d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46590b
push edx
push ecx
call fcn.00536ae6
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 0x46563f
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465635
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46590b
push edx
push ecx
call fcn.00536ae6
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 0x4656a0
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465696
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46590b
push edx
push ecx
call fcn.00536ae6
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 0x465701
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4656f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46590b
push edx
push ecx
call fcn.00536ae6
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 0x465762
mov ecx, dword [ebp - 0x148]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465758
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46590b
push edx
push ecx
call fcn.00536ae6
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 0x465783
mov eax, dword [ebp - 0xbc]
jmp 0x465347
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x4657c1
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4657b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46591a
push edx
push ecx
call fcn.00536ae6
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4657ff
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4657f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46591f
push edx
push ecx
call fcn.00536ae6
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 0x465814
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x465848
cmp byte [ebp - 0x75], al
je 0x465842
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x465833
mov edi, dword [edi]
push eax
push edi
push str.____Cannot_rename:__s._Code__lu
call fcn.0046adc0
add esp, 0xc
mov byte [ebp - 0x75], 0
jmp 0x465866
lea eax, [ebp - 0x2c]
cmp edi, eax
je 0x465862
cmp dword [ebp - 0x18], 8
mov ecx, edi
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0044b730
mov byte [ebp - 0x75], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4658a0
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x465896
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465924
push edx
push ecx
call fcn.00536ae6
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 0x4658ea
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4658e0
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465929
push ecx
push esi
call fcn.00536ae6
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.005368a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00552581
call fcn.00552581
call fcn.00552581
call fcn.00552581
call fcn.00552581
call fcn.00552581
call fcn.00552581
int3