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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57019d
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5e8ea4]
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 0x5e9ba8
lea ecx, [ebp - 0x40]
call fcn.0044c0c0
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 0x45b4ed
mov ecx, dword [edi]
push dword [ebp - 0x30]
mov edx, dword [edi + 0x10]
push eax
push ecx
call fcn.004515f0
mov ecx, dword [edi + 0x10]
add esp, 0xc
sub ecx, dword [ebp - 0x30]
cmp eax, ecx
jne 0x45b510
mov byte [ebp - 0x71], 0
jmp 0x45bcd9
push ecx
mov edx, edi
lea ecx, [ebp - 0x118]
call fcn.00451140
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.0044fc90
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 0x45b5b0
mov ecx, dword [ebp - 0x118]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b5a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2a
push edx
push ecx
call fcn.0052cac7
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 0x45bc21
mov esi, dword [edi + 0x14]
mov ecx, edi
cmp esi, 8
jb 0x45b5f3
mov ecx, dword [edi]
push dword [ebp - 0x78]
mov edx, dword [edi + 0x10]
push 1
push 0x5d5c80
push ecx
call fcn.00451490
add esp, 0x10
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x45bc64
mov ecx, edi
cmp esi, 8
jb 0x45b61e
mov ecx, dword [edi]
push dword [ebp - 0x78]
mov edx, dword [edi + 0x10]
push 1
push 0x5d54d0
push ecx
call fcn.00451490
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 0x5d5a3c
call fcn.0044a890
xor eax, eax
mov byte [ebp - 4], 4
push eax
push 0x5d5a3c
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.0044a890
mov byte [ebp - 4], 5
cmp esi, 0xffffffff
je 0x45b74a
cmp esi, dword [ebp - 0x7c]
jl 0x45b74a
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.0044fc30
push eax
lea ecx, [ebp - 0x58]
call fcn.004494d0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45b6ee
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b6e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2f
push edx
push ecx
call fcn.0052cac7
add esp, 8
push esi
push 0
lea eax, [ebp - 0xd0]
mov ecx, edi
push eax
call fcn.0044fc30
push eax
lea ecx, [ebp - 0x70]
call fcn.004494d0
mov edx, dword [ebp - 0xbc]
cmp edx, 8
jb 0x45b767
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b73e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd34
push edx
push ecx
call fcn.0052cac7
add esp, 8
jmp 0x45b767
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x45b767
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x45b75b
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.0044a890
xor eax, eax
nop dword [eax]
inc eax
lea ecx, [ebp - 0x140]
mov edx, eax
mov dword [ebp - 0x78], eax
call fcn.0044d140
mov esi, eax
push 0x5d5a44
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd0]
call fcn.00451290
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 0x45b7e6
mov eax, dword [esi + 0x14]
sub eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jb 0x45b7e3
cmp dword [edx + 0x14], 8
jb 0x45b7d7
mov edx, dword [edx]
push ecx
push edx
push ecx
mov ecx, esi
call fcn.00451950
jmp 0x45b7f7
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x14], 8
jb 0x45b7ee
mov esi, dword [esi]
push eax
push esi
mov ecx, edx
call fcn.0044fc90
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 0x5d5a40
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.0044fc90
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.0044fc90
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 0x45b907
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 0x45b922
push 0x2e
mov byte [ebp - 0xb8], 0
push dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0044c1b0
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.0044fc90
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.00449470
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 0x45ba03
mov ecx, dword [ebp - 0x100]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45b9f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2a
push edx
push ecx
call fcn.0052cac7
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 0x45ba64
mov ecx, dword [ebp - 0xe8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ba5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2a
push edx
push ecx
call fcn.0052cac7
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 0x45bac5
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45babb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2a
push edx
push ecx
call fcn.0052cac7
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 0x45bb26
mov ecx, dword [ebp - 0xd0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bb1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2a
push edx
push ecx
call fcn.0052cac7
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 0x45bb87
mov ecx, dword [ebp - 0x140]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bb7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd2a
push edx
push ecx
call fcn.0052cac7
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 0x45bba5
mov eax, dword [ebp - 0x78]
jmp 0x45b770
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x45bbe3
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bbd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd39
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x45bc21
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bc17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd3e
push edx
push ecx
call fcn.0052cac7
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 0x45bc36
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x45bc6a
cmp byte [ebp - 0x71], al
je 0x45bc64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x45bc55
mov edi, dword [edi]
push eax
push edi
push str.____Cannot_rename:__s._Code__lu
call fcn.004612c0
add esp, 0xc
mov byte [ebp - 0x71], 0
jmp 0x45bc88
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x45bc84
cmp dword [ebp - 0x14], 8
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044a890
mov byte [ebp - 0x71], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x45bcc2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45bcb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd43
push edx
push ecx
call fcn.0052cac7
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 0x45bd0c
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x45bd02
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45bd48
push ecx
push esi
call fcn.0052cac7
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.0052c886
mov esp, ebp
pop ebp
ret
call fcn.00548571
call fcn.00548571
call fcn.00548571
call fcn.00548571
call fcn.00548571
call fcn.00548571
call fcn.00548571
int3