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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5726fd
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5eaea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x71], dl
mov edi, ecx
push 0x5ebbc0
lea ecx, [ebp - 0x40]
call fcn.0044c0e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov ecx, edi
mov esi, dword [ebp - 0x40]
cmovae eax, esi
cmp dword [edi + 0x14], 8
jb 0x45d55d
mov ecx, dword [edi]
push dword [ebp - 0x30]
mov edx, dword [edi + 0x10]
push eax
push ecx
call fcn.00453560
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, dword [ebp - 0x30]
cmp eax, ecx
jne 0x45d580
mov byte [ebp - 0x71], 0
jmp 0x45dd49
push ecx
mov edx, edi
lea ecx, [ebp - 0x118]
call fcn.004530b0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push dword [ebp - 0x30]
cmovae ecx, esi
push ecx
mov ecx, eax
call fcn.00451c00
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x104]
cmp edx, 8
jb 0x45d620
mov ecx, dword [ebp - 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d616
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9a
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x14], 8
mov word [ebp - 0x118], ax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x104], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45dc91
mov esi, dword [edi + 0x14]
mov ecx, edi
cmp esi, 8
jb 0x45d663
mov ecx, dword [edi]
push dword [ebp - 0x78]
mov edx, dword [edi + 0x10]
push 1
push 0x5d7e94
push ecx
call fcn.00453400
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x45dcd4
mov ecx, edi
cmp esi, 8
jb 0x45d68e
mov ecx, dword [edi]
push dword [ebp - 0x78]
mov edx, dword [edi + 0x10]
push 1
push 0x5d74e0
push ecx
call fcn.00453400
add esp, 0x10
mov dword [ebp - 0x48], 0
mov esi, eax
mov dword [ebp - 0x44], 7
xor eax, eax
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
push eax
push 0x5d7bcc
call fcn.0044a8b0
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5d7bcc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0044a8b0
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x45d7ba
cmp esi, dword [ebp - 0x7c]
jl 0x45d7ba
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.00451ba0
push eax
lea ecx, [ebp - 0x58]
call fcn.004494f0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45d75e
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d754
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9f
push edx
push ecx
call fcn.0052edf8
add esp, 8
push esi
push 0
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.00451ba0
push eax
lea ecx, [ebp - 0x70]
call fcn.004494f0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45d7d7
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45d7ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dda4
push edx
push ecx
call fcn.0052edf8
add esp, 8
jmp 0x45d7d7
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x45d7d7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45d7cb
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.0044a8b0
xor eax, eax
nop dword [eax]
inc eax
lea ecx, [ebp - 0x140]
mov edx, eax
mov dword [ebp - 0x78], eax
call fcn.0044d300
mov esi, eax
push 0x5d7bd4
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd0]
call fcn.00453190
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 0x45d856
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x45d853
cmp dword [edx + 0x14], 8
jb 0x45d847
mov edx, dword [edx]
push ecx
push edx
push ecx
mov ecx, esi
call fcn.004538c0
jmp 0x45d867
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x14], 8
jb 0x45d85e
mov esi, dword [esi]
push eax
push esi
mov ecx, edx
call fcn.00451c00
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 0x5d7bd0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.00451c00
mov dword [ebp - 0xd8], 0
xor ecx, ecx
mov dword [ebp - 0xd4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xe8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xd8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0xe8]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00451c00
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 0x45d977
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 0x45d992
push 0x2e
mov byte [ebp - 0xb8], 0
push dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044c1d0
movups xmm0, xmmword [ebp - 0xb4]
xor eax, eax
mov word [ebp - 0xb4], ax
movups xmmword [ebp - 0x100], xmm0
movq xmm0, qword [ebp - 0xa4]
movq qword [ebp - 0xf0], xmm0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x100]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00451c00
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x128], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x80], xmm0
call fcn.00449490
movups xmm0, xmmword [ebp - 0x128]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x80]
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xec]
movq qword [ebp - 0x18], xmm0
cmp edx, 8
jb 0x45da73
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45da69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9a
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
cmp edx, 8
jb 0x45dad4
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45daca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9a
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
cmp edx, 8
jb 0x45db35
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45db2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9a
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
cmp edx, 8
jb 0x45db96
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45db8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9a
push edx
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
cmp edx, 8
jb 0x45dbf7
mov ecx, dword [ebp - 0x140]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45dbed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dd9a
push edx
push ecx
call fcn.0052edf8
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45dc15
mov eax, dword [ebp - 0x78]
jmp 0x45d7e0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x45dc53
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45dc49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45dda9
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x45dc91
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45dc87
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ddae
push edx
push ecx
call fcn.0052edf8
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x45dca6
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x45dcda
cmp byte [ebp - 0x71], al
je 0x45dcd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x45dcc5
mov edi, dword [edi]
push eax
push edi
push str.____Cannot_rename:__s._Code__lu
call fcn.00463390
add esp, 0xc
mov byte [ebp - 0x71], 0
jmp 0x45dcf8
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x45dcf4
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044a8b0
mov byte [ebp - 0x71], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45dd32
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45dd28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ddb3
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov esi, dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x45dd7c
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x45dd72
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ddb8
push ecx
push esi
call fcn.0052edf8
add esp, 8
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ebb7
mov esp, ebp
pop ebp
ret
call fcn.0054a8a1
call fcn.0054a8a1
call fcn.0054a8a1
call fcn.0054a8a1
call fcn.0054a8a1
call fcn.0054a8a1
call fcn.0054a8a1
int3