Function at 0x54f280
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2947c
call fcn.0067ac70
mov dword [ebp - 8], 0xffffff9c
mov dword [ebp - 0x10], 0xffffff9c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.006b6b40
add esp, 8
push 0x2e
lea edx, [ebp - 0x130]
push edx
call fcn.0067d790
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x721c74
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.006b6b40
add esp, 8
lea edx, [ebp - 0x130]
push edx
call fcn.00401500
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffff9c
jne 0x54f32e
lea eax, [ebp - 0x130]
push eax
push str.File_open_error:__s
lea ecx, [ebp - 0x234]
push ecx
call fcn.0041e320
add esp, 0xc
push 0x30
push str.Error.
lea edx, [ebp - 0x234]
push edx
mov eax, dword [0x15da928]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x54f687
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x338]
push edx
call fcn.006b6b40
add esp, 8
push 0x2e
lea eax, [ebp - 0x338]
push eax
call fcn.0067d790
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
push 0x721c8c
mov edx, dword [ebp - 0x14]
push edx
call fcn.006b6b40
add esp, 8
push 1
lea eax, [ebp - 0x338]
push eax
call fcn.00401390
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffff9c
jne 0x54f3d0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401380
add esp, 4
lea edx, [ebp - 0x338]
push edx
push str.File_create_error:__s
lea eax, [ebp - 0x234]
push eax
call fcn.0041e320
add esp, 0xc
push 0x30
push str.Error.
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [0x15da928]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x54f687
push 4
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401560
add esp, 0xc
push 4
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004016d0
add esp, 0xc
cmp dword [ebp - 0x28], 0x1a
jge 0x54f451
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401380
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401380
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x130]
push ecx
push str.File_update_error:__s_is_a_version__d_file__prim_editing_requires_version_26_or_later.
lea edx, [ebp - 0x234]
push edx
call fcn.0041e320
add esp, 0x10
push 0x30
push str.Error:
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [0x15da928]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x54f687
mov dword [ebp - 0xc], 0x29040
mov edx, dword [ebp - 8]
push edx
call fcn.004016a0
add esp, 4
sub eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.006ca9b0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401560
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004016d0
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0067ac50
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, 0x54
imul eax, edx, 0
lea ecx, [ebp + eax - 0x2947c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00401560
add esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x54f4ee
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x7d0
jge 0x54f516
imul ecx, dword [ebp - 0xc], 0x54
movzx edx, byte [ebp + ecx - 0x2946c]
cmp edx, 1
jne 0x54f514
imul eax, dword [ebp - 0xc], 0x54
mov byte [ebp + eax - 0x2946c], 0
jmp 0x54f4e5
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
jmp 0x54f536
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x20
jge 0x54f59a
mov dword [ebp - 0x1c], 0
jmp 0x54f54e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x20
jge 0x54f598
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.006079c0
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
movzx eax, word [edx]
test eax, eax
je 0x54f596
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x2947c]
push eax
call fcn.0054e420
add esp, 0xc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x14
mov dword [ebp - 0x24], ecx
jmp 0x54f567
jmp 0x54f545
jmp 0x54f52d
push 0x29040
mov edx, 0x54
imul eax, edx, 0
lea ecx, [ebp + eax - 0x2947c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004016d0
add esp, 0xc
push 0x800
call fcn.006ca9b0
add esp, 4
mov dword [ebp - 0x18], eax
push 0x800
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00401560
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004016d0
add esp, 0xc
cmp dword [ebp - 4], 0x800
je 0x54f5cb
mov edx, dword [ebp - 0x18]
push edx
call fcn.006ca980
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00401380
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401380
add esp, 4
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x43c]
push eax
call fcn.006b6b40
add esp, 8
push str..bak
lea ecx, [ebp - 0x43c]
push ecx
call fcn.006b6b50
add esp, 8
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.006d3f70
add esp, 8
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x338]
push eax
call fcn.006d3f70
add esp, 8
mov esp, ebp
pop ebp
ret