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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697f66
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x75f140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
or esi, 0xffffffff
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
jne 0x40e0f7
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40e2c1
lea ecx, [ebp - 0x44]
call fcn.0043b70d
push 0x6c1058
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406fc0
add esp, 0xc
push 0
push dword [eax]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0043b9f6
mov edx, dword [ebp - 0x14]
mov edi, eax
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e148
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x40e2a8
lea ecx, [ebp - 0x44]
call fcn.0043bbaf
mov edi, eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x1c]
push eax
call fcn.0043bc56
push 0x6c1a0c
push dword [eax]
or ebx, 1
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call fcn.00657b21
add esp, 8
test eax, eax
je 0x40e1a9
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.0043bc56
push 0x6c23bc
or ebx, 2
push dword [eax]
call fcn.00657b21
add esp, 8
mov byte [ebp - 0xd], 0
test eax, eax
jne 0x40e1ad
mov byte [ebp - 0xd], 1
test bl, 2
je 0x40e1d2
mov edx, dword [ebp - 0x18]
and ebx, 0xfffffffd
mov dword [ebp - 0x14], ebx
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e1d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
test bl, 1
je 0x40e1fb
mov edx, dword [ebp - 0x1c]
and ebx, 0xfffffffe
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e1fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x40e2a0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.0043bca5
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e238
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
push 0x10
call dword [eax + 0x38]
test eax, eax
je 0x40e272
push ecx
push esp
lea ecx, [ebp - 0x44]
call fcn.0043bca5
call fcn.0040e0b0
add esp, 4
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x44]
push eax
call fcn.0043bca5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp - 0x24]
jmp 0x40e289
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.0043bca5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x28]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e2a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x40e150
lea ecx, [ebp - 0x44]
call fcn.0043b99c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x44]
call fcn.0043b8d3
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40e2e0
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