Function at 0x402710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492a18
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x4c56f0]
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
push 0x104
lea eax, [ebp - 0x178]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x178]
mov ecx, edi
push 0x5c
push ecx
call fcn.0046f030
add esp, 8
test eax, eax
je 0x40278a
jmp 0x402770
push 0x5c
push edi
call fcn.0046f030
lea edi, [eax + 1]
push 0x5c
push edi
call fcn.0046f030
add esp, 0x10
test eax, eax
jne 0x402770
lea eax, [ebp - 0x178]
mov byte [edi], 0
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402794
mov edx, dword [0x4a1b70]
mov ecx, dword [0x4a1b74]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [eax], edx
mov edx, dword [0x4a1b78]
mov dword [eax + 4], ecx
mov cx, word [0x4a1b7c]
mov dword [eax + 8], edx
mov dl, byte [0x4a1b7e]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
lea eax, [ebp - 0x178]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push 0x4a173c
push str.SetTop
push str.SysConfig
call edi
add esi, 0x2c
push str.cb_front
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
mov ebx, eax
test ebx, ebx
je 0x402827
lea edx, [ebp - 0x74]
push 0x4a1738
push edx
call fcn.0046efff
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x40281f
push 1
jmp 0x402821
push 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CCheckBoxUI::SetCheck_bool_]
lea eax, [ebp - 0x178]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push 0x4a173c
push str.CloseExit
push str.SysConfig
call edi
push str.cb_closeexit
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
mov ebx, eax
test ebx, ebx
je 0x40287b
lea edx, [ebp - 0x74]
push 0x4a1738
push edx
call fcn.0046efff
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x402873
push 1
jmp 0x402875
push 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CCheckBoxUI::SetCheck_bool_]
lea eax, [ebp - 0x178]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push 0x4a173c
push str.AutoMemory
push str.SysConfig
call edi
push str.cb_automemory
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
mov ebx, eax
test ebx, ebx
je 0x4028cf
lea edx, [ebp - 0x74]
push 0x4a1738
push edx
call fcn.0046efff
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x4028c7
push 1
jmp 0x4028c9
push 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CCheckBoxUI::SetCheck_bool_]
lea eax, [ebp - 0x178]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push 0x4a173c
push str.AutoStart
push str.SysConfig
call edi
push str.cb_start
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
mov ebx, eax
test ebx, ebx
je 0x402923
lea edx, [ebp - 0x74]
push 0x4a1738
push edx
call fcn.0046efff
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x40291b
push 1
jmp 0x40291d
push 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CCheckBoxUI::SetCheck_bool_]
lea eax, [ebp - 0x178]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push 0x4a173c
push str.AutoUpdate
push str.SysConfig
call edi
push str.cb_update
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
mov ebx, eax
test ebx, ebx
je 0x402977
lea edx, [ebp - 0x74]
push 0x4a1738
push edx
call fcn.0046efff
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x40296f
push 1
jmp 0x402971
push 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CCheckBoxUI::SetCheck_bool_]
lea ebx, [ebp - 0x200]
call fcn.00429f30
push str.Datadh.ini
lea ecx, [ebp - 0x1bc]
push ecx
mov ecx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CDuiString::operator_char_const__]
mov ecx, ebx
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0x1bc]
call dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const]
push eax
push 0x63
lea edx, [ebp - 0x74]
push edx
push 0x4a1c4c
push str.open
push 0x4a1c58
call edi
push str.cb_hao123
mov ecx, esi
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
mov ebx, eax
test ebx, ebx
je 0x402a03
lea eax, [ebp - 0x74]
push 0x4a1c68
push eax
call fcn.0046efff
add esp, 8
mov ecx, ebx
test eax, eax
jne 0x4029fb
push 1
jmp 0x4029fd
push 0
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CCheckBoxUI::SetCheck_bool_]
lea ecx, [ebp - 0x178]
push ecx
push 0x63
lea edx, [ebp - 0x74]
push edx
push 0x4a173c
push str.ShowHideWindowKey
push str.SysConfig
call edi
mov ebx, dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const]
push str.eShowHide
mov ecx, esi
call ebx
test eax, eax
je 0x402a41
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call edx
lea eax, [ebp - 0x178]
push eax
push 0x63
lea ecx, [ebp - 0x74]
push ecx
push 0x4a173c
push str.ExitWindowKey
push str.SysConfig
call edi
push str.eExit
mov ecx, esi
call ebx
test eax, eax
je 0x402a79
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call edx
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
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.0046eadd
mov esp, ebp
pop ebp
ret