Function at 0x40e5a7
Capabilities:
Delete file
Get file size
Move file

Disassembly:
mov eax, 0x455cd4
call fcn.00434704
mov eax, 0x1514
call fcn.00435170
push ebx
push esi
push edi
mov edi, str.1000.tbl
mov esi, 0x4696c0
push edi
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00448c0e
mov eax, dword [eax]
and dword [ebp - 4], 0
push 3
push 0x80000000
push eax
call fcn.0040d415
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00448a4a
cmp ebx, 0xffffffff
jne 0x40e603
push 1
jmp 0x40e9ed
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov ecx, 0x518
mov dword [ebp - 0x14], eax
div ecx
test edx, edx
je 0x40e9a7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x228
div ecx
test edx, edx
jne 0x40e642
mov dword [ebp - 0x10], 1
jmp 0x40e676
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x3a4
div ecx
test edx, edx
jne 0x40e65b
mov dword [ebp - 0x10], 2
jmp 0x40e676
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x43c
div ecx
test edx, edx
jne 0x40e9a3
mov dword [ebp - 0x10], 3
push str.1000.new
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00448c0e
mov eax, dword [eax]
push 2
push 0x40000000
push eax
mov dword [ebp - 4], 1
call fcn.0040d415
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
call fcn.00448a4a
cmp dword [ebp - 0x14], 0xffffffff
je 0x40e6f1
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.00448c0e
mov eax, dword [eax]
push 3
push 0x80000000
push eax
mov dword [ebp - 4], 2
call fcn.0040d415
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
call fcn.00448a4a
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40e6f8
push dword [ebp - 0x14]
call ebx
push 4
jmp 0x40e9ed
and byte [ebp - 0x19], 0
lea ecx, [ebp - 0x7cc]
call fcn.004019ac
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x40e748
push 0
lea eax, [ebp - 0xc6c]
push 0x224
push eax
push dword [ebp - 0x18]
call fcn.0040cc81
add esp, 0x10
test eax, eax
je 0x40e815
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xc6c]
push eax
call fcn.0040d536
jmp 0x40e7d8
cmp eax, 2
jne 0x40e793
lea ecx, [ebp - 0xe4c]
call fcn.004019ac
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x100c]
push 0x3a0
push eax
push dword [ebp - 0x18]
call fcn.0040cc81
add esp, 0x10
test eax, eax
je 0x40e815
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x100c]
push eax
call fcn.0040d995
jmp 0x40e7d8
cmp eax, 3
jne 0x40e80b
lea ecx, [ebp - 0x298]
call fcn.004019ac
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x458]
push 0x438
push eax
push dword [ebp - 0x18]
call fcn.0040cc81
add esp, 0x10
test eax, eax
je 0x40e815
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.0040dfbb
pop ecx
lea eax, [ebp - 0xa48]
pop ecx
push eax
push str.Lisa
call fcn.004350e0
pop ecx
test eax, eax
pop ecx
jne 0x40e7f5
mov byte [ebp - 0x19], 1
lea eax, [ebp - 0xa48]
push eax
push dword [ebp - 0x14]
call fcn.0040ceb8
pop ecx
pop ecx
jmp 0x40e6fc
cmp eax, 1
jl 0x40e88d
cmp eax, 3
jg 0x40e88d
cmp byte [ebp - 0x19], 0
jne 0x40e88d
lea ecx, [ebp - 0x2b8]
call fcn.004019ac
lea eax, [ebp - 0x534]
push eax
call fcn.0040e9fd
lea eax, [ebp - 0x534]
mov dword [esp], str.Lisa
push eax
call fcn.004347f0
lea eax, [ebp - 0x534]
mov word [ebp - 0x512], 1
push eax
mov word [ebp - 0xbc], 0x21
push dword [ebp - 0x14]
mov word [ebp - 0xba], 2
mov word [ebp - 0x50c], 2
mov word [ebp - 0x510], 3
mov word [ebp - 0x50e], 1
call fcn.0040ceb8
add esp, 0x10
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x14]
call ebx
mov ebx, str.1000.bak
lea eax, [ebp - 0x20]
push ebx
push esi
push eax
call fcn.00448c0e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00448a4a
push ebx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00448c0e
mov ebx, dword [eax]
push edi
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 4], 3
call fcn.00448c0e
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push eax
call ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.00448a4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00448a4a
cmp dword [ebp - 0x18], 0
jne 0x40e93c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40e99f
push str.1000.bak
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00448c0e
mov eax, dword [eax]
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 4], 3
call fcn.00448c0e
push dword [ebp - 0x20]
mov eax, dword [eax]
push eax
jmp 0x40e8e0
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00448c0e
mov eax, dword [eax]
push str.1000.new
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 4
call fcn.00448c0e
push dword [ebp - 0x10]
mov eax, dword [eax]
push eax
call ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.00448a4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00448a4a
cmp dword [ebp - 0x10], 0
jne 0x40e9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40e99f
push edi
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00448c0e
jmp 0x40e947
push 5
jmp 0x40e9ed
push 2
jmp 0x40e9ed
lea ecx, [ebp - 0x12a4]
call fcn.004019ac
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1520]
push 0x514
push eax
push ebx
call fcn.0040cc81
add esp, 0x10
test eax, eax
je 0x40e9d9
cmp eax, 0xffffffff
je 0x40e9e4
jmp 0x40e9a7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40e9ee
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret