Function at 0x40b6f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x49835d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x63c
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x28], ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x648], eax
call dword [0x49f754]
xor ebx, ebx
mov eax, 0x4a15c4
mov dword [esp + 0x654], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x658], 3
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x84
push 4
push 0x84
call sub.MFC71.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
lea ecx, [esp + 0x28]
call sub.MFC71.DLL_CMenu::Attach
mov ecx, dword [esp + 0x28]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC71.DLL_CMenu::FromHandle
cmp eax, ebx
jne 0x40b7a0
xor eax, eax
jmp 0x40b7a3
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC71.DLL_CMenu::Attach
push str.config_menu.ini
lea edx, [esp + 0x18]
push 0x4bc618
push edx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x400
lea eax, [esp + 0x250]
push eax
push 0x4a1648
push str.TOTAL
push str.APPEND
call edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.config_menu.ini
lea ecx, [esp + 0x18]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebx
push str.REPLACEWITHMAINWEB
push str.APPEND
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
cmp esi, ebx
mov ebp, eax
jne 0x40b935
cmp ebp, ebx
jle 0x40b935
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 0xc00
push ebx
mov ebx, dword [sym.imp.USER32.dll_InsertMenuA]
push eax
call ebx
mov esi, 1
cmp ebp, esi
jl 0x40b933
lea ecx, [ecx]
lea ecx, [esp + 0x14]
call dword [0x49f754]
push esi
lea ecx, [esp + 0x18]
push str.MENUNAME_d
push ecx
mov byte [esp + 0x660], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
push str.config_menu.ini
lea edx, [esp + 0x20]
push 0x4bc618
push edx
mov word [esp + 0x260], 0x20
call fcn.00401050
add esp, 0x18
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x3ff
lea eax, [esp + 0x251]
push eax
push 0x4a095c
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.APPEND
call edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x248]
push ecx
lea edx, [esi + 0x8020]
push edx
push 0x400
push 0
push eax
call ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x654], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
inc esi
cmp esi, ebp
jle 0x40b880
xor ebx, ebx
push str.config_menu.ini
lea ecx, [esp + 0x14]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x200
lea edx, [esp + 0x50]
push edx
push 0x4a0000
push str.abouttitle
push str.LIBMENU
call edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24c]
push 0x4a1b68
push ecx
call esi
mov eax, dword [esp + 0x28]
mov ebp, dword [sym.imp.USER32.dll_ModifyMenuA]
add esp, 0xc
lea edx, [esp + 0x248]
push edx
push 0x8006
push ebx
push 0x8006
push eax
call ebp
push str.config_menu.ini
lea ecx, [esp + 0x14]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x200
lea edx, [esp + 0x50]
push edx
push 0x4a095c
push str.homename
push str.LIBMENU
call edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x48]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40ba03
sub eax, ecx
mov dword [esp + 0x10], eax
je 0x40ba43
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24c]
push str._s_O_
push ecx
call esi
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x248]
push edx
push 0x8003
push ebx
push 0x8003
push eax
call ebp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4a1648
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.UseBossKey
mov byte [esp + 0x660], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.BOSSKEY
mov byte [esp + 0x664], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 0x158]
mov byte [esp + 0x664], 3
call fcn.004259f0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x658], 7
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x654], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x4a1648
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
je 0x40baf1
mov edx, dword [esp + 0x1c]
push 8
push 0x8009
push edx
call esi
mov eax, dword [0x4bc498]
add eax, 0x800c
push 8
push eax
mov eax, dword [esp + 0x24]
push eax
call esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebx
push edi
push ecx
push edx
push 2
lea ecx, [esp + 0x2c]
mov dword [edi + 0x180], 1
call sub.MFC71.DLL_CMenu::TrackPopupMenu
mov esi, 0x4a15c4
lea ecx, [esp + 0x30]
mov byte [esp + 0x654], 2
mov dword [esp + 0x30], esi
call fcn.00496438
lea ecx, [esp + 0x18]
mov byte [esp + 0x654], 1
mov dword [esp + 0x18], esi
call fcn.00496438
lea ecx, [esp + 0x24]
mov byte [esp + 0x654], 0
mov dword [esp + 0x24], esi
call fcn.00496438
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x64c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x640]
pop ebp
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x648
ret