Function at 0x40a100
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x51fa20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x54]
push 0x5c
push edi
call fcn.004d1550
add esp, 8
test eax, eax
je 0x40a1c0
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x40a1c0
mov ecx, dword [edi - 0xc]
add ecx, 0xffffffff
cmp eax, ecx
jne 0x40a1c0
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040b040
mov byte [esp + 0x4c], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40a1b2
cmp dword [esi + 0xc], 0
jl 0x40a1a0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a1a0
push eax
call fcn.0040c900
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00401380
add edi, 0x10
mov dword [esp + 0x54], edi
jmp 0x40a1ae
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040c800
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call fcn.0040ad40
cmp dword [edi - 0xc], 0
jne 0x40a20d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea esi, [edi - 0x10]
lea edi, [esi + 0xc]
mov dword [esp + 0x4c], 0xffffffff
cmp dword [edi], 0
jne 0x40a1fe
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a1fe
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jmp 0x40a498
lea ecx, [esp + 0x28]
call fcn.0042bfd0
push 0x5aa758
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
mov ebx, 2
push edx
mov byte [esp + 0x58], bl
call fcn.0040b0f0
add esp, 0xc
mov byte [esp + 0x4c], 3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.0042c150
mov byte [esp + 0x4c], bl
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov ebp, eax
jne 0x40a27c
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push ebx
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a27c
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a292
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
je 0x40a440
lea ecx, [esp + 0x28]
call fcn.0042c780
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.0042cc00
push 0x5aa760
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 4
call fcn.0040b1f0
add esp, 4
test al, al
jne 0x40a3ee
push 0x5aa764
lea ecx, [esp + 0x18]
call fcn.0040b1f0
add esp, 4
test al, al
jne 0x40a3ee
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
call fcn.0042c980
mov byte [esp + 0x4c], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40a34a
cmp dword [esi + 0xc], 0
jl 0x40a33c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a33c
push eax
call fcn.0040c900
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.00401380
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x40a34a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040c800
mov byte [esp + 0x4c], 4
mov esi, dword [esp + 0x18]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x40a37c
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push ebx
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a37c
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a392
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x28]
call fcn.0042d500
test eax, eax
mov eax, dword [esp + 0x14]
je 0x40a3dd
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0040c900
mov ecx, dword [esp + 0x24]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040a100
mov edx, dword [esp + 0x14]
push edx
call ebp
jmp 0x40a3ee
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a3ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x4c], bl
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jne 0x40a41f
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push ebx
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a41f
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40a435
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
cmp dword [esp + 0x20], 0
jne 0x40a2a0
lea ecx, [esp + 0x28]
call fcn.0042c0a0
mov esi, dword [esp + 0x54]
push esi
call ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.0042c030
add esi, 0xfffffff0
lea edi, [esi + 0xc]
mov dword [esp + 0x4c], 0xffffffff
cmp dword [edi], 0
jne 0x40a48e
push str.nRefs___0
push 0
push 0x6b
push str.C:Program_Files__x86_Microsoft_Visual_Studio_8VC_atlmfcinclude_atlsimpstr.h
push ebx
call fcn.004d4350
add esp, 0x14
cmp eax, 1
jne 0x40a48e
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40a4a4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4