Function at 0x402290
Capabilities:
Move file

Disassembly:
sub esp, 0x844
xor eax, eax
push ebx
mov dword [esp + 0x34], eax
push ebp
mov dword [esp + 0x3c], eax
push esi
mov dword [esp + 0x44], eax
push edi
mov dword [esp + 0x4c], eax
push str.Moving_non_sensitive_log_files:
mov dword [esp + 0x1c], str.CommManager.log
mov dword [esp + 0x20], str.LCMScheduler.log
mov dword [esp + 0x24], str.Maintenance.log
mov dword [esp + 0x28], str.APUpdates.log
mov dword [esp + 0x2c], str.lcmupdate.dta
mov dword [esp + 0x30], str.lcmcomm.log
mov dword [esp + 0x34], str.lcmcommh.log
mov dword [esp + 0x38], str.lcmcomma.log
mov dword [esp + 0x3c], str.lcminet.log
mov dword [esp + 0x40], str.00nonsensitive.log
mov dword [esp + 0x54], eax
call fcn.00401000
lea ecx, [esp + 0x1c]
add esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov ebx, dword [edx]
test ebx, ebx
je 0x402575
mov edi, dword [esp + 0x858]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x254]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x85c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
push eax
lea eax, [esp + 0x258]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x402558
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x254]
push ecx
push edx
lea eax, [esp + 0x45c]
push str.____Moving__s_to__s...
push eax
call ebp
lea ecx, [esp + 0x464]
push ecx
call fcn.00401000
lea edx, [esp + 0x68]
push edx
call fcn.00401580
add esp, 0x18
test al, al
lea eax, [esp + 0x54]
push eax
jne 0x40246d
lea ecx, [esp + 0x458]
push str.Error:_Could_not_delete__s.
push ecx
call ebp
lea edx, [esp + 0x460]
push edx
jmp 0x402550
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
lea edx, [esp + 0x54]
jne 0x4024b0
lea eax, [esp + 0x254]
push edx
push eax
lea ecx, [esp + 0x45c]
push str.Error:_Could_not_move__s_to__s.
push ecx
call ebp
lea edx, [esp + 0x464]
push edx
call fcn.00401000
add esp, 0x14
jmp 0x402558
mov edi, dword [esp + 0x858]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x54]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401580
add esp, 4
test al, al
jne 0x402558
lea ecx, [esp + 0x54]
lea edx, [esp + 0x454]
push ecx
push str.Error:_Could_not_delete__s.
push edx
call ebp
lea eax, [esp + 0x460]
push eax
call fcn.00401000
add esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 0xf
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x40231d
push str.Non_sensitive_log_files_were_successfully_moved.
call fcn.00401000
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x844
ret