Function at 0x4112a0
Capabilities:
Check for time delay via gettickcount
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41537c
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x41e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.004121d0
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea eax, [esi + 0x44]
mov ecx, esp
mov dword [ebp - 0x2c], esp
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [esi + 0x40]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00412570
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
push ecx
lea edx, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call edi
push str.HandleFileMoveForConfig
push str.StorageTool
push 2
push str.func
push 0xc83
push str.file
call fcn.004097e0
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call edi
push 0x418310
push str.StorageTool
push 2
push str.func
push 0xc84
push str.file
call fcn.004097e0
add esp, 0x18
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call edi
mov ecx, esi
call fcn.00408f90
cmp eax, ebx
jne 0x41141c
mov dword [ebp - 0x2c], str.CheckDestPath
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xc88
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x2c]
push ecx
push 0x4164dc
lea edx, [ebp - 0x80]
push str.StorageTool
push edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffd
push 1
call edx
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffd
push 5
call edx
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x411aea
lea ecx, [ebp - 0x40]
call fcn.0040d480
mov dword [ebp - 0x3c], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x3c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 8], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], 0x418218
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xc95
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x2c]
push ecx
push 0x4164dc
lea edx, [ebp - 0x80]
push str.StorageTool
push edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov ecx, dword [esi + 0x54]
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
push ecx
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040fc20
push eax
push 0x4181dc
push str.StorageTool
push 2
push str.func
push 0xc99
push str.file
mov dword [ebp - 0x28], eax
call fcn.00402c30
mov eax, dword [ebp - 0x28]
add esp, 0x1c
cmp eax, 1
je 0x41152c
cmp eax, 2
je 0x41152c
mov esi, dword [esi + 0x54]
mov edx, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx]
push 5
mov ecx, esi
call eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004100c0
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x411aea
mov dword [ebp - 0x2c], 0x4181c8
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xca7
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x2c]
push edx
push 0x4164dc
lea eax, [ebp - 0x80]
push str.StorageTool
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov edx, dword [esi + 0x54]
add esp, 0x14
lea ecx, [ebp - 0x40]
push ecx
push edx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call edi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.0040f680
push eax
push 0x418198
push str.StorageTool
push 2
push str.func
push 0xcab
push str.file
mov dword [ebp - 0x24], eax
call fcn.00402c30
mov eax, dword [ebp - 0x24]
add esp, 0x1c
cmp eax, 1
je 0x4115ef
cmp eax, 2
jne 0x411502
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00411f40
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x411731
mov dword [ebp - 0x2c], 0x4182cc
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xcbb
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x2c]
push eax
push 0x4164dc
lea ecx, [ebp - 0x80]
push str.StorageTool
push ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
push str.UserDataInfo.ini
lea ecx, [ebp - 0x1c]
call dword [0x416078]
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call edi
call fcn.00408ca0
add esp, 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [esi + 0x40]
push eax
lea ecx, [ebp - 0x18]
push 0x417328
push ecx
mov byte [ebp - 4], 4
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push str.UserDataSavePathType
push str.UserDataSet
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esi + 0x44]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
lea ecx, [ebp - 0x1c]
je 0x411703
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push 0x41672c
jmp 0x411714
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [esi + 0x44]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
push str.UserDataSavePath
push str.UserDataSet
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov dword [ebp - 0x2c], 0x4182b8
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xcd1
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x2c]
push eax
push 0x4164dc
lea ecx, [ebp - 0x80]
push str.StorageTool
push ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
lea edx, [ebp - 0x40]
push edx
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call edi
call fcn.0040f9f0
mov ecx, dword [esi + 0x54]
add esp, 8
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x64
push ebx
push 0x64
mov dword [ebp - 0x20], ebx
mov edx, dword [ecx]
mov edx, dword [edx]
push 1
push 3
call edx
cmp dword [ebp - 0x20], ebx
je 0x41180a
mov dword [ebp - 0x18], 3
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
push edx
push ebx
push 0x64
push ebx
push 0x64
mov dword [ebp - 0x20], ebx
mov eax, dword [ecx]
mov eax, dword [eax]
push 1
push 4
call eax
cmp dword [ebp - 0x20], ebx
je 0x41190c
mov dword [ebp - 0x2c], 3
jmp 0x4119ba
mov dword [ebp - 0x2c], 0x418188
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xce2
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea ecx, [ebp - 0x2c]
push ecx
push 0x4164dc
lea edx, [ebp - 0x80]
push str.StorageTool
push edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov eax, dword [esi + 0x54]
add esp, 0x14
push eax
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00410130
push eax
push 0x418158
push str.StorageTool
push 2
push str.func
push 0xce6
push str.file
mov dword [ebp - 0x18], eax
call fcn.00402c30
add esp, 0x1c
cmp dword [ebp - 0x18], 1
je 0x4117db
cmp dword [ebp - 0x18], 2
je 0x4117db
cmp dword [ebp - 0x18], 3
je 0x4117db
mov esi, dword [esi + 0x54]
mov eax, dword [ebp - 0x18]
mov edx, dword [esi]
mov edx, dword [edx]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push 5
mov ecx, esi
call edx
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004100c0
jmp 0x411aea
mov dword [ebp - 0x2c], 0x41813c
mov dword [ebp - 0x4c], str.file
mov dword [ebp - 0x48], str.func
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x78], 0xd00
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x60]
push ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [ebp - 0x2c]
push edx
push 0x4164dc
lea eax, [ebp - 0x80]
push str.StorageTool
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov ecx, dword [esi + 0x54]
add esp, 0x14
push ecx
push ecx
lea edx, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call edi
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00410760
push eax
push 0x418100
push str.StorageTool
push 2
push str.func
push 0xd04
push str.file
mov dword [ebp - 0x2c], eax
call fcn.00402c30
add esp, 0x1c
lea ecx, [esi + 0x3c]
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 0x411a04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esi + 0x3c]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call edi
push 0x417e08
push str.StorageTool
push 2
push str.func
push 0xd0b
push str.file
call fcn.004097e0
add esp, 0x20
mov ecx, dword [ebp - 0x28]
cmp ecx, ebx
mov eax, 1
je 0x411a97
mov edi, dword [ebp - 0x24]
cmp edi, ebx
je 0x411a97
cmp dword [ebp - 0x18], ebx
je 0x411a97
mov edx, dword [ebp - 0x2c]
cmp edx, ebx
je 0x411a97
cmp ecx, 0xffffffff
je 0x411a92
cmp edi, 0xffffffff
je 0x411a92
cmp dword [ebp - 0x18], 0xffffffff
je 0x411a92
cmp edx, 0xffffffff
je 0x411a92
cmp ecx, 0xfffffffd
je 0x411a8b
cmp edi, 0xfffffffd
je 0x411a8b
cmp dword [ebp - 0x18], 0xfffffffd
je 0x411a8b
cmp edx, 0xfffffffd
je 0x411a8b
cmp ecx, 3
je 0x411a84
cmp edi, 3
je 0x411a84
mov edi, dword [ebp - 0x18]
cmp edi, 3
je 0x411a84
cmp edx, 3
je 0x411a84
cmp ecx, 2
je 0x411a7d
cmp dword [ebp - 0x24], 2
je 0x411a7d
cmp edi, 2
je 0x411a7d
cmp edx, 2
jne 0x411a99
mov eax, 2
jmp 0x411a99
mov eax, 3
jmp 0x411a99
mov eax, 0xfffffffd
jmp 0x411a99
or eax, 0xffffffff
jmp 0x411a99
xor eax, eax
mov esi, dword [esi + 0x54]
mov edx, dword [esi]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx]
push 5
mov ecx, esi
call eax
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call esi
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edi, ecx
push edx
push edi
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040fff0
mov edx, dword [ebp - 0x3c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret