Function at 0x40ca60
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5cf2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0
call fcn.004d49a2
push 0x60518f
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.0041c4a0
push 0x6061f0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x68], 2
call fcn.00404cc0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 3
call fcn.00404ec0
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40caff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x40]
call fcn.004d4a2e
test eax, eax
je 0x40ccea
mov bl, 4
lea ecx, [esp + 0x38]
call fcn.004d4733
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.004d4969
test eax, eax
jne 0x40ccdf
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004d4c5d
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call edx
test eax, eax
push 0x60518f
je 0x40cc35
lea ecx, [esp + 0x1c]
call fcn.0041c4a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x68], 5
call fcn.0041c6f0
add esp, 0xc
push 0x6061ec
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x68], 6
call fcn.00404cc0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.00404ec0
mov byte [esp + 0x5c], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.004052b0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.0040ca60
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40ccaf
lea ecx, [esp + 0x20]
call fcn.0041c4a0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x68], 8
call fcn.0041c6f0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00404ec0
mov byte [esp + 0x5c], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ccbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ccdf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x40cb19
lea ecx, [esp + 0x38]
call fcn.004d4663
mov esi, dword [esp + 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [esp + 0x5c], 1
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, edi
jne 0x40cd55
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.004d49c6
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cd51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40cd9b
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.004d49c6
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cd99
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