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

Disassembly:
push 0xffffffffffffffff
push 0x45d371
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4754f4]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x64]
cmp dword [eax - 0xc], ebx
jne 0x40a674
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a66d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40a8d4
lea ecx, [esp + 0x38]
call fcn.0041c638
push 0x468808
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x68], 1
call fcn.00402300
add esp, 0xc
mov byte [esp + 0x5c], 2
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.0041c6cd
mov esi, eax
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp esi, ebx
je 0x40a88c
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x38]
call fcn.0041c33c
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.0041c907
mov byte [esp + 0x5c], 3
mov eax, dword [eax]
push 0x46880c
or ebx, 1
push eax
mov dword [esp + 0x24], ebx
call fcn.0042da2a
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40a753
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.0041c907
mov eax, dword [eax]
push 0x468810
push eax
or ebx, 2
call fcn.0042da2a
add esp, 8
test eax, eax
sete al
mov byte [esp + 0x1b], 0
test al, al
je 0x40a758
mov byte [esp + 0x1b], 1
test bl, 2
je 0x40a784
mov eax, dword [esp + 0x20]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5c], 1
test bl, 1
je 0x40a7b4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
jne 0x40a884
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041c87b
mov eax, dword [eax]
push 0x80
push eax
call ebp
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a7f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call eax
test eax, eax
je 0x40a84d
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x40]
call fcn.0041c87b
mov ecx, dword [esp + 0x30]
call fcn.0040a600
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x3c]
call fcn.0041c87b
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40a878
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0041c87b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a884
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40a6e6
lea ecx, [esp + 0x38]
call fcn.0041c256
mov ecx, dword [esp + 0x64]
push ecx
call edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.0041c65e
mov dword [esp + 0x5c], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a8d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4