Function at 0x405174
Capabilities:
Read .ini file

Disassembly:
push 0x238
mov eax, 0x410c4e
call fcn.0040f8dd
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x405191
call fcn.00404b8d
lea ecx, [ebp - 0x234]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [sym.imp.MSVCR100.dll___argc]
mov dword [ebp - 0x238], edi
cmp dword [eax], 5
mov dword [ebp - 4], edi
jne 0x405219
lea eax, [ebp - 0x238]
push eax
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
push dword [eax + 0xc]
call dword [sym.imp.Common.dll_Ordinal_34]
mov eax, dword [sym.imp.MSVCR100.dll___wargv]
mov eax, dword [eax]
pop ecx
pop ecx
push dword [eax + 0x10]
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 0x4052f9
lea eax, [ebp - 0x220]
push eax
mov ecx, esi
mov dword [esi + 0xf4], 1
call fcn.00401c12
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 0x4052dd
push str.UserDataInfo.ini
lea ecx, [ebp - 0x220]
call dword [0x41307c]
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
push dword [ebp - 0x238]
mov ebx, str.UserDataSet
push str.UserDataSavePathType
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x238], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x220]
call edi
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x413664
push str.UserDataSavePath
push ebx
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 edi, 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__]
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 0x40536a
dec eax
je 0x405342
dec eax
jne 0x405396
lea eax, [ebp - 0x224]
push str.StorageTool_PosUserDefine
push eax
call fcn.0040f5d1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call ebx
lea ecx, [ebp - 0x224]
jmp 0x405390
lea eax, [ebp - 0x228]
push str.StorageTool_PosMyDocument
push eax
call fcn.0040f5d1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
call ebx
lea ecx, [ebp - 0x228]
jmp 0x405390
lea eax, [ebp - 0x220]
push str.StorageTool_PosExeFolder
push eax
call fcn.0040f5d1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call edi
and 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.004031f8
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 0x40541d
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [ebp - 0x228]
mov ecx, dword [ecx]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov byte [ebp - 4], 8
call edi
push eax
push dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
call dword [eax + 0x380]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call ebx
cmp dword [ebp - 0x238], 2
jne 0x405506
cmp dword [ebp - 0x22c], 0
je 0x405442
push 0
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.ATL100.DLL_Ordinal_30]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x22c]
push ecx
push str.stPath
push eax
call fcn.004031f8
mov eax, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
je 0x405506
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [ebp - 0x228]
mov ecx, dword [ecx]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov byte [ebp - 4], 9
call edi
push eax
push dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
call dword [eax + 0x380]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call ebx
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov ecx, dword [ebp - 0x228]
mov ecx, dword [ecx]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call edi
push eax
push dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
call dword [eax + 0x1a0]
lea ecx, [ebp - 0x220]
call ebx
and 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 ecx, dword [esi + 4]
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x228]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call edi
push eax
push dword [ebp - 0x224]
call fcn.0040329a
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xb
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40556a
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14c]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40557c
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
push str.Title_MoveStorage
push eax
call fcn.0040f5d1
pop ecx
pop ecx
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 ecx, dword [ebp - 0x220]
mov ecx, dword [ecx]
mov dword [ebp - 0x224], ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call edi
push eax
push dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
call dword [eax + 0x444]
lea ecx, [ebp - 0x240]
call ebx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xb
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, dword [esi + 0x8c]
push 0
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 + 0xf4], 0
lea eax, [ebp - 0x230]
push eax
push 0x413454
push str.StorageTool
mov ebx, str.func
push 3
mov edi, str.file
push ebx
je 0x405648
push 0x7f
push edi
mov dword [ebp - 0x230], 0x414534
call fcn.004011f4
add esp, 0x1c
push esi
lea ecx, [esi + 0x9c]
call fcn.00407748
jmp 0x405679
push 0x84
push edi
mov dword [ebp - 0x230], 0x414520
call fcn.004011f4
add esp, 0x1c
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x238]
lea ecx, [esi + 0x9c]
call fcn.00407a6c
mov dword [esi + 0x6c], eax
cmp eax, 4
jne 0x4056b4
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 7
test eax, eax
je 0x405695
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test eax, eax
je 0x4056a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x405837
cmp eax, 1
je 0x4057cc
push eax
push 0x414500
push str.StorageTool
push 2
push ebx
push 0x8e
push edi
call fcn.004029eb
lea eax, [ebp - 0x224]
push str.Title_MoveStorage
push eax
call fcn.0040f5d1
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 + 0xf4], 0
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x230]
je 0x40573f
push str.StorageTool_DefaultFail_FromSetup
push eax
call fcn.0040f5d1
pop ecx
pop ecx
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], 0x10
call esi
jmp 0x405773
push str.StorageTool_DefaultFail_FromConfig
push eax
call fcn.0040f5d1
pop ecx
pop ecx
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], 0x10
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_]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push 0x10
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call edi
push ecx
lea eax, [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x244], esp
push eax
mov byte [ebp - 4], 0x13
call edi
push 0
mov byte [ebp - 4], 0x10
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
jmp 0x40580f
mov ecx, esi
call fcn.004034f4
mov ecx, esi
call fcn.00402be3
push dword [esi + 0x94]
push 0x4144ec
push str.StorageTool
push 2
push ebx
push 0xa2
push edi
call fcn.004029eb
add esp, 0x1c
mov ecx, esi
call fcn.00401ea7
mov ecx, esi
call fcn.00402f25
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 7
test eax, eax
je 0x405823
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test eax, eax
je 0x405837
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call esi
xor eax, eax
call fcn.0040f927
ret