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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572fad
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5ebea4]
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 0x5ecbc0
lea ecx, [ebp - 0x40]
call fcn.0044c140
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 0x45dbad
mov ecx, dword [edi]
push dword [ebp - 0x30]
mov edx, dword [edi + 0x10]
push eax
push ecx
call fcn.004535c0
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, dword [ebp - 0x30]
cmp eax, ecx
jne 0x45dbd0
mov byte [ebp - 0x71], 0
jmp 0x45e399
push ecx
mov edx, edi
lea ecx, [ebp - 0x118]
call fcn.00453110
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.00451c60
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 0x45dc70
mov ecx, dword [ebp - 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45dc66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ea
push edx
push ecx
call fcn.0052f5d6
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 0x45e2e1
mov esi, dword [edi + 0x14]
mov ecx, edi
cmp esi, 8
jb 0x45dcb3
mov ecx, dword [edi]
push dword [ebp - 0x78]
mov edx, dword [edi + 0x10]
push 1
push 0x5d8ea4
push ecx
call fcn.00453460
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x45e324
mov ecx, edi
cmp esi, 8
jb 0x45dcde
mov ecx, dword [edi]
push dword [ebp - 0x78]
mov edx, dword [edi + 0x10]
push 1
push 0x5d84f0
push ecx
call fcn.00453460
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 0x5d8bdc
call fcn.0044a910
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5d8bdc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0044a910
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x45de0a
cmp esi, dword [ebp - 0x7c]
jl 0x45de0a
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.00451c00
push eax
lea ecx, [ebp - 0x58]
call fcn.00449550
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45ddae
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45dda4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ef
push edx
push ecx
call fcn.0052f5d6
add esp, 8
push esi
push 0
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.00451c00
push eax
lea ecx, [ebp - 0x70]
call fcn.00449550
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45de27
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ddfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3f4
push edx
push ecx
call fcn.0052f5d6
add esp, 8
jmp 0x45de27
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x45de27
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45de1b
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.0044a910
xor eax, eax
nop dword [eax]
inc eax
lea ecx, [ebp - 0x140]
mov edx, eax
mov dword [ebp - 0x78], eax
call fcn.0044d360
mov esi, eax
push 0x5d8be4
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd0]
call fcn.004531f0
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 0x45dea6
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x45dea3
cmp dword [edx + 0x14], 8
jb 0x45de97
mov edx, dword [edx]
push ecx
push edx
push ecx
mov ecx, esi
call fcn.00453920
jmp 0x45deb7
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x14], 8
jb 0x45deae
mov esi, dword [esi]
push eax
push esi
mov ecx, edx
call fcn.00451c60
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 0x5d8be0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.00451c60
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.00451c60
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 0x45dfc7
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 0x45dfe2
push 0x2e
mov byte [ebp - 0xb8], 0
push dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044c230
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.00451c60
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.004494f0
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 0x45e0c3
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e0b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ea
push edx
push ecx
call fcn.0052f5d6
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 0x45e124
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e11a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ea
push edx
push ecx
call fcn.0052f5d6
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 0x45e185
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e17b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ea
push edx
push ecx
call fcn.0052f5d6
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 0x45e1e6
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e1dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ea
push edx
push ecx
call fcn.0052f5d6
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 0x45e247
mov ecx, dword [ebp - 0x140]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e23d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3ea
push edx
push ecx
call fcn.0052f5d6
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 0x45e265
mov eax, dword [ebp - 0x78]
jmp 0x45de30
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x45e2a3
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e299
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3f9
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x45e2e1
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e2d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e3fe
push edx
push ecx
call fcn.0052f5d6
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 0x45e2f6
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x45e32a
cmp byte [ebp - 0x71], al
je 0x45e324
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x45e315
mov edi, dword [edi]
push eax
push edi
push str.____Cannot_rename:__s._Code__lu
call fcn.00463ab0
add esp, 0xc
mov byte [ebp - 0x71], 0
jmp 0x45e348
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x45e344
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044a910
mov byte [ebp - 0x71], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45e382
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e378
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e403
push edx
push ecx
call fcn.0052f5d6
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 0x45e3cc
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x45e3c2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e408
push ecx
push esi
call fcn.0052f5d6
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.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
int3