Function at 0x4251f0
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1300
call fcn.0044cc00
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x425834
mov eax, dword [ebx + 4]
and eax, 7
cmp eax, 7
jne 0x425222
push str.RESET
jmp 0x425276
cmp eax, 1
jne 0x425233
lea ecx, [esp + 0x24]
push str.INFO
push ecx
jmp 0x42527b
cmp eax, 3
jne 0x425244
lea edx, [esp + 0x24]
push str.PERIF.
push edx
jmp 0x42527b
cmp eax, 2
jne 0x425250
push str.ALARM
jmp 0x425276
cmp eax, 4
jne 0x425261
lea ecx, [esp + 0x24]
push str.ERROR
push ecx
jmp 0x42527b
cmp eax, edi
jne 0x425271
lea edx, [esp + 0x24]
push 0x459d4c
push edx
jmp 0x42527b
push str.UNKNOWN
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [ebp + 0x14]
add esp, 8
cmp eax, edi
je 0x4252b9
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
push eax
lea ecx, [esp + 0xb8]
push str.Melt_d
push ecx
call esi
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x80]
push edx
push str.ID_d
push eax
call esi
add esp, 0x18
jmp 0x4252c6
mov word [esp + 0x74], di
mov word [esp + 0xb4], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4252d2
cmp word [eax], di
jne 0x4252d7
mov eax, 0x4532fc
push 0x200
lea ecx, [esp + 0x508]
push eax
push ecx
call fcn.00438940
add esp, 0xc
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x64]
push eax
call fcn.004390d0
fadd qword [0x694c80]
fsub qword [0x694c60]
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00439170
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
fstp qword [esp + 0x18]
and eax, 7
add esp, 0xc
cmp al, 7
jne 0x425336
neg esi
fld qword [esp + 0xc]
fld qword [0x44e480]
lea edi, [ebx + 0x10c]
add ebx, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
call sub.MSVCRT.dll__CIfmod
lea ecx, [esp + 0x74]
lea edx, [esp + 0x504]
push ecx
push edi
fstp qword [esp + 0x1c]
push ebx
lea eax, [esp + 0x30]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xc4]
push eax
mov eax, dword [0x694c84]
push ecx
mov ecx, dword [0x694c80]
push edx
push esi
push eax
push ecx
call fcn.00439170
fld qword [0x44e480]
call sub.MSVCRT.dll__CIfmod
fstp qword [esp]
fld qword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
fmul qword [0x44e488]
push edx
push eax
call sub.MSVCRT.dll__ftol
push eax
lea ecx, [esp + 0x938]
push str._08d_t_08.1f_t__08.1f__t_d_t_s_t_s_t_s:__s_t_s_t_s_t_s_r_n
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esp + 0x940]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x40
mov ebx, eax
push 0x46c084
call fcn.00424ca0
mov edi, dword [sym.imp.MSVCRT.dll_fputws]
add esp, 4
test eax, eax
je 0x4254a6
push 0x453228
push 0x46c084
call fcn.0043a600
mov esi, eax
add esp, 8
test esi, esi
je 0x4254a6
push esi
push 0x69b7bc
call edi
lea eax, [esp + 0x90c]
push esi
push eax
mov word [0x69b7bc], 0
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 7
push 0x226
call fcn.00426440
mov eax, dword [0x69f7bc]
add esp, 0x30
test eax, eax
jne 0x425466
push 0x46c084
call fcn.00439d70
add esp, 4
jmp 0x425468
add eax, ebx
mov ecx, dword [0x476a90]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
cmp eax, ecx
mov dword [0x69f7bc], eax
jl 0x42548f
mov ecx, dword [0x694ca8]
push 0
push 0x2710
push 0x1b
push ecx
call esi
mov edx, dword [0x694ca8]
push 0
push 0x2710
push 0x1c
push edx
call esi
jmp 0x42557c
push 0x69b7bc
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [eax + ebx + 1]
add esp, 4
cmp eax, 0x1000
jae 0x4254da
lea ecx, [esp + 0x904]
push ecx
push 0x69b7bc
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x425572
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x46c084
lea edx, [esp + 0x50c]
push str.Logfile__s__Error__lu
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
push 0
lea eax, [esp + 0x518]
push 0
push eax
push 0
push 0xffffffffffffffff
push 0x120
push 0x226
call fcn.00426440
push 0x453228
push str.SystemLog.txt
call fcn.0043a600
mov esi, eax
add esp, 0x34
test esi, esi
je 0x425558
push esi
push 0x69b7bc
call edi
lea ecx, [esp + 0x90c]
push esi
push ecx
mov word [0x69b7bc], 0
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
jmp 0x425572
lea edx, [esp + 0x904]
push 0x1000
push edx
push 0x69b7bc
call fcn.00438940
add esp, 0xc
mov dword [0x69f7bc], 0
cmp word [0x46be7c], 0
mov esi, dword [ebp + 8]
je 0x4257c2
cmp dword [esi], 0x22b
jne 0x4255a3
mov eax, dword [esi + 4]
and eax, 7
cmp al, 7
jne 0x4257c2
mov eax, dword [0x69f7c4]
add eax, ebx
mov dword [0x69f7c4], eax
inc eax
cmp eax, 0x800
jae 0x4255d2
lea ecx, [esp + 0x904]
push ecx
push 0x69d7bc
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x4257c2
mov eax, dword [0x458724]
test eax, eax
jne 0x42576f
push 0x46be7c
call fcn.00424ca0
add esp, 4
test eax, eax
je 0x42576f
push 0x453228
push 0x46be7c
call fcn.0043a600
mov esi, eax
add esp, 8
test esi, esi
je 0x42576c
mov eax, dword [0x69f7c0]
test eax, eax
jne 0x425628
push 0x46be7c
call fcn.00439d70
add esp, 4
jmp 0x42562e
add eax, dword [0x69f7c4]
mov ecx, dword [0x476a90]
mov dword [0x69f7c0], eax
cmp eax, ecx
push esi
jl 0x425729
mov ebx, dword [sym.imp.MSVCRT.dll_fclose]
call ebx
push 0x104
lea edx, [esp + 0xfc]
push 0x46be7c
push edx
call fcn.00438940
mov esi, eax
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esi + eax*2 - 2]
lea ecx, [esp + 0x108]
add esp, 0x14
cmp eax, ecx
jbe 0x425697
cmp word [eax], 0x2e
je 0x425697
sub eax, 2
lea edx, [esp + 0xf4]
cmp eax, edx
ja 0x425683
mov word [eax], 0
lea eax, [esp + 0xf4]
push str..old
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
mov esi, dword [sym.imp.MSVCRT.dll__wremove]
lea ecx, [esp + 0xfc]
push ecx
call esi
lea edx, [esp + 0x100]
push edx
push 0x46be7c
call dword [sym.imp.MSVCRT.dll__wrename]
push 0x46be7c
call esi
push 0x46be7c
call fcn.00424ca0
add esp, 0x1c
test eax, eax
je 0x425745
push 0x453228
push 0x46be7c
call fcn.0043a600
mov esi, eax
add esp, 8
test esi, esi
je 0x425745
push esi
push 0x69d7bc
call edi
lea eax, [esp + 0x90c]
push esi
push eax
call edi
push esi
call ebx
mov ecx, dword [0x69f7c4]
add esp, 0x14
mov dword [0x69f7c0], ecx
jmp 0x425745
push 0x69d7bc
call edi
lea edx, [esp + 0x90c]
push esi
push edx
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push 7
push 0x22b
mov word [0x69d7bc], ax
mov dword [0x69f7c4], eax
call fcn.00426440
mov esi, dword [ebp + 8]
add esp, 0x1c
jmp 0x4257c2
mov esi, dword [ebp + 8]
mov eax, dword [0x69f7c4]
inc eax
cmp eax, 0x1000
jb 0x4255b7
lea edx, [esp + 0x904]
push 0x1000
push edx
push 0x69d7bc
call fcn.00438940
mov eax, dword [0x458724]
add esp, 0xc
test eax, eax
mov dword [0x69f7c4], ebx
jne 0x4257c2
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0x22b
call fcn.00426440
add esp, 0x1c
mov eax, dword [esi + 4]
and eax, 7
cmp al, 7
mov eax, dword [esi]
jne 0x4257d0
neg eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x50c]
lea edx, [esp + 0x7c]
push ecx
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x92c]
push str._08.1f_t_s_t_d_t__s__t_s_t_s_t_s__s__s
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov edx, dword [0x694cac]
lea ecx, [esp + 0x934]
push ecx
push edx
call fcn.00437650
add esp, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x458724], edi
jne 0x425b11
mov eax, dword [0x69f7bc]
mov ecx, dword [0x476a90]
cmp eax, ecx
jl 0x425aaa
push 0x104
lea ecx, [esp + 0xf8]
push 0x46c084
push ecx
call fcn.00438940
lea edx, [esp + 0x100]
mov esi, eax
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esi + eax*2 - 2]
lea ecx, [esp + 0x104]
add esp, 0x10
cmp eax, ecx
jbe 0x4258a0
cmp word [eax], 0x2e
je 0x4258a0
sub eax, 2
lea edx, [esp + 0xf4]
cmp eax, edx
ja 0x42588c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [eax], di
call ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
fild qword [esp + 0x14]
xor esi, esi
cmp word [0x46c28c], di
mov word [esp + 0x2fc], di
mov edi, dword [sym.imp.MSVCRT.dll__wremove]
fstp qword [esp + 0xc]
je 0x42598b
mov eax, dword [0x694c7c]
mov edx, dword [0x694c78]
xor ecx, ecx
and eax, 0xffff
mov cx, word [0x694c7a]
push eax
and edx, 0xffff
push ecx
xor eax, eax
push edx
mov ax, word [0x694c76]
mov edx, dword [0x694c70]
xor ecx, ecx
push eax
mov cx, word [0x694c72]
and edx, 0xffff
push ecx
lea eax, [esp + 0x108]
push edx
push eax
lea ecx, [esp + 0x1120]
push str._s__04d_02d_02d__02d_02d_02d.zip
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
push 0x46c28c
lea edx, [esp + 0x112c]
push 0x46ccb4
lea eax, [esp + 0x328]
push edx
push eax
call fcn.0043a4d0
lea ecx, [esp + 0x330]
push ecx
call fcn.00439b70
add esp, 0x38
test eax, eax
je 0x42598b
lea edx, [esp + 0x2fc]
push edx
call edi
push esi
push esi
lea eax, [esp + 0x308]
push 0x46c084
push eax
call fcn.00418930
add esp, 0x14
mov esi, eax
lea ecx, [esp + 0xf4]
push str..old
push ecx
call dword [sym.imp.MSVCRT.dll_wcscat]
lea edx, [esp + 0xfc]
push edx
call edi
lea eax, [esp + 0x100]
push eax
push 0x46c084
call dword [sym.imp.MSVCRT.dll__wrename]
push 0x46c084
call edi
add esp, 0x18
call ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
fild qword [esp + 0x14]
push 0x46c084
fsub qword [esp + 0x10]
fstp qword [esp + 0x10]
call fcn.00439d70
add esp, 4
mov dword [0x69f7bc], eax
test esi, esi
je 0x425a25
fld qword [esp + 0xc]
fmul qword [0x44e4d0]
sub esp, 8
lea ecx, [esp + 0x304]
lea edx, [esp + 0x50c]
fstp qword [esp]
push ecx
push str.archived:_s__time_.2fs
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
jmp 0x425a75
cmp word [0x46c28c], 0
je 0x425a5f
fld qword [esp + 0xc]
fmul qword [0x44e4d0]
sub esp, 8
lea eax, [esp + 0x304]
lea ecx, [esp + 0x50c]
fstp qword [esp]
push eax
push str.Error_archiving:_s__time_.2fs
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
jmp 0x425a75
lea edx, [esp + 0x504]
push str.No_log_archive_made.__ArchiveBkUp_not_set_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 8
mov eax, dword [0x476a90]
mov ecx, dword [0x69f7bc]
add eax, 0xfffffe00
cmp ecx, eax
jge 0x425aa8
push 0
lea ecx, [esp + 0x508]
push 0
push ecx
push 0
push 0xffffffffffffffff
push 0
push 0x2d4
call fcn.00426440
add esp, 0x1c
xor edi, edi
cmp word [0x69d7bc], di
je 0x425b11
push 0x46be7c
call fcn.00424ca0
add esp, 4
test eax, eax
je 0x425b11
push 0x453228
push 0x46be7c
call fcn.0043a600
mov esi, eax
add esp, 8
cmp esi, edi
je 0x425b11
push esi
push 0x69d7bc
call dword [sym.imp.MSVCRT.dll_fputws]
push esi
mov word [0x69d7bc], di
mov dword [0x69f7c4], edi
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 7
push 0x22b
call fcn.00426440
add esp, 0x28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret