Function at 0x48e540
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5c8eb4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5fbdc4], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], esi
jne 0x48e571
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
push edi
push 0x4b0
call fcn.004f6757
mov ecx, 0x12c
mov dword [ebp - 0x2c], eax
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20]
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x48e815
test ecx, ecx
jle 0x48e5a9
push ecx
call fcn.00506cea
add esp, 4
mov eax, dword [edi + 0x20]
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 8]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48e5c0
sub ecx, edx
push ebx
lea eax, [ecx + 0xa]
push eax
call fcn.004f6757
mov ecx, dword [edi + 0x20]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x24], ebx
mov esi, ebx
mov edx, dword [ecx + 8]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi], cl
lea esi, [esi + 1]
test cl, cl
jne 0x48e5e3
mov eax, dword [edi + 0x20]
push dword [eax + 8]
push str.Creating__s_n
call fcn.0048f060
mov eax, dword [edi + 0x20]
add esp, 8
cmp dword [eax + 0x20], 0
je 0x48e669
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x48e610
mov ax, word [0x54d3a4]
mov esi, dword [ebp - 0x20]
mov word [edi], ax
mov eax, dword [esi + 0x20]
push dword [eax + 0x20]
lea eax, [ebp - 0x1c]
push 0x53e814
push eax
call fcn.004071a0
lea edx, [ebp - 0x1c]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x48e642
sub edx, esi
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48e650
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x20]
inc dword [eax + 0x20]
mov eax, dword [edi + 0x20]
mov ebx, dword [eax + 0x20]
cmp ebx, 1
jl 0x48e7b0
nop
push ebx
lea eax, [ebp - 0xc]
push 0x54d3a8
push eax
call fcn.004071a0
mov eax, dword [edi + 0x20]
add esp, 0xc
mov ecx, dword [eax + 8]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48e6a0
sub ecx, edx
lea eax, [ecx + 0xa]
push eax
call fcn.004f6757
mov ecx, dword [edi + 0x20]
add esp, 4
mov dword [ebp - 0x28], eax
mov esi, eax
mov edx, dword [ecx + 8]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi], cl
lea esi, [esi + 1]
test cl, cl
jne 0x48e6c0
lea edx, [ebp - 0xc]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x48e6d3
mov edi, dword [ebp - 0x28]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48e6e0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x28]
push esi
push dword [ebp - 0x24]
call fcn.0050254d
add esp, 8
test eax, eax
je 0x48e716
push str.Failed_to_rename_the_file_n
call fcn.0048f060
add esp, 4
push esi
push str.Creating__s_n
call fcn.0048f060
mov edi, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x24]
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 8]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x48e730
cmp ebx, 2
jle 0x48e79d
mov edi, dword [ebp - 0x24]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x48e747
mov ax, word [0x54d3a4]
mov word [edi], ax
lea eax, [ebx - 2]
push eax
lea eax, [ebp - 0x1c]
push 0x53e814
push eax
call fcn.004071a0
lea edx, [ebp - 0x1c]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x48e774
mov edi, dword [ebp - 0x24]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x48e781
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
push esi
call fcn.004f6752
dec ebx
add esp, 4
cmp ebx, 1
jge 0x48e680
mov eax, dword [edi + 0x20]
push 0x180
push 0x8302
push dword [eax + 8]
call fcn.00501ab4
mov ecx, dword [edi + 0x20]
push dword [ebp - 0x24]
mov dword [ecx], eax
call fcn.004f6752
mov eax, dword [edi + 0x20]
add esp, 0x10
cmp dword [eax], 0xffffffff
pop ebx
jne 0x48e7fe
push str.Failed_to_create_a_new_rotation_file_n
call fcn.0048f060
mov eax, dword [ebp - 0x2c]
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x2c]
call fcn.004f6752
mov dword [0x5fbdc4], 0
mov eax, edi
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f01b3
mov esp, ebp
pop ebp
ret