Function at 0x420f80
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x41a25a
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov dword [esp + 4], 0x420ed4
mov dword [esp + 8], 0x795
call sym._updatecontext_f
mov dword [esp], 0x431bd8
call sym._localtime
test eax, eax
mov ebx, eax
je 0x420fc1
mov eax, dword [eax + 8]
test eax, eax
je 0x420fd0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x1fe
mov dword [esp + 4], 0x420ed4
mov dword [esp + 8], 0x41a25a
mov dword [esp + 0xc], 0x79c
call sym._mycalloc2
mov esi, eax
mov eax, dword [0x431250]
cmp eax, 1
je 0x4211a3
cmp eax, 2
je 0x4210d0
cmp eax, 3
je 0x42101c
mov dword [esp], esi
call sym._mydelete2
jmp 0x420fc1
cmp dword [ebx + 0xc], 1
jne 0x421012
mov eax, dword [0x431bd8]
lea ecx, [ebp - 0xc]
mov dword [esp], ecx
sub eax, 0x2a300
mov dword [ebp - 0xc], eax
call sym._localtime
mov dword [esp], esi
mov ebx, eax
mov eax, dword [0x43124c]
mov dword [esp + 4], 0x1ff
mov dword [esp + 8], 0x420ee0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
inc eax
mov dword [esp + 0x14], eax
call sym._snprintf
mov dword [esp], esi
call sym._doesfileexist
test eax, eax
jne 0x421012
mov dword [esp], 0
mov dword [esp + 4], 0x420eed
call sym._mylog
mov eax, dword [0x43124c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._rename
mov dword [esp], 0
mov dword [esp + 4], 7
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x420efa
mov dword [esp + 0x10], esi
call sym._ioutput
jmp 0x421012
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jne 0x42100d
mov eax, dword [0x431bd8]
lea edx, [ebp - 0xc]
mov dword [esp], edx
sub eax, 0x93a80
mov dword [ebp - 0xc], eax
call sym._localtime
mov dword [esp], esi
mov edx, eax
mov eax, dword [0x43124c]
mov dword [esp + 4], 0x1ff
mov dword [esp + 8], 0x420f18
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 0x1c]
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 + 0x14], edx
call sym._snprintf
mov dword [esp], esi
call sym._doesfileexist
test eax, eax
je 0x421154
mov eax, dword [0x431250]
jmp 0x42100d
mov dword [esp], 0
mov dword [esp + 4], 0x420eed
call sym._mylog
mov eax, dword [0x43124c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._rename
mov dword [esp], 0
mov dword [esp + 4], 7
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x420f26
mov dword [esp + 0x10], esi
call sym._ioutput
jmp 0x42114a
mov eax, dword [0x431bd8]
lea edx, [ebp - 0xc]
mov dword [esp], edx
sub eax, 0x15180
mov dword [ebp - 0xc], eax
call sym._localtime
mov dword [esp], esi
mov ecx, eax
mov eax, dword [0x43124c]
mov dword [esp + 4], 0x1ff
mov dword [esp + 8], 0x420f43
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x14]
add eax, 0x76c
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x10]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
call sym._snprintf
mov dword [esp], esi
call sym._doesfileexist
test eax, eax
je 0x42120f
mov eax, dword [0x431250]
jmp 0x421004
mov dword [esp], 0
mov dword [esp + 4], 0x420eed
call sym._mylog
mov eax, dword [0x43124c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._rename
mov dword [esp], 0
mov dword [esp + 4], 7
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x420f55
mov dword [esp + 0x10], esi
call sym._ioutput
jmp 0x421205