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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x447004]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, ecx
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x24], xmm0
cmp dword [edi + 0x58], 0
jne 0x41899c
mov eax, dword [edi + 0x54]
cmp eax, dword [edi + 8]
jmp 0x4189aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x5c]
cmp eax, 0x3a98
jb 0x418c43
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.00418c60
mov ecx, dword [edi + 0x50]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4189d6
push ecx
call fcn.0042b39c
add esp, 4
mov dword [edi + 0x50], 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [edi + 0x44]
mov eax, 0x2f
add esi, dword [edi + 0x3c]
mov word [esi], ax
add esi, 2
push dword [edi + 0x1c]
push dword [edi + 0x18]
push esi
call fcn.00426ea0
mov eax, dword [edi + 0x1c]
add esp, 0xc
shr eax, 1
lea esi, [esi + eax*2]
mov eax, 0x2e
mov word [esi], ax
add esi, 2
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x44]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
push eax
movzx eax, word [esp + 0x4a]
push eax
movzx eax, word [esp + 0x4a]
push eax
movzx eax, word [esp + 0x4c]
push eax
push str._04d__02d__02d__02d__02d__02d__03d
push 0x20
push esi
call fcn.00419470
movq xmm0, qword [str..log]
add esp, 0x28
movq qword [esi + 0x2e], xmm0
mov ax, word [0x444724]
mov word [esi + 0x36], ax
mov eax, dword [edi + 0x3c]
push eax
push dword [edi + 0x10]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x418a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x418a9d
mov ecx, eax
mov dword [esp + 0x1c], 0x19
call fcn.0041b480
mov dword [esp + 0x20], eax
lea edx, [esp + 0x24]
mov ecx, edi
call fcn.00419270
mov ebx, eax
test ebx, ebx
je 0x418ab6
lea ecx, [edi + 0x60]
mov dword [edi + 0x48], ecx
jmp 0x418b00
push dword [edi + 0x10]
mov eax, dword [edi + 0x4c]
push str.Could_not_open_log__s__will_use_fallback_log_instead.
mov dword [edi + 0x48], eax
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0041bc20
mov ecx, dword [edi + 0x48]
mov esi, dword [esp + 0x38]
push esi
push 4
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x1c
test esi, esi
je 0x418afc
mov ecx, dword [esi]
mov eax, dword [ecx]
add eax, esi
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov esi, dword [esp + 0xc]
cmp dword [esp + 0x14], 0
je 0x418b46
test esi, esi
je 0x418be8
test ebx, ebx
je 0x418c33
push dword [esp + 0x10]
push str.Old_log_was_moved_to__S.
push 2
push dword [edi + 0x48]
call fcn.00401210
add esp, 0x10
mov dword [edi + 0x58], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00425576
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4478b4]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push edx
mov eax, dword [ecx]
add eax, 0x4478b4
push 0x10
push eax
mov eax, dword [ecx + 4]
call eax
xor esi, esi
add esp, 0xc
test eax, eax
cmovne esi, dword [esp + 0x14]
test esi, esi
je 0x418b9d
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov dword [esi + 4], str.Log_files_was_not_rotated.
mov dword [esi + 8], 0x1a
mov dword [esi], 0x447a04
jmp 0x418bb9
mov edx, dword [esp + 0x30]
test edx, edx
je 0x418bb4
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov esi, 0x4479a8
mov ecx, dword [edi + 0x48]
push esi
push 4
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
test esi, esi
je 0x418be1
mov ecx, dword [esi]
mov eax, dword [ecx]
add eax, esi
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
cmp dword [esp + 0xc], 0
jne 0x418c33
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0x444108
push 0x444798
push str.Could_not_rename_last_log_to
push 0
push eax
call fcn.0041bc20
mov ecx, dword [edi + 0x48]
mov esi, dword [esp + 0x38]
push esi
push 4
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x24
test esi, esi
je 0x418c33
mov ecx, dword [esi]
mov eax, dword [ecx]
add eax, esi
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x5c], eax
mov dword [edi + 0x58], 1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00425576
mov esp, ebp
pop ebp
ret