Function at 0x40ca10
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x420170
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 4]
add eax, 0x22e4
push eax
call fcn.0040f370
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40ca94
mov ecx, dword [esi + 4]
add ecx, 0x22e4
push ecx
call ebx
test eax, eax
jne 0x40ca94
push edi
mov edx, dword [esi + 4]
add edx, 0x22e4
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x23e8
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cacc
mov ecx, dword [esi + 4]
add ecx, 0x23e8
push ecx
call ebx
test eax, eax
jne 0x40cacc
push edi
mov edx, dword [esi + 4]
add edx, 0x23e8
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x2e10
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cb04
mov ecx, dword [esi + 4]
add ecx, 0x2e10
push ecx
call ebx
test eax, eax
jne 0x40cb04
push edi
mov edx, dword [esi + 4]
add edx, 0x2e10
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x670
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cb3c
mov ecx, dword [esi + 4]
add ecx, 0x670
push ecx
call ebx
test eax, eax
jne 0x40cb3c
push edi
mov edx, dword [esi + 4]
add edx, 0x670
push edx
call fcn.0040f500
add esp, 8
push edi
mov eax, dword [esi + 4]
add eax, 0x3324
push eax
call fcn.0040f500
mov ecx, dword [esi + 4]
add ecx, 0x670
push ecx
call fcn.0040f370
add esp, 0xc
test eax, eax
je 0x40cb6d
mov edx, dword [esi + 4]
add edx, 0x670
push edx
call ebx
mov eax, dword [esi + 4]
add eax, 0x25f0
lea edx, [ebp + 0x104]
jmp 0x40cb80
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x40cb80
push 0x2e
lea eax, [ebp + 0x104]
push eax
call fcn.0040fe80
add esp, 8
mov edi, eax
test edi, edi
je 0x40ccab
mov ecx, dword [str..hlp]
mov dword [edi], ecx
mov dl, byte [0x4216ec]
mov byte [edi + 4], dl
lea eax, [ebp + 0x104]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cbea
lea ecx, [ebp + 0x104]
push ecx
call ebx
test eax, eax
jne 0x40cbea
push eax
lea edx, [ebp + 0x104]
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [str..cnt]
mov dword [edi], eax
mov cl, byte [0x4216e4]
mov byte [edi + 4], cl
lea edx, [ebp + 0x104]
push edx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cc2a
lea eax, [ebp + 0x104]
push eax
call ebx
test eax, eax
jne 0x40cc2a
push eax
lea ecx, [ebp + 0x104]
push ecx
call fcn.0040f500
add esp, 8
mov edx, dword [str..chm]
mov dword [edi], edx
mov al, byte [0x4216dc]
mov byte [edi + 4], al
lea ecx, [ebp + 0x104]
push ecx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cc6a
lea edx, [ebp + 0x104]
push edx
call ebx
test eax, eax
jne 0x40cc6a
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.0040f500
add esp, 8
mov ecx, dword [str..gid]
mov dword [edi], ecx
mov dl, byte [0x4216d4]
mov byte [edi + 4], dl
lea eax, [ebp + 0x104]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40ccab
lea ecx, [ebp + 0x104]
push ecx
call ebx
test eax, eax
jne 0x40ccab
push eax
lea edx, [ebp + 0x104]
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x56c
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cce3
mov ecx, dword [esi + 4]
add ecx, 0x56c
push ecx
call ebx
test eax, eax
jne 0x40cce3
push eax
mov edx, dword [esi + 4]
add edx, 0x56c
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x25f0
lea edx, [ebp]
mov edi, edi
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x40ccf0
push 0x5c
lea eax, [ebp]
push eax
call fcn.0040fe80
add esp, 8
test eax, eax
je 0x40cd13
mov byte [eax], 0
lea ecx, [ebp]
push ecx
call fcn.0040e2c0
add esp, 4
lea eax, [ebp]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40cd25
mov edx, dword [str.SpectorCNE.chm]
mov dword [eax], edx
mov ecx, dword [0x435170]
mov dword [eax + 4], ecx
mov edx, dword [0x435174]
mov dword [eax + 8], edx
mov cx, word [0x435178]
mov word [eax + 0xc], cx
mov dl, byte [0x43517a]
mov byte [eax + 0xe], dl
lea eax, [ebp]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cd84
lea ecx, [ebp]
push ecx
call ebx
test eax, eax
jne 0x40cd84
push eax
lea edx, [ebp]
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x25f0
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cdbc
mov ecx, dword [esi + 4]
add ecx, 0x25f0
push ecx
call ebx
test eax, eax
jne 0x40cdbc
push eax
mov edx, dword [esi + 4]
add edx, 0x25f0
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x26f4
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40cdf4
mov ecx, dword [esi + 4]
add ecx, 0x26f4
push ecx
call ebx
test eax, eax
jne 0x40cdf4
push eax
mov edx, dword [esi + 4]
add edx, 0x26f4
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x3220
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40ce2c
mov ecx, dword [esi + 4]
add ecx, 0x3220
push ecx
call ebx
test eax, eax
jne 0x40ce2c
push eax
mov edx, dword [esi + 4]
add edx, 0x3220
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [esi + 4]
add eax, 0x2c08
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40ce64
mov ecx, dword [esi + 4]
add ecx, 0x2c08
push ecx
call ebx
test eax, eax
jne 0x40ce64
push eax
mov edx, dword [esi + 4]
add edx, 0x2c08
push edx
call fcn.0040f500
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40ce82
mov eax, dword [esi + 4]
add eax, 0x28fc
push eax
call fcn.0040c400
add esp, 4
mov ecx, dword [esi + 4]
add ecx, 0x27f8
push ecx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x40ceba
mov edx, dword [esi + 4]
add edx, 0x27f8
push edx
call ebx
test eax, eax
jne 0x40ceba
push eax
mov eax, dword [esi + 4]
add eax, 0x27f8
push eax
call fcn.0040f500
add esp, 8
mov esi, dword [esi + 4]
lea edx, [esi + 0x108c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cec8
sub eax, esi
je 0x40cede
push edx
call fcn.0040ee60
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x20c
mov esp, ebp
pop ebp
ret