Function at 0x497a20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x5925f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x434], ecx
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.004caa30
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004caa30
add esp, 0xc
mov ecx, dword [0x594280]
call fcn.0042bca0
mov ecx, eax
call fcn.0042b1c0
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.004caa10
add esp, 8
push 0x555640
lea eax, [ebp - 0x210]
push eax
call fcn.004ca9e6
add esp, 8
push 0x555650
lea ecx, [ebp - 0x210]
push ecx
call fcn.004ca9e6
add esp, 8
push 0x555654
lea edx, [ebp - 0x210]
push edx
call fcn.004ca9e6
add esp, 8
lea eax, [ebp - 0x210]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x55566c
push 0x555674
push 0x55568c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x430], str.main_opt_common
mov dword [ebp - 0x424], str.main_opt_key
mov dword [ebp - 0x214], str.main_opt_habit
mov dword [ebp - 0x428], str.main_opt_view
mov dword [ebp - 0x42c], str.main_opt_account
mov dword [ebp - 0x218], str.main_opt_advance
mov dword [ebp - 4], 0
push 0x55575c
lea edx, [ebp - 0x420]
push edx
call fcn.004cbc4a
add esp, 8
test eax, eax
jne 0x497b8a
mov eax, dword [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
jmp 0x497d23
push 0x555764
lea edx, [ebp - 0x420]
push edx
call fcn.004cbc4a
add esp, 8
test eax, eax
jne 0x497bd4
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
jmp 0x497d23
push 0x55576c
lea edx, [ebp - 0x420]
push edx
call fcn.004cbc4a
add esp, 8
test eax, eax
jne 0x497c1e
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 2
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
jmp 0x497d23
push 0x555774
lea edx, [ebp - 0x420]
push edx
call fcn.004cbc4a
add esp, 8
test eax, eax
jne 0x497c68
mov eax, dword [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 3
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
jmp 0x497d23
push 0x55577c
lea edx, [ebp - 0x420]
push edx
call fcn.004cbc4a
add esp, 8
test eax, eax
jne 0x497caf
mov eax, dword [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 4
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
jmp 0x497d23
push 0x555784
lea edx, [ebp - 0x420]
push edx
call fcn.004cbc4a
add esp, 8
test eax, eax
jne 0x497cf6
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 5
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
jmp 0x497d23
mov edx, dword [ebp - 0x430]
push edx
mov ecx, dword [ebp - 0x434]
add ecx, 0x2c
call dword [sym.imp.DuiLib32.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 0x2ec]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x134]
call eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ca9d7
mov esp, ebp
pop ebp
ret