Function at 0x40e690
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495bc8
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4bfa48]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00412e80
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40e6dc
mov al, 1
jmp 0x40e9be
lea ecx, [ebp - 0x14]
call fcn.00414b40
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00414e20
mov byte [ebp - 4], 1
jmp 0x40e705
lea ecx, [ebp - 0x1c]
call fcn.00414b90
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00414f40
add esp, 8
movzx edx, al
test edx, edx
je 0x40e845
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414b60
mov ecx, eax
call fcn.004113d0
mov ecx, dword [eax]
push ecx
call fcn.00412e40
add esp, 4
movzx edx, al
test edx, edx
je 0x40e79d
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40e79d
movzx ecx, byte [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00414b60
mov ecx, eax
call fcn.0042bdb0
push eax
call fcn.0040e690
add esp, 8
movzx edx, al
test edx, edx
jne 0x40e798
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004149c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004149c0
mov al, byte [ebp - 0x21]
jmp 0x40e9be
jmp 0x40e840
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414b60
mov ecx, eax
call fcn.0042bdb0
mov ecx, eax
call fcn.0040b6e0
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x40]
call fcn.0040b530
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0040f140
add esp, 4
movzx ecx, al
neg ecx
sbb ecx, ecx
add ecx, 1
mov byte [ebp - 0x22], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004276d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00401100
movzx edx, byte [ebp - 0x22]
test edx, edx
je 0x40e840
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004149c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004149c0
mov al, byte [ebp - 0x5d]
jmp 0x40e9be
jmp 0x40e6fd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004149c0
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b6e0
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xb8]
or edx, 1
mov dword [ebp - 0xb8], edx
mov ecx, dword [ebp - 0xc8]
call fcn.00401eb0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40e930
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b6e0
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xb8]
or edx, 2
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040b530
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0xb8]
or ecx, 4
mov dword [ebp - 0xb8], ecx
lea edx, [ebp - 0x98]
push edx
call fcn.0040e9d0
add esp, 4
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd8]
or eax, dword [ebp - 0xd4]
je 0x40e930
mov dword [ebp - 0xdc], 0
jmp 0x40e93a
mov dword [ebp - 0xdc], 1
mov cl, byte [ebp - 0xdc]
mov byte [ebp - 0x5e], cl
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xb8]
and edx, 4
je 0x40e967
and dword [ebp - 0xb8], 0xfffffffb
lea ecx, [ebp - 0x98]
call fcn.004276d0
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
and eax, 2
je 0x40e98b
and dword [ebp - 0xb8], 0xfffffffd
lea ecx, [ebp - 0xb4]
call fcn.00401100
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xb8]
and ecx, 1
je 0x40e9ac
and dword [ebp - 0xb8], 0xfffffffe
lea ecx, [ebp - 0x7c]
call fcn.00401100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004149c0
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret