Function at 0x4204e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 0xb17
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [esp + 4], 0x42043c
mov dword [esp], 0x418370
call sym._updatecontext_f
mov dword [esp], 0x4314b4
call sym._localtime
test eax, eax
mov ebx, eax
je 0x420540
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x420540
mov eax, dword [0x431270]
cmp eax, 1
je 0x42073c
cmp eax, 2
je 0x420637
cmp eax, 3
je 0x420550
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 1
jne 0x420540
mov eax, dword [0x4314b4]
sub eax, 0x2a300
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._localtime
mov esi, eax
mov eax, dword [0x43126c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0xb4b
add eax, 9
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x42043c
mov dword [esp], eax
call sym._mycalloc2
mov edi, eax
mov eax, dword [esi + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 4], 0x420448
mov dword [esp], edi
add eax, 0x76c
mov dword [esp + 0xc], eax
mov eax, dword [0x43126c]
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp], edi
call sym._doesfileexist
test eax, eax
je 0x4205e8
mov dword [esp], edi
call sym._mydelete2
jmp 0x420540
mov dword [esp + 4], 0x420455
mov dword [esp], 0
call sym._mylog
mov dword [esp + 4], edi
mov eax, dword [0x43126c]
mov dword [esp], eax
call sym._rename
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x420462
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
jmp 0x4205db
mov edx, dword [ebx + 0x18]
test edx, edx
jne 0x42053b
mov eax, dword [0x4314b4]
sub eax, 0x93a80
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._localtime
mov esi, eax
mov eax, dword [0x43126c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0xb38
add eax, 0xa
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x42043c
mov dword [esp], eax
call sym._mycalloc2
mov ecx, dword [esi + 0x1c]
mov edi, eax
mov edx, 0x92492493
mov eax, ecx
imul edx
mov eax, ecx
sar eax, 0x1f
add edx, ecx
sar edx, 2
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 4], 0x420480
mov dword [esp], edi
add eax, 0x76c
mov dword [esp + 0xc], eax
mov eax, dword [0x43126c]
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp], edi
call sym._doesfileexist
test eax, eax
je 0x4206ed
mov dword [esp], edi
call sym._mydelete2
mov eax, dword [0x431270]
jmp 0x42053b
mov dword [esp + 4], 0x420455
mov dword [esp], 0
call sym._mylog
mov dword [esp + 4], edi
mov eax, dword [0x43126c]
mov dword [esp], eax
call sym._rename
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x42048e
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
jmp 0x4206db
mov eax, dword [0x4314b4]
sub eax, 0x15180
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call sym._localtime
mov esi, eax
mov eax, dword [0x43126c]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0xb24
add eax, 0xc
mov dword [esp + 8], 0x418370
mov dword [esp + 4], 0x42043c
mov dword [esp], eax
call sym._mycalloc2
mov edi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 4], 0x4204ab
mov dword [esp], edi
add eax, 0x76c
mov dword [esp + 0xc], eax
mov eax, dword [0x43126c]
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp], edi
call sym._doesfileexist
test eax, eax
je 0x4207da
mov dword [esp], edi
call sym._mydelete2
mov eax, dword [0x431270]
jmp 0x420532
mov dword [esp + 4], 0x420455
mov dword [esp], 0
call sym._mylog
mov dword [esp + 4], edi
mov eax, dword [0x43126c]
mov dword [esp], eax
call sym._rename
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x4204bd
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], 0
call sym._ioutput
jmp 0x4207c8