Function at 0x4062b0
Capabilities:
Check for time delay via gettickcount
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4141ee
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x41e130]
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 esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4062ec
call fcn.004060e0
lea ecx, [ebp - 0x234]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [sym.imp.MSVCR80.dll___argc]
mov dword [ebp - 0x238], ebx
cmp dword [eax], 5
mov dword [ebp - 4], ebx
jne 0x406379
mov edx, dword [sym.imp.MSVCR80.dll___wargv]
mov eax, dword [edx]
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.Common.dll_Ordinal_34]
mov edx, dword [sym.imp.MSVCR80.dll___wargv]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
add esp, 8
push ecx
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
mov ebx, dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call ebx
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call edi
push 0x20
push 0x7c
lea ecx, [ebp - 0x234]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Replace_wchar_t__wchar_t_]
jmp 0x40645b
lea edx, [ebp - 0x220]
push edx
mov ecx, esi
mov dword [esi + 0xdc], 1
call fcn.00401e20
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x40643f
push str.UserDataInfo.ini
lea ecx, [ebp - 0x220]
call dword [0x416078]
mov edi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x220]
call edi
push eax
mov eax, dword [ebp - 0x238]
push eax
push str.UserDataSavePathType
push str.UserDataSet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0x208
lea ecx, [ebp - 0x21a]
push ebx
push ecx
mov dword [ebp - 0x238], eax
mov word [ebp - 0x21c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
call edi
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x41672c
push str.UserDataSavePath
push str.UserDataSet
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov ebx, dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x23c]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [ebp - 0x238]
sub eax, 0
mov byte [ebp - 4], 3
je 0x4064d2
sub eax, 1
je 0x4064a9
sub eax, 1
jne 0x4064ff
lea ecx, [ebp - 0x224]
push str.StorageTool_PosUserDefine
push ecx
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call ebx
lea ecx, [ebp - 0x224]
jmp 0x4064f9
lea edx, [ebp - 0x228]
push str.StorageTool_PosMyDocument
push edx
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
call ebx
lea ecx, [ebp - 0x228]
jmp 0x4064f9
lea eax, [ebp - 0x220]
push str.StorageTool_PosExeFolder
push eax
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call edi
mov dword [ebp - 0x22c], 0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x22c]
push ecx
push str.MovingFileHint
push eax
mov byte [ebp - 4], 7
call fcn.00403750
mov eax, dword [ebp - 0x22c]
mov edi, dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
add esp, 0xc
test eax, eax
je 0x406592
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
mov ecx, eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x224], edx
call edi
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x2fc]
push eax
mov eax, dword [ebp - 0x228]
push eax
call edx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call ebx
mov eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x238], 2
jne 0x40667c
test eax, eax
je 0x4065b2
push 0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.ATL80.DLL_Ordinal_30]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x22c]
push ecx
push str.stPath
push eax
call fcn.00403750
mov eax, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
je 0x40667c
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx]
mov ecx, eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x224], edx
call edi
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + 0x2fc]
push eax
mov eax, dword [ebp - 0x228]
push eax
call edx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call ebx
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x228], eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call edi
mov edx, dword [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x14c]
push edx
call ecx
lea ecx, [ebp - 0x220]
call ebx
mov dword [ebp - 0x228], 0
push str.closebutton
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xb
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_wchar_t_const__]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x224], edx
call edi
mov edx, dword [ebp - 0x224]
push eax
push edx
call fcn.00403840
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xb
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4066e6
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf8]
push 0
push eax
call edx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4066fa
mov ecx, dword [eax]
mov edx, dword [ecx + 0xf8]
push 0
push eax
call edx
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x230]
push str.Title_MoveStorage
push ecx
mov dword [ebp - 0x220], eax
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0xd
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call edi
mov edx, dword [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 0x3d8]
push edx
call ecx
lea ecx, [ebp - 0x240]
call ebx
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
call ebx
mov eax, dword [esi + 0x74]
xor edi, edi
push edi
push eax
push 0x19
call dword [sym.imp.Common.dll_int___cdecl_TXTimer::SetInterval_unsigned_int__struct_ITXTimerCallback___unsigned_int_]
add esp, 0xc
cmp dword [esi + 0xdc], edi
mov dword [ebp - 0x24c], str.file
mov dword [ebp - 0x248], str.func
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x274], edi
je 0x406839
mov dword [ebp - 0x230], 0x417578
mov dword [ebp - 0x278], 0x7f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x260]
push edx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], edi
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x230]
push eax
push 0x4164dc
lea ecx, [ebp - 0x280]
push str.StorageTool
push ecx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], edi
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
add esp, 0x14
push esi
lea ecx, [esi + 0x84]
call fcn.00409100
jmp 0x4068c9
mov dword [ebp - 0x230], 0x417564
mov dword [ebp - 0x278], 0x84
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x27c], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x260]
push edx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], edi
call dword [sym.imp.MSVCR80.dll__time64]
lea eax, [ebp - 0x230]
push eax
push 0x4164dc
lea ecx, [ebp - 0x280]
push str.StorageTool
push ecx
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], edi
call dword [sym.imp.Common.dll_void___cdecl_TXLog_DoTXLogVW_struct_tagLogObj___wchar_t_const___wchar_t_const___char__]
mov eax, dword [ebp - 0x238]
add esp, 0x14
push esi
lea edx, [ebp - 0x234]
push edx
push eax
lea ecx, [esi + 0x84]
call fcn.00409570
cmp eax, 4
mov dword [esi + 0x54], eax
je 0x406a46
cmp eax, 1
je 0x406a03
push eax
push 0x417544
push str.StorageTool
push 2
push str.func
push 0x8e
push str.file
call fcn.00402c30
lea eax, [ebp - 0x224]
push str.Title_MoveStorage
push eax
call fcn.00412980
add esp, 0x24
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
cmp dword [esi + 0xdc], edi
mov ebx, 0x10
mov byte [ebp - 4], bl
je 0x40696b
lea ecx, [ebp - 0x230]
push str.StorageTool_DefaultFail_FromSetup
push ecx
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x11
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call esi
jmp 0x4069a5
lea edx, [ebp - 0x230]
push str.StorageTool_DefaultFail_FromConfig
push edx
call fcn.00412980
add esp, 8
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0x12
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], bl
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push ebx
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push ecx
lea edx, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x284], esp
push edx
mov byte [ebp - 4], 0x13
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push edi
mov byte [ebp - 4], bl
call dword [sym.imp.AFUtil.dll_int___cdecl_Util::Misc::MessageBoxW_struct_IGFFrame___class_CTXStringW__class_CTXStringW__int_]
add esp, 0x10
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xf
call esi
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xb
call esi
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x406a46
mov ecx, esi
call fcn.00403f50
mov ecx, esi
call fcn.00402e20
mov eax, dword [esi + 0x7c]
push eax
push str.step:_d
push str.StorageTool
push 2
push str.func
push 0xa2
push str.file
call fcn.00402c30
add esp, 0x1c
mov ecx, esi
call fcn.004020b0
mov ecx, esi
call fcn.00403260
mov eax, dword [ebp - 0x228]
cmp eax, edi
mov byte [ebp - 4], 7
je 0x406a5c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x22c]
cmp eax, edi
mov byte [ebp - 4], 3
je 0x406a72
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call ebx
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0xffffffff
call ebx
xor eax, eax
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.00412d02
mov esp, ebp
pop ebp
ret