Function at 0x510a1c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3d
push 0
push 0
dec ecx
jne 0x510a24
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
call fcn.00404d40
lea eax, [ebp - 0x160]
mov edx, dword [0x408030]
call fcn.00405248
xor eax, eax
push ebp
push 0x510f7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
push eax
mov eax, dword [ebp + 8]
call fcn.00404b50
mov edx, eax
mov ecx, 1
mov eax, dword [ebp + 8]
call fcn.00404db0
mov eax, dword [ebp - 0x164]
mov edx, 0x510f98
call fcn.00404c9c
je 0x510a97
lea eax, [ebp - 4]
mov ecx, 0x510f98
mov edx, dword [ebp + 8]
call fcn.00404b9c
jmp 0x510aa2
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
call fcn.00404928
lea eax, [ebp - 0x168]
mov ecx, 0x510fa4
mov edx, dword [ebp - 4]
call fcn.00404b9c
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00409c00
test eax, eax
jne 0x510e98
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x154]
call fcn.00408f90
mov eax, dword [ebp - 8]
mov edx, 0x510fb0
call fcn.00404c9c
je 0x510e7a
mov eax, dword [ebp - 8]
mov edx, 0x510fbc
call fcn.00404c9c
je 0x510e7a
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404b9c
mov eax, dword [ebp - 0x158]
test al, 0x10
je 0x510b30
mov eax, dword [ebp - 8]
push eax
call fcn.00510a1c
jmp 0x510e7a
mov edx, eax
and edx, 0x3f
cmp eax, edx
jne 0x510e7a
xor eax, eax
push ebp
push 0x510e70
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x16c]
call fcn.00408d7c
mov eax, dword [ebp - 0x16c]
mov edx, 0x510fc8
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x174]
call fcn.00408d7c
mov eax, dword [ebp - 0x174]
mov edx, 0x510fe0
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.00408d7c
mov eax, dword [ebp - 0x17c]
mov edx, 0x510ff4
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x184]
call fcn.00408d7c
mov eax, dword [ebp - 0x184]
mov edx, 0x511004
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x190]
lea edx, [ebp - 0x18c]
call fcn.00408d7c
mov eax, dword [ebp - 0x18c]
mov edx, 0x511014
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x194]
call fcn.00408d7c
mov eax, dword [ebp - 0x194]
mov edx, 0x511028
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1a0]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1a0]
lea edx, [ebp - 0x19c]
call fcn.00408d7c
mov eax, dword [ebp - 0x19c]
mov edx, 0x511038
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1a8]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1a8]
lea edx, [ebp - 0x1a4]
call fcn.00408d7c
mov eax, dword [ebp - 0x1a4]
mov edx, 0x511050
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1b0]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1ac]
call fcn.00408d7c
mov eax, dword [ebp - 0x1ac]
mov edx, 0x511068
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1b8]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b4]
call fcn.00408d7c
mov eax, dword [ebp - 0x1b4]
mov edx, 0x511080
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1c0]
lea edx, [ebp - 0x1bc]
call fcn.00408d7c
mov eax, dword [ebp - 0x1bc]
mov edx, 0x511094
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1c8]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1c8]
lea edx, [ebp - 0x1c4]
call fcn.00408d7c
mov eax, dword [ebp - 0x1c4]
mov edx, 0x5110a8
call fcn.00404c9c
jne 0x510df0
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1d0]
lea edx, [ebp - 0x1cc]
call fcn.00408d7c
mov eax, dword [ebp - 0x1cc]
mov edx, 0x5110bc
call fcn.00404c9c
je 0x510e21
lea edx, [ebp - 0x1d8]
mov eax, dword [ebp - 8]
call fcn.00409ed8
mov eax, dword [ebp - 0x1d8]
call fcn.00404d50
mov edx, eax
lea eax, [ebp - 0x1d4]
call fcn.00404a88
mov eax, dword [ebp - 0x1d4]
call fcn.0051035c
mov eax, dword [ebp - 8]
call fcn.00404d50
mov edx, eax
lea eax, [ebp - 0x1dc]
call fcn.00404a88
mov eax, dword [ebp - 0x1dc]
mov edx, 0x20
call fcn.00409b74
mov eax, dword [ebp - 8]
call fcn.00404d50
mov edx, eax
lea eax, [ebp - 0x1e0]
call fcn.00404a88
mov eax, dword [ebp - 0x1e0]
call fcn.00409c90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510e7a
lea eax, [ebp - 0x160]
call fcn.00409c50
test eax, eax
je 0x510ad3
lea eax, [ebp - 0x160]
call fcn.00409c74
xor eax, eax
push ebp
push 0x510f30
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d50
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x1e4]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b50
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404db0
lea eax, [ebp - 0x1e4]
mov edx, 0x5110cc
call fcn.00404b58
mov eax, dword [ebp - 0x1e4]
call fcn.00404d50
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x1e8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b50
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404db0
mov eax, dword [ebp - 0x1e8]
call fcn.00404d50
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510f3a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510f85
lea eax, [ebp - 0x1e8]
mov edx, 0x22
call fcn.004048b4
lea eax, [ebp - 0x160]
mov edx, dword [0x408030]
call fcn.00405318
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b4
lea eax, [ebp + 8]
call fcn.00404890
ret