Function at 0x404c99
Capabilities:
Read .ini file

Disassembly:
push 0x238
mov eax, 0x410bd4
call fcn.0040f91b
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x404cb6
call fcn.0040495a
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 0x404d3e
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 0x404e1e
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 0x404e02
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 0x404e8f
dec eax
je 0x404e67
dec eax
jne 0x404ebb
lea eax, [ebp - 0x224]
push str.StorageTool_PosUserDefine
push eax
call fcn.0040f64b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 6
call ebx
lea ecx, [ebp - 0x224]
jmp 0x404eb5
lea eax, [ebp - 0x228]
push str.StorageTool_PosMyDocument
push eax
call fcn.0040f64b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
call ebx
lea ecx, [ebp - 0x228]
jmp 0x404eb5
lea eax, [ebp - 0x220]
push str.StorageTool_PosExeFolder
push eax
call fcn.0040f64b
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.004031a2
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 0x404f42
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 0x40502b
cmp dword [ebp - 0x22c], 0
je 0x404f67
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.004031a2
mov eax, dword [ebp - 0x22c]
add esp, 0xc
test eax, eax
je 0x40502b
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.00403244
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0xb
call ebx
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x40508f
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x14c]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4050a1
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.0040f64b
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 0x413448
push str.StorageTool
mov ebx, str.func
push 3
mov edi, str.file
push ebx
je 0x40516d
push 0x7f
push edi
mov dword [ebp - 0x230], 0x4144ec
call fcn.004011f4
add esp, 0x1c
push esi
lea ecx, [esi + 0x9c]
call fcn.0040771b
jmp 0x40519e
push 0x84
push edi
mov dword [ebp - 0x230], 0x4144d8
call fcn.004011f4
add esp, 0x1c
push esi
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x238]
lea ecx, [esi + 0x9c]
call fcn.00407a3f
mov dword [esi + 0x6c], eax
cmp eax, 4
jne 0x4051d9
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 7
test eax, eax
je 0x4051ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test eax, eax
je 0x4051ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
jmp 0x40535c
cmp eax, 1
je 0x4052f1
push eax
push 0x4144b8
push str.StorageTool
push 2
push ebx
push 0x8e
push edi
call fcn.00407b83
lea eax, [ebp - 0x224]
push str.Title_MoveStorage
push eax
call fcn.0040f64b
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 0x405264
push str.StorageTool_DefaultFail_FromSetup
push eax
call fcn.0040f64b
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 0x405298
push str.StorageTool_DefaultFail_FromConfig
push eax
call fcn.0040f64b
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 0x405334
mov ecx, esi
call fcn.004034f3
mov ecx, esi
call fcn.00402b81
push dword [esi + 0x94]
push 0x4144a4
push str.StorageTool
push 2
push ebx
push 0xa2
push edi
call fcn.00407b83
add esp, 0x1c
mov ecx, esi
call fcn.00401e65
mov ecx, esi
call fcn.00402ec3
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 0x405348
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 3
test eax, eax
je 0x40535c
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.0040f965
ret