Function at 0x40de72
Capabilities:
Delete directory

Disassembly:
push 0x3c
mov eax, 0x411d52
call fcn.0040f882
mov esi, ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x2c]
push 0x415240
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
lea eax, [ebp - 0x24]
push eax
call fcn.0040ed39
add esp, 0x10
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x40def6
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x24]
call edi
push eax
lea ecx, [ebp - 0x2c]
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.NeedImport
push str.UserDataImportSet
call ebx
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x413658
push str.OldVersion
push str.UserDataImportSet
call ebx
mov eax, dword [esi + 0x30]
xor ecx, ecx
inc ecx
mov dword [esi + 0x50], ecx
cmp eax, 0x14
jb 0x40df1c
jne 0x40df0c
cmp dword [esi + 0x34], 0x5e
jb 0x40df1c
lea ecx, [esi + 0x3c]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
xor ecx, ecx
test al, al
setne cl
mov dword [esi + 0x50], ecx
lea edi, [esi + 0x3c]
push edi
lea ecx, [esi + 0x4c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea eax, [ebp - 0x20]
push eax
call fcn.0040ef14
pop ecx
push dword [esi + 0x50]
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push str.HandleFileMoveForSetUp__SrcPath_s__bOldVer_d
push str.StorageTool
push 2
mov ebx, str.func
push ebx
push 0xb90
mov edi, str.file
push edi
call fcn.00407b33
add esp, 0x1c
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], esp
push eax
lea ecx, [ebp - 0x48]
call fcn.0040ae3b
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xb94
push edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], 0x4151ac
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
je 0x40dfbd
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040a67d
jmp 0x40dfdf
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x54]
lea eax, [ebp - 0x20]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea eax, [esi + 0x3c]
push eax
mov ecx, esi
call fcn.0040d1bf
push eax
push 0x415170
push str.StorageTool
push 2
push ebx
push 0xba2
push edi
mov dword [ebp - 0x28], eax
call fcn.00402950
add esp, 0x1c
cmp dword [ebp - 0x28], 1
je 0x40e05d
cmp dword [ebp - 0x28], 2
je 0x40e05d
xor edi, edi
cmp dword [esi + 0x50], edi
jne 0x40e018
mov ecx, esi
call fcn.0040ac93
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x28]
mov esi, dword [esi + 0x54]
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040d548
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call esi
jmp 0x40e43d
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xbb5
push edi
mov dword [ebp - 0x34], 0x41515c
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
je 0x40e095
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040a39e
jmp 0x40e0b7
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x54]
lea eax, [ebp - 0x20]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea eax, [esi + 0x3c]
push eax
mov ecx, esi
call fcn.0040cee3
push eax
push 0x41512c
push str.StorageTool
push 2
push ebx
push 0xbc0
push edi
mov dword [ebp - 0x18], eax
call fcn.00402950
add esp, 0x1c
cmp dword [ebp - 0x18], 1
je 0x40e0fd
cmp dword [ebp - 0x18], 2
je 0x40e0fd
xor edi, edi
cmp dword [esi + 0x50], edi
jne 0x40e0f0
mov ecx, esi
call fcn.0040ac93
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x18]
jmp 0x40e020
cmp dword [esi + 0x50], 0
jne 0x40e11e
lea eax, [ebp - 0x48]
push eax
push ecx
lea eax, [esi + 0x3c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
call fcn.0040be78
pop ecx
pop ecx
mov ecx, dword [esi + 0x54]
and dword [ebp - 0x30], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 0
push 0x64
push 0
push 0x64
push 1
push 3
call dword [eax]
cmp dword [ebp - 0x30], 0
je 0x40e178
mov dword [ebp - 0x14], 3
mov ecx, dword [esi + 0x54]
and dword [ebp - 0x30], 0
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
push 0
push 0x64
push 0
push 0x64
push 1
push 4
call dword [eax]
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
je 0x40e222
mov dword [ebp - 0x1c], 3
jmp 0x40e2e1
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xbe2
push edi
mov dword [ebp - 0x34], 0x41511c
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
push dword [esi + 0x54]
je 0x40e1b0
mov ecx, esi
call fcn.0040a0c3
jmp 0x40e1cb
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea eax, [esi + 0x3c]
push eax
mov ecx, esi
call fcn.0040d583
push eax
push 0x4150ec
push str.StorageTool
push 2
push ebx
push 0xbed
push edi
mov dword [ebp - 0x14], eax
call fcn.00402950
add esp, 0x1c
cmp dword [ebp - 0x14], 1
je 0x40e146
cmp dword [ebp - 0x14], 2
je 0x40e146
cmp dword [ebp - 0x14], 3
je 0x40e146
mov esi, dword [esi + 0x54]
mov edx, dword [esi]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x14]
mov ecx, esi
push 5
call dword [edx]
jmp 0x40e02b
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xc07
push edi
mov dword [ebp - 0x34], 0x4150d0
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
push dword [esi + 0x54]
je 0x40e25d
mov ecx, esi
call fcn.00409e16
mov dword [ebp - 0x1c], eax
jmp 0x40e2c1
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea eax, [esi + 0x3c]
push eax
mov ecx, esi
call fcn.0040db81
lea ecx, [esi + 0x3c]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40e2c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esi + 0x3c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push 0x414d48
push str.StorageTool
push 2
push ebx
push 0xc15
push edi
call fcn.00407b33
add esp, 0x20
push dword [ebp - 0x1c]
push 0x415094
push str.StorageTool
push 2
push ebx
push 0xc19
push edi
call fcn.00402950
add esp, 0x1c
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x40e377
push ecx
lea eax, [esi + 0x3c]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_Util::FS::GetParentDir_class_CTXStringW_]
pop ecx
pop ecx
push 0
push str.QQ2009
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Find_wchar_t_const___int_const]
test eax, eax
js 0x40e364
lea ecx, [ebp - 0x34]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40e364
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push 0x414d48
push str.StorageTool
push 2
push ebx
push 0xc27
push edi
call fcn.00407b33
add esp, 0x20
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call edi
xor ecx, ecx
jmp 0x40e37d
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov dword [ebp - 0x38], 1
cmp edx, ecx
je 0x40e443
cmp dword [ebp - 0x18], ecx
je 0x40e443
cmp dword [ebp - 0x14], ecx
je 0x40e443
cmp dword [ebp - 0x1c], ecx
je 0x40e443
cmp edx, eax
je 0x40e405
cmp dword [ebp - 0x18], eax
je 0x40e405
cmp dword [ebp - 0x14], eax
je 0x40e405
cmp dword [ebp - 0x1c], eax
je 0x40e405
push 0xfffffffffffffffd
pop eax
cmp edx, eax
je 0x40e405
cmp dword [ebp - 0x18], eax
je 0x40e405
cmp dword [ebp - 0x14], eax
je 0x40e405
cmp dword [ebp - 0x1c], eax
je 0x40e405
push 3
pop eax
cmp edx, eax
je 0x40e405
cmp dword [ebp - 0x18], eax
je 0x40e405
cmp dword [ebp - 0x14], eax
je 0x40e405
cmp dword [ebp - 0x1c], eax
je 0x40e405
push 2
pop eax
cmp edx, eax
je 0x40e405
cmp dword [ebp - 0x18], eax
je 0x40e405
cmp dword [ebp - 0x14], eax
je 0x40e405
cmp dword [ebp - 0x1c], eax
je 0x40e405
mov eax, dword [ebp - 0x38]
mov esi, dword [esi + 0x54]
mov edx, dword [esi]
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push 5
mov ecx, esi
call dword [edx]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040d548
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call edi
call fcn.0040f921
ret
xor eax, eax
jmp 0x40e405