Function at 0x40c480
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4310e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea eax, [esp + 0x1c]
push str._Y__m__d
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.00427d26
mov ecx, eax
call fcn.00427d68
lea edx, [esp + 0x54]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x16c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x54]
push 0x5c
push eax
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.CapLog__________.idx
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x54]
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]
lea ecx, [esp + 0x3c]
call fcn.0042802e
lea eax, [esp + 0x3c]
lea edx, [esp + 0x54]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x16c], 1
call fcn.00428960
mov ecx, ebp
call fcn.0040b700
mov eax, dword [esp + 0x44]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x40c801
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.0040b910
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push str.date
push str.NETIDX
push edx
mov ecx, 0x441320
mov byte [esp + 0x170], 2
call fcn.004161f0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x168], 3
call fcn.00428667
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.0040b940
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
push edx
push eax
call fcn.0041bda7
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
setl bl
call fcn.004288f2
test bl, bl
je 0x40c620
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40c7ae
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push str.del.
push edx
call fcn.00428baf
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0041c94d
add esp, 8
lea ecx, [esp + 0x28]
jmp 0x40c7a9
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00428667
lea eax, [esp + 0x38]
mov ecx, ebp
push eax
call fcn.0040b940
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041bda7
add esp, 8
lea ecx, [esp + 0x34]
test eax, eax
setg bl
call fcn.004288f2
push ecx
test bl, bl
mov ecx, esp
je 0x40c6c4
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
push edx
call fcn.00428667
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.0040b940
mov eax, dword [eax]
mov ecx, 0x441320
push eax
push str.date
push str.NETIDX
mov byte [esp + 0x16c], 4
call fcn.004160d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 3
call fcn.004288f2
push 0
push 0x43b32c
push str.NETIDX
mov ecx, 0x441320
call fcn.004161a0
jmp 0x40c70e
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], esp
push edx
call fcn.00428667
lea eax, [esp + 0x3c]
mov ecx, ebp
push eax
call fcn.0040b940
mov eax, dword [eax]
mov ecx, 0x441320
push eax
push str.date
push str.NETIDX
mov byte [esp + 0x16c], 5
call fcn.004160d0
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 3
call fcn.004288f2
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00428667
mov ecx, ebp
call fcn.0040c860
test eax, eax
je 0x40c7df
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov edi, 1
call fcn.00428667
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.0040b940
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
push edx
push eax
call fcn.0041bda7
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
setne bl
call fcn.004288f2
test bl, bl
je 0x40c7df
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40c7ae
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push str.del.
push edx
call fcn.00428baf
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0041c94d
add esp, 8
lea ecx, [esp + 0x20]
call fcn.004288f2
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 2
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 1
call fcn.004288f2
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x40c564
jmp 0x40c801
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 2
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 1
call fcn.004288f2
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x44]
call fcn.004280c1
test edi, edi
je 0x40c819
mov ecx, ebp
call fcn.0040ca20
lea ecx, [esp + 0x3c]
mov byte [esp + 0x160], 0
call fcn.00428061
lea ecx, [esp + 0x1c]
mov dword [esp + 0x160], 0xffffffff
call fcn.004288f2
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret