Function at 0x40df30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, edx
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
push eax
push ebx
mov edx, dword [edi]
lea ecx, [edi + 0x3c]
push esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
call fcn.0041e3a0
add esp, 0xc
test eax, eax
je 0x40e0e7
mov dword [edi + 0x1c], 0
test ebx, ebx
je 0x40df8a
cmp byte [ebx + esi - 1], 0x2f
jne 0x40df8a
dec ebx
mov eax, dword [edi + 0x18]
lea ecx, [ebx + 0x10]
test eax, eax
je 0x40df98
cmp eax, ecx
jae 0x40dff3
imul esi, ecx, 0x66
mov eax, 0x10
shr esi, 8
add esi, ecx
cmp esi, eax
cmovb esi, eax
mov eax, dword [edi + 0x10]
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [edi + 0x14]
push eax
mov eax, dword [edx + 4]
push esi
push ecx
call eax
add esp, 0xc
test eax, eax
jne 0x40dff3
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x40dfef
mov edx, dword [esi + 4]
test edx, edx
je 0x40dfe2
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [esi], 0x1d
mov dword [esi + 4], 0x4479a8
xor esi, esi
jmp 0x40dff8
lea esi, [edi + 0x14]
mov esi, dword [esi]
push ebx
push dword [ebp - 0x34]
push esi
call fcn.00426ea0
add esp, 0xc
mov byte [ebx + esi], 0x5c
add ebx, esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
add ebx, 1
je 0x40e033
push 8
push str.live.db
push ebx
call fcn.00426ea0
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 0
push eax
xorps xmm0, xmm0
push 0
push esi
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
mov ecx, dword [ebp - 0x14]
xor eax, eax
or eax, dword [ebp - 0x10]
or ecx, 0
mov dword [ebp - 8], eax
mov dword [ebp - 0x40], ecx
ja 0x40e06c
cmp eax, 0x80000000
jbe 0x40e08c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x40]
push dword [ebp - 8]
push esi
push str.Size_of__s_is_too_big___I64d___daemon_will_recreate_it.
push 3
push dword [ebp - 0x44]
call fcn.00401210
add esp, 0x18
push dword [ebp - 0x38]
mov edx, esi
mov ecx, edi
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call fcn.0040dbb0
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
je 0x40e0e7
test ebx, ebx
je 0x40e0bc
push 8
push str.dead.db
push ebx
call fcn.00426ea0
add esp, 0xc
push dword [ebp - 0x38]
mov edx, esi
mov ecx, edi
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
call fcn.0040dd80
add esp, 0xc
mov dword [edi + 8], eax
test eax, eax
jne 0x40e0fa
mov ecx, dword [edi + 4]
call fcn.00405cd0
mov dword [edi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movq qword [edi + 0x30], xmm0
xor ecx, ebp
mov dword [edi + 0x38], 0
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00425576
mov esp, ebp
pop ebp
ret