Function at 0x405006
Capabilities:
Read .ini file

Disassembly:
push 0x238
mov eax, 0x410c79
call fcn.0040f8eb
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x405023
call fcn.00404a5e
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 0x4050ab
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 0x40518b
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 0x40516f
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 0x413658
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 0x4051fc
dec eax
je 0x4051d4
dec eax
jne 0x405228
lea eax, [ebp - 0x224]
push str.StorageTool_PosUserDefine
push eax
call fcn.0040f61b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call ebx
lea ecx, [ebp - 0x224]
jmp 0x405222
lea eax, [ebp - 0x228]
push str.StorageTool_PosMyDocument
push eax
call fcn.0040f61b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
call ebx
lea ecx, [ebp - 0x228]
jmp 0x405222
lea eax, [ebp - 0x220]
push str.StorageTool_PosExeFolder
push eax
call fcn.0040f61b
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.0040318c
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 0x4052af
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 + 0x338]
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call ebx
cmp dword [ebp - 0x238], 2
jne 0x405398
cmp dword [ebp - 0x22c], 0
je 0x4052d4
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.0040318c
mov eax, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
je 0x405398
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 + 0x338]
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 + 0x160]
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.0040322e
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xb
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4053fc
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40540e
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10c]
mov eax, dword [esi + 4]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
push str.Title_MoveStorage
push eax
call fcn.0040f61b
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 + 0x3fc]
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 0x413448
push str.StorageTool
mov ebx, str.func
push 3
mov edi, str.file
push ebx
je 0x4054da
push 0x7f
push edi
mov dword [ebp - 0x230], 0x41448c
call fcn.004011f4
add esp, 0x1c
push esi
lea ecx, [esi + 0x9c]
call fcn.00407716
jmp 0x40550b
push 0x84
push edi
mov dword [ebp - 0x230], 0x414478
call fcn.004011f4
add esp, 0x1c
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x238]
lea ecx, [esi + 0x9c]
call fcn.00407a3a
mov dword [esi + 0x6c], eax
cmp eax, 4
jne 0x405546
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 7
test eax, eax
je 0x405527
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test eax, eax
je 0x40553b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x4056c9
cmp eax, 1
je 0x40565e
push eax
push 0x414458
push str.StorageTool
push 2
push ebx
push 0x8e
push edi
call fcn.00402950
lea eax, [ebp - 0x224]
push str.Title_MoveStorage
push eax
call fcn.0040f61b
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 0x4055d1
push str.StorageTool_DefaultFail_FromSetup
push eax
call fcn.0040f61b
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 0x405605
push str.StorageTool_DefaultFail_FromConfig
push eax
call fcn.0040f61b
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 0x4056a1
mov ecx, esi
call fcn.00403467
mov ecx, esi
call fcn.00402b48
push dword [esi + 0x94]
push 0x414444
push str.StorageTool
push 2
push ebx
push 0xa2
push edi
call fcn.00402950
add esp, 0x1c
mov ecx, esi
call fcn.00401e98
mov ecx, esi
call fcn.00402e8d
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 0x4056b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test eax, eax
je 0x4056c9
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.0040f935
ret