Function at 0x46c450
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee783
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x52f068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x94], xmm0
call fcn.00405530
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x44]
call fcn.0046ce30
lea ecx, [ebp - 0x84]
call fcn.0047ada0
mov byte [ebp - 4], 1
push 4
call fcn.004b906a
add esp, 4
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
push 0x508068
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403d50
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.0047b1c0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
mov esi, dword [ebp - 0x98]
test bl, bl
je 0x46c72a
lea ecx, [ebp - 0x84]
call fcn.0047ae90
test al, al
jne 0x46c5c9
mov eax, dword [ebp - 0x64]
and eax, 0x10
or eax, 0
je 0x46c550
mov al, 1
jmp 0x46c552
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
push eax
je 0x46c593
call fcn.00412f30
add esp, 4
mov byte [ebp - 4], 5
push eax
call fcn.0046c450
mov ebx, eax
mov edi, edx
add esp, 4
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x46c5e1
call fcn.00412f30
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.0048fb80
movzx eax, al
cdq
mov ebx, eax
mov dword [ebp - 0x90], eax
mov edi, edx
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x46c5e1
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x90], ebx
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.0047af00
test al, al
je 0x46c736
mov edi, dword [ebp - 0x64]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x46c608
mov al, 1
jmp 0x46c60a
xor al, al
test al, al
je 0x46c663
lea ecx, [ebp - 0x5c]
call fcn.00405520
test al, al
jne 0x46c663
lea ecx, [ebp - 0x5c]
call fcn.00402870
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x46c62c
mov eax, dword [ebx]
cmp word [eax], 0x2e
jne 0x46c663
lea ecx, [ebp - 0x5c]
call fcn.00404030
cmp eax, 1
je 0x46c706
cmp dword [ebx + 0x14], 8
jb 0x46c64b
mov ebx, dword [ebx]
cmp word [ebx + 2], 0x2e
jne 0x46c663
lea ecx, [ebp - 0x5c]
call fcn.00404030
cmp eax, 2
je 0x46c706
or edi, 0
je 0x46c66c
mov al, 1
jmp 0x46c66e
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
push eax
je 0x46c6c1
lea ecx, [ebp - 0xb0]
call fcn.00412f30
add esp, 4
mov byte [ebp - 4], 7
push eax
call fcn.0046c450
mov ebx, dword [ebp - 0x90]
add esp, 4
mov edi, dword [ebp - 0x88]
add ebx, eax
mov dword [ebp - 0x90], ebx
adc edi, edx
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb0]
call fcn.004027f0
jmp 0x46c712
lea ecx, [ebp - 0x2c]
call fcn.00412f30
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.0048fb80
mov ebx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x88]
movzx eax, al
cdq
add ebx, eax
mov dword [ebp - 0x90], ebx
adc edi, edx
mov dword [ebp - 0x88], edi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
jmp 0x46c712
mov edi, dword [ebp - 0x88]
mov ebx, dword [ebp - 0x90]
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.0047af00
test al, al
jne 0x46c5f7
jmp 0x46c736
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46c74e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x46c74e
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x46c829
lea ecx, [ebp - 0x2c]
call fcn.00402850
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0048ffd0
test al, al
je 0x46c797
lea ecx, [ebp - 0x2c]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x46c81d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
lea ecx, [ebp - 0x44]
call fcn.0048f870
mov dword [ebp - 0x88], eax
cmp eax, 0xffffffff
je 0x46c82f
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.0048f7b0
lea ecx, [ebp - 0x44]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x46c829
lea ecx, [ebp - 0x2c]
call fcn.00402850
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0048ffd0
test al, al
je 0x46c801
lea ecx, [ebp - 0x2c]
call fcn.004027b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x46c81d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x44]
call fcn.0048f7b0
jmp 0x46c82f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.004027f0
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46c84b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x46c84b
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.004b909a
add esp, 8
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004027f0
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 - 0x14]
xor ecx, ebp
call fcn.004b9059
mov esp, ebp
pop ebp
ret