Function at 0x4c6f40
Capabilities:
Delete directory

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x5e78e7
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
push ecx
lea ecx, [ebp + 0x44]
movlpd qword [ebp - 0x14], xmm0
call fcn.0040aa10
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp + 0x44]
call fcn.004c78f0
lea ecx, [ebp + 4]
call fcn.004cc450
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0x18], 0
call fcn.005b75ca
mov dword [ebp], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
lea edx, [ebp + 0x44]
push 0x61d800
lea ecx, [ebp + 0x5c]
call fcn.004145e0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp + 4]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004cc780
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
mov esi, dword [ebp - 0x18]
test bl, bl
je 0x4c71ba
lea ecx, [ebp + 4]
call fcn.004cc540
test al, al
jne 0x4c7090
mov eax, dword [ebp + 0x24]
and eax, 0x10
or eax, 0
je 0x4c7025
mov al, 1
jmp 0x4c7027
xor al, al
test al, al
lea edx, [ebp + 0x44]
lea eax, [ebp + 0x2c]
lea ecx, [ebp + 0x5c]
push eax
je 0x4c7060
call fcn.00409420
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.004c6f40
mov ebx, eax
mov edi, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp], edi
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
jmp 0x4c709c
call fcn.00409420
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x5c]
call fcn.004de3b0
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x10], eax
mov edi, edx
mov dword [ebp], edx
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
jmp 0x4c709c
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp], edi
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 4]
mov ecx, esi
push eax
call fcn.004cc5b0
test al, al
je 0x4c71c0
nop
mov edi, dword [ebp + 0x24]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x4c70c1
mov al, 1
jmp 0x4c70c3
xor al, al
test al, al
je 0x4c711c
lea ecx, [ebp + 0x2c]
call fcn.00408d80
test al, al
jne 0x4c711c
lea ecx, [ebp + 0x2c]
call fcn.00408fc0
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x4c70e5
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x4c711c
lea ecx, [ebp + 0x2c]
call fcn.00409050
cmp eax, 1
je 0x4c719f
cmp dword [ebx + 0x14], 8
jb 0x4c7104
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x4c711c
lea ecx, [ebp + 0x2c]
call fcn.00409050
cmp eax, 2
je 0x4c719f
or edi, 0
je 0x4c7125
mov al, 1
jmp 0x4c7127
xor al, al
test al, al
lea edx, [ebp + 0x44]
lea eax, [ebp + 0x2c]
push eax
je 0x4c7166
lea ecx, [ebp - 0x30]
call fcn.00409420
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004c6f40
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp]
add ebx, eax
mov dword [ebp - 0x10], ebx
adc edi, edx
mov dword [ebp], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00408ea0
jmp 0x4c71a5
lea ecx, [ebp + 0x5c]
call fcn.00409420
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x5c]
call fcn.004de3b0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x10], ebx
adc edi, edx
mov dword [ebp], edi
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
jmp 0x4c71a5
mov edi, dword [ebp]
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 4]
mov ecx, esi
push eax
call fcn.004cc5b0
test al, al
jne 0x4c70b0
jmp 0x4c71c0
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c71d8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4c71d8
mov dword [esi], 0xffffffff
lea ecx, [ebp + 0x44]
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4c72ad
lea ecx, [ebp + 0x5c]
call fcn.00408f40
mov byte [ebp - 4], 9
lea edx, [ebp + 0x5c]
lea ecx, [ebp + 0x44]
call fcn.004de750
test al, al
je 0x4c7221
lea ecx, [ebp + 0x5c]
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4c72a1
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
lea ecx, [ebp + 0x44]
call fcn.004ddea0
mov dword [ebp], eax
cmp eax, 0xffffffff
je 0x4c72b3
xor edx, edx
lea ecx, [ebp + 0x44]
call fcn.004ddde0
lea ecx, [ebp + 0x44]
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4c72ad
lea ecx, [ebp + 0x5c]
call fcn.00408f40
mov byte [ebp - 4], 0xa
lea edx, [ebp + 0x5c]
lea ecx, [ebp + 0x44]
call fcn.004de750
test al, al
je 0x4c7288
lea ecx, [ebp + 0x5c]
call fcn.00408e30
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4c72a1
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
mov edx, dword [ebp]
lea ecx, [ebp + 0x44]
call fcn.004ddde0
jmp 0x4c72b3
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x5c]
call fcn.00408ea0
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4c72cf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4c72cf
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x2c]
call fcn.00408ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x44]
call fcn.00408ea0
mov eax, ebx
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.005b75ab
lea esp, [ebp + 0x78]
pop ebp
ret