Function at 0x40dba0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4665b8
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x482410]
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.00412510
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x40dbec
mov al, 1
jmp 0x40dece
lea ecx, [ebp - 0x14]
call fcn.00414300
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00414660
mov byte [ebp - 4], 1
jmp 0x40dc15
lea ecx, [ebp - 0x1c]
call fcn.00414350
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00414780
add esp, 8
movzx edx, al
test edx, edx
je 0x40dd55
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414320
mov ecx, eax
call fcn.004109d0
mov ecx, dword [eax]
push ecx
call fcn.004124d0
add esp, 4
movzx edx, al
test edx, edx
je 0x40dcad
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x40dcad
movzx ecx, byte [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00414320
mov ecx, eax
call fcn.0043fef0
push eax
call fcn.0040dba0
add esp, 8
movzx edx, al
test edx, edx
jne 0x40dca8
mov byte [ebp - 0x21], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004140f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004140f0
mov al, byte [ebp - 0x21]
jmp 0x40dece
jmp 0x40dd50
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414320
mov ecx, eax
call fcn.0043fef0
mov ecx, eax
call fcn.0040ab30
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.0040a980
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
push eax
call fcn.0040e650
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.00418190
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00401100
movzx edx, byte [ebp - 0x22]
test edx, edx
je 0x40dd50
mov byte [ebp - 0x5d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004140f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004140f0
mov al, byte [ebp - 0x5d]
jmp 0x40dece
jmp 0x40dc0d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004140f0
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ab30
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.00401ed0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40de40
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040ab30
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.0040a980
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.0040dee0
add esp, 4
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd8]
or eax, dword [ebp - 0xd4]
je 0x40de40
mov dword [ebp - 0xdc], 0
jmp 0x40de4a
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 0x40de77
and dword [ebp - 0xb8], 0xfffffffb
lea ecx, [ebp - 0x98]
call fcn.00418190
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
and eax, 2
je 0x40de9b
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 0x40debc
and dword [ebp - 0xb8], 0xfffffffe
lea ecx, [ebp - 0x7c]
call fcn.00401100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004140f0
mov al, byte [ebp - 0x5e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret