Function at 0x40bb70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b32ee
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40bbb5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405660
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40bc30
mov ebx, 0x5c
lea edi, [ebx - 0x2d]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov eax, esi
cmp edx, 8
jae 0x40bbf0
lea eax, [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], bx
je 0x40bc08
mov eax, esi
cmp edx, 8
jae 0x40bc01
lea eax, [ebp - 0x2c]
cmp word [eax + ecx*2 - 2], di
jne 0x40bc36
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x40bc1c
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.004051d0
jmp 0x40bc29
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409540
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x40bbe0
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov eax, esi
cmp edx, 8
jae 0x40bc40
lea eax, [ebp - 0x2c]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::fromUtf16_unsigned_short_int_const___int_]
add esp, 0xc
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::constructor_class_QString_const__]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x30]
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QDir::exists_void_const]
test al, al
je 0x40bf2a
push ecx
mov eax, esp
mov dword [eax], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], esp
mov dword [eax], 0x1001
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::setFilter_class_QFlags_enum_QDir::Filter__]
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push ecx
mov dword [eax], 0xffffffff
mov eax, esp
lea edx, [ebp - 0x34]
mov dword [ebp - 0x38], esp
push edx
lea ecx, [ebp - 0x30]
mov dword [eax], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_class_QStringList___thiscall_QDir::entryList_class_QFlags_enum_QDir::Filter___class_QFlags_enum_QDir::SortFlag__]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov byte [ebp - 4], 4
call fcn.00402bc0
add esp, 8
mov edi, dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
mov ebx, dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::absolutePath_void_]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x48]
mov edx, ecx
inc ecx
mov dword [ebp - 0x48], ecx
test edx, edx
jne 0x40be80
cmp eax, dword [ebp - 0x40]
je 0x40be80
push eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov byte [ebp - 4], 6
jmp 0x40bd10
cmp dword [ebp - 0x48], 0
je 0x40bd8a
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call ebx
push 0x4c891c
push eax
lea ecx, [ebp - 0x54]
push ecx
mov byte [ebp - 4], 7
call fcn.004080f0
lea edx, [ebp - 0x3c]
push edx
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 8
call fcn.00408080
add esp, 0x18
mov ecx, eax
mov byte [ebp - 4], 9
call edi
push eax
call fcn.0040bb70
add esp, 4
lea ecx, [ebp - 0x50]
mov esi, eax
mov byte [ebp - 4], 8
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test esi, esi
je 0x40bda5
dec dword [ebp - 0x48]
jmp 0x40bd10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x44], eax
jmp 0x40bce3
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40be07
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::deref_void_]
test al, al
jne 0x40be07
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x40bdef
mov edi, edi
sub esi, 4
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp esi, edi
jne 0x40bde0
push 0
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::operator_int_const]
test al, al
je 0x40be07
push ebx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x40be5a
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::deref_void_]
test al, al
jne 0x40be5a
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x40be42
sub esi, 4
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp esi, edi
jne 0x40be33
push 0
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::operator_int_const]
test al, al
je 0x40be5a
push ebx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
cmp dword [ebp - 0x18], 8
jb 0x40be79
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x40bf88
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40bed7
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::deref_void_]
test al, al
jne 0x40bed7
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x40bebf
lea esp, [esp]
sub esi, 4
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp esi, edi
jne 0x40beb0
push 0
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::operator_int_const]
test al, al
je 0x40bed7
push ebx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x40bf2a
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::deref_void_]
test al, al
jne 0x40bf2a
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x14]
lea edi, [eax + edx*4 + 0x14]
mov ebx, eax
cmp edi, esi
je 0x40bf12
sub esi, 4
mov ecx, esi
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
cmp esi, edi
jne 0x40bf03
push 0
mov ecx, ebx
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QBasicAtomicInt::operator_int_const]
test al, al
je 0x40bf2a
push ebx
call dword [sym.imp.QtCore4.dll_void___cdecl_qFree_void__]
add esp, 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40bf36
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
je 0x40be5a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x40bf5f
lea eax, [ebp - 0x2c]
push eax
call fcn.004073c0
add esp, 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
cmp dword [ebp - 0x18], edi
jb 0x40bf86
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret