Function at 0x40dea4
Capabilities:
Delete directory

Disassembly:
push 0x3c
mov eax, 0x411d81
call fcn.0040f8b2
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 0x415288
push eax
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
lea eax, [ebp - 0x24]
push eax
call fcn.0040ed6b
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 0x40df28
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 0x40df4e
jne 0x40df3e
cmp dword [esi + 0x34], 0x5e
jb 0x40df4e
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.0040ef44
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.00407b42
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.0040ae70
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], 0x4151f4
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
je 0x40dfef
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040a6b2
jmp 0x40e011
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.0040d1f1
push eax
push 0x4151b8
push str.StorageTool
push 2
push ebx
push 0xba2
push edi
mov dword [ebp - 0x28], eax
call fcn.00407b83
add esp, 0x1c
cmp dword [ebp - 0x28], 1
je 0x40e08f
cmp dword [ebp - 0x28], 2
je 0x40e08f
xor edi, edi
cmp dword [esi + 0x50], edi
jne 0x40e04a
mov ecx, esi
call fcn.0040acc8
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.0040d57a
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 0x40e46f
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xbb5
push edi
mov dword [ebp - 0x34], 0x4151a4
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
je 0x40e0c7
push dword [esi + 0x54]
mov ecx, esi
call fcn.0040a3d3
jmp 0x40e0e9
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.0040cf15
push eax
push 0x415174
push str.StorageTool
push 2
push ebx
push 0xbc0
push edi
mov dword [ebp - 0x18], eax
call fcn.00407b83
add esp, 0x1c
cmp dword [ebp - 0x18], 1
je 0x40e12f
cmp dword [ebp - 0x18], 2
je 0x40e12f
xor edi, edi
cmp dword [esi + 0x50], edi
jne 0x40e122
mov ecx, esi
call fcn.0040acc8
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x18]
jmp 0x40e052
cmp dword [esi + 0x50], 0
jne 0x40e150
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.0040bead
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 0x40e1aa
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 0x40e254
mov dword [ebp - 0x1c], 3
jmp 0x40e313
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xbe2
push edi
mov dword [ebp - 0x34], 0x415164
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
push dword [esi + 0x54]
je 0x40e1e2
mov ecx, esi
call fcn.0040a0f8
jmp 0x40e1fd
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.0040d5b5
push eax
push 0x415134
push str.StorageTool
push 2
push ebx
push 0xbed
push edi
mov dword [ebp - 0x14], eax
call fcn.00407b83
add esp, 0x1c
cmp dword [ebp - 0x14], 1
je 0x40e178
cmp dword [ebp - 0x14], 2
je 0x40e178
cmp dword [ebp - 0x14], 3
je 0x40e178
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 0x40e05d
lea eax, [ebp - 0x34]
push eax
push 0x413448
push str.StorageTool
push 2
push ebx
push 0xc07
push edi
mov dword [ebp - 0x34], 0x415118
call fcn.004011f4
add esp, 0x1c
cmp dword [esi + 0x50], 0
push dword [esi + 0x54]
je 0x40e28f
mov ecx, esi
call fcn.00409e4b
mov dword [ebp - 0x1c], eax
jmp 0x40e2f3
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.0040dbb3
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 0x40e2f3
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 0x414d90
push str.StorageTool
push 2
push ebx
push 0xc15
push edi
call fcn.00407b42
add esp, 0x20
push dword [ebp - 0x1c]
push 0x4150dc
push str.StorageTool
push 2
push ebx
push 0xc19
push edi
call fcn.00407b83
add esp, 0x1c
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x40e3a9
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 0x40e396
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 0x40e396
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 0x414d90
push str.StorageTool
push 2
push ebx
push 0xc27
push edi
call fcn.00407b42
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 0x40e3af
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 0x40e475
cmp dword [ebp - 0x18], ecx
je 0x40e475
cmp dword [ebp - 0x14], ecx
je 0x40e475
cmp dword [ebp - 0x1c], ecx
je 0x40e475
cmp edx, eax
je 0x40e437
cmp dword [ebp - 0x18], eax
je 0x40e437
cmp dword [ebp - 0x14], eax
je 0x40e437
cmp dword [ebp - 0x1c], eax
je 0x40e437
push 0xfffffffffffffffd
pop eax
cmp edx, eax
je 0x40e437
cmp dword [ebp - 0x18], eax
je 0x40e437
cmp dword [ebp - 0x14], eax
je 0x40e437
cmp dword [ebp - 0x1c], eax
je 0x40e437
push 3
pop eax
cmp edx, eax
je 0x40e437
cmp dword [ebp - 0x18], eax
je 0x40e437
cmp dword [ebp - 0x14], eax
je 0x40e437
cmp dword [ebp - 0x1c], eax
je 0x40e437
push 2
pop eax
cmp edx, eax
je 0x40e437
cmp dword [ebp - 0x18], eax
je 0x40e437
cmp dword [ebp - 0x14], eax
je 0x40e437
cmp dword [ebp - 0x1c], eax
je 0x40e437
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.0040d57a
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.0040f951
ret
xor eax, eax
jmp 0x40e437