Function at 0x40e1f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a188
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4c5cd8]
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.00412a40
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40e23c
mov al, 1
jmp 0x40e51e
lea ecx, [ebp - 0x14]
call fcn.00414760
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00414a50
mov byte [ebp - 4], 1
jmp 0x40e265
lea ecx, [ebp - 0x1c]
call fcn.004147b0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00414b70
add esp, 8
movzx edx, al
test edx, edx
je 0x40e3a5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414780
mov ecx, eax
call fcn.00411080
mov ecx, dword [eax]
push ecx
call fcn.00412a00
add esp, 4
movzx edx, al
test edx, edx
je 0x40e2fd
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40e2fd
movzx ecx, byte [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00414780
mov ecx, eax
call fcn.00414960
push eax
call fcn.0040e1f0
add esp, 8
movzx edx, al
test edx, edx
jne 0x40e2f8
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00414570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00414570
mov al, byte [ebp - 0x21]
jmp 0x40e51e
jmp 0x40e3a0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414780
mov ecx, eax
call fcn.00414960
mov ecx, eax
call fcn.004098f0
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.0040b0d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0040eca0
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.00443bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00401100
movzx edx, byte [ebp - 0x22]
test edx, edx
je 0x40e3a0
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00414570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00414570
mov al, byte [ebp - 0x5d]
jmp 0x40e51e
jmp 0x40e25d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00414570
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004098f0
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.00401f30
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40e490
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.004098f0
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.0040b0d0
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.0040e530
add esp, 4
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd8]
or eax, dword [ebp - 0xd4]
je 0x40e490
mov dword [ebp - 0xdc], 0
jmp 0x40e49a
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 0x40e4c7
and dword [ebp - 0xb8], 0xfffffffb
lea ecx, [ebp - 0x98]
call fcn.00443bc0
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
and eax, 2
je 0x40e4eb
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 0x40e50c
and dword [ebp - 0xb8], 0xfffffffe
lea ecx, [ebp - 0x7c]
call fcn.00401100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00414570
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret