Function at 0x40dc70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4651a8
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x481410]
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.004126a0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40dcbc
mov al, 1
jmp 0x40df9e
lea ecx, [ebp - 0x14]
call fcn.00414490
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004147c0
mov byte [ebp - 4], 1
jmp 0x40dce5
lea ecx, [ebp - 0x1c]
call fcn.004144e0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004148e0
add esp, 8
movzx edx, al
test edx, edx
je 0x40de25
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004144b0
mov ecx, eax
call fcn.00410ae0
mov ecx, dword [eax]
push ecx
call fcn.00412660
add esp, 4
movzx edx, al
test edx, edx
je 0x40dd7d
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40dd7d
movzx ecx, byte [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004144b0
mov ecx, eax
call fcn.0042cc80
push eax
call fcn.0040dc70
add esp, 8
movzx edx, al
test edx, edx
jne 0x40dd78
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00433c70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00433c70
mov al, byte [ebp - 0x21]
jmp 0x40df9e
jmp 0x40de20
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004144b0
mov ecx, eax
call fcn.0042cc80
mov ecx, eax
call fcn.0040b030
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.0040afb0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0040e720
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.00418350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00401100
movzx edx, byte [ebp - 0x22]
test edx, edx
je 0x40de20
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00433c70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00433c70
mov al, byte [ebp - 0x5d]
jmp 0x40df9e
jmp 0x40dcdd
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00433c70
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b030
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.00401ec0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40df10
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040b030
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.0040afb0
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.0040dfb0
add esp, 4
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd8]
or eax, dword [ebp - 0xd4]
je 0x40df10
mov dword [ebp - 0xdc], 0
jmp 0x40df1a
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 0x40df47
and dword [ebp - 0xb8], 0xfffffffb
lea ecx, [ebp - 0x98]
call fcn.00418350
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
and eax, 2
je 0x40df6b
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 0x40df8c
and dword [ebp - 0xb8], 0xfffffffe
lea ecx, [ebp - 0x7c]
call fcn.00401100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00433c70
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret