Function at 0x40c980
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fecb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x10], esi
call fcn.00419ce0
mov edi, dword [esi + 0x2bc]
lea ecx, [ebp - 0x48]
xor ebx, ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.00408e30
add esp, 8
mov eax, dword [ebp + 8]
mov esi, 0x10
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x40c9d9
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x40c9e5
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40c9f1
lea eax, [ebp - 0x2c]
push eax
push str.ID:_s__s__delete_tool__s
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 8
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.DoDelete
mov byte [ecx], bl
call fcn.00404e20
push 4
push 0x57d720
call fcn.0041cec0
add esp, 0x34
lea ecx, [ebp - 0x1dc]
call fcn.00404940
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1dc]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ebp - 4], 2
mov byte [ecx], bl
call fcn.00404af0
mov byte [ebp - 4], 3
call fcn.0042f580
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0042a6f0
cmp al, bl
je 0x40cd54
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.0042f580
mov ecx, eax
call fcn.0042e9b0
test al, al
je 0x40cd09
mov ecx, dword [ebp - 0x10]
push 1
push 1
push 1
push 1
call fcn.0040b590
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x250]
lea edx, [ebp - 0x1dc]
push edx
call fcn.00420d00
cmp dword [ebp - 0x194], 1
jbe 0x40cd09
lea ecx, [ebp - 0xbc]
push ecx
call fcn.004222c0
mov ecx, eax
call fcn.00406530
lea edx, [ebp - 0x1a4]
push edx
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 4
call fcn.004088d0
add esp, 0xc
mov byte [ebp - 4], 6
cmp dword [ebp - 0xa8], esi
jb 0x40cb0b
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.004df8f9
add esp, 4
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xac], ebx
mov byte [ebp - 0xbc], bl
cmp dword [ebp - 0x70], esi
jae 0x40cb2e
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40cb3a
lea eax, [ebp - 0x2c]
push eax
push str.ID:_s_delete_directory__s
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 8
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.DoDelete
mov byte [ecx], bl
call fcn.00404e20
push 4
push 0x57d720
call fcn.0041cec0
mov eax, dword [ebp - 0x84]
add esp, 0x30
cmp dword [ebp - 0x70], esi
jae 0x40cb7c
lea eax, [ebp - 0x84]
push eax
call fcn.004224a0
lea edx, [ebp - 0xd8]
add esp, 4
push edx
call fcn.004222c0
mov ecx, eax
call fcn.00406530
push str.toolslogo_
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 7
call fcn.00408880
lea ecx, [ebp - 0x1dc]
push ecx
push eax
lea edx, [ebp - 0xf4]
push edx
mov byte [ebp - 4], 8
call fcn.004088d0
push 0x50484c
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 9
call fcn.00408880
add esp, 0x24
cmp dword [ebp - 0xe0], esi
jb 0x40cbf3
mov ecx, dword [ebp - 0xf4]
push ecx
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xe4], ebx
mov byte [ebp - 0xf4], bl
cmp dword [ebp - 0x8c], esi
jb 0x40cc1c
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov byte [ebp - 0xa0], bl
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc4], esi
jb 0x40cc49
mov eax, dword [ebp - 0xd8]
push eax
call fcn.004df8f9
add esp, 4
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc8], ebx
mov byte [ebp - 0xd8], bl
cmp dword [ebp - 0x54], esi
jae 0x40cc66
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40cc72
lea eax, [ebp - 0x2c]
push eax
push str.ID:_s_delete_logo__s
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 8
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.DoDelete
mov byte [ecx], bl
call fcn.00404e20
push 4
push 0x57d720
call fcn.0041cec0
mov eax, dword [ebp - 0x68]
add esp, 0x30
cmp dword [ebp - 0x54], esi
jae 0x40ccae
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x15
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.Deleted_successfully_
mov byte [ecx], bl
call fcn.00404e20
mov ecx, dword [ebp - 0x10]
call fcn.00407e90
cmp dword [ebp - 0x54], esi
jb 0x40ccec
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x70], esi
jb 0x40cd09
mov edx, dword [ebp - 0x84]
push edx
call fcn.004df8f9
add esp, 4
lea ecx, [ebp - 0x1dc]
call fcn.00404820
cmp dword [ebp - 0x34], esi
jb 0x40cd25
mov eax, dword [ebp - 0x48]
push eax
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x40cd3f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004df8f9
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x2a
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.Failed_to_load_information_about_the_tool.
mov byte [ecx], bl
call fcn.00404e20
mov ecx, dword [ebp - 0x10]
call fcn.00407e90
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40cd84
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push 0x30
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.ID:_s_Failed_to_load_information_about_the_tool.
mov byte [ecx], bl
call fcn.00404e20
push 1
push 0x57d720
call fcn.0041cec0
add esp, 0x28
lea ecx, [ebp - 0x1dc]
call fcn.00404820
cmp dword [ebp - 0x34], esi
jb 0x40cdcc
mov edx, dword [ebp - 0x48]
push edx
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x40cde6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004df8f9
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4