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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6986e5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.0043b70d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
push eax
call fcn.00407700
mov esi, eax
add esp, 4
lea ecx, [esi + 0x10]
mov dword [ebp - 0x10], ecx
mov edi, dword [esi + 4]
mov byte [ebp - 4], 2
cmp edi, 1
jg 0x4133ac
push esi
call fcn.00407700
add esp, 4
lea esi, [eax + 0x10]
jmp 0x413419
mov ecx, dword [esi]
test ecx, ecx
je 0x4133de
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4133de
add edi, 0xf
add edi, esi
mov eax, edi
test eax, eax
je 0x4135d1
mov eax, dword [ecx]
push 1
push 1
call dword [eax]
test eax, eax
je 0x4135db
jmp 0x4133fd
call fcn.0042a586
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
add edi, 0xf
mov ecx, eax
add edi, esi
mov eax, edi
test ecx, ecx
je 0x4135e0
jmp 0x4133c4
cmp dword [eax + 8], 1
lea esi, [eax + 0x10]
jl 0x4135d1
mov dword [esi - 0xc], 1
mov byte [esi + 1], 0
mov al, byte [edi]
mov byte [esi], al
push 0x6c1a10
push esi
call fcn.00657b21
or ebx, 0xffffffff
add esp, 8
mov edi, eax
add esi, 0xfffffff0
mov ecx, ebx
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x413443
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x413456
push 1
push 0x6c1a10
lea ecx, [ebp - 0x10]
call fcn.0040d9b0
push 3
push 0x6c252c
lea ecx, [ebp - 0x10]
call fcn.0040d9b0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
push 0
push esi
call fcn.0043b9f6
test eax, eax
je 0x41357d
nop dword [eax + eax]
lea ecx, [ebp - 0x38]
call fcn.0043bbaf
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], eax
call fcn.0043bf6d
test eax, eax
jne 0x413573
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043bca5
mov ecx, dword [eax]
lea edi, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x4134ff
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4134f0
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4134f0
push edx
call fcn.00407700
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4134e8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x4134ff
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403730
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41351d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
push 0x10
call dword [eax + 0x38]
test eax, eax
jne 0x413541
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x413573
push ecx
lea eax, [esi - 0x10]
mov edi, esp
push eax
mov dword [ebp - 0x14], edi
call fcn.00407700
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.00413340
add esp, 4
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp - 0x1c], 0
jne 0x413480
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413598
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.0043b8d3
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4135bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402130
call fcn.00403910
push 0x80004005
call fcn.00402130
int3