Function at 0x40d8a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a358d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x63c
mov eax, dword [0x4cbba0]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x648], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
xor ebx, ebx
mov eax, 0x4ad71c
mov dword [esp + 0x654], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 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 + 0x2c]
call sub.MFC71.DLL_CMenu::Attach
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC71.DLL_CMenu::FromHandle
cmp eax, ebx
jne 0x40d950
xor eax, eax
jmp 0x40d953
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 + 0x14]
push 0x4cbdc0
push edx
call fcn.004010a0
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 + 0x50]
push eax
push 0x4add00
push str.TOTAL
push str.APPEND
call edi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.config_menu.ini
lea ecx, [esp + 0x14]
push 0x4cbdc0
push ecx
call fcn.004010a0
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 + 0x10]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
cmp esi, ebx
mov ebp, eax
jne 0x40dadc
cmp ebp, ebx
jle 0x40dadc
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 0x40dada
jmp 0x40da30
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
push esi
lea ecx, [esp + 0x14]
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 + 0x24]
push 0x4cbdc0
push edx
mov word [esp + 0x60], 0x20
call fcn.004010a0
add esp, 0x18
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x3ff
lea eax, [esp + 0x51]
push eax
push 0x4acbb2
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.APPEND
call edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esi + 0x8020]
push edx
push 0x400
push 0
push eax
call ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x654], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
inc esi
cmp esi, ebp
jle 0x40da30
xor ebx, ebx
push str.config_menu.ini
lea ecx, [esp + 0x18]
push 0x4cbdc0
push ecx
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x200
lea edx, [esp + 0x450]
push edx
push 0x4acbb2
push str.homename
push str.LIBMENU
call edi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x448]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40db30
mov edi, dword [sym.imp.USER32.dll_ModifyMenuA]
sub eax, edx
mov dword [esp + 0x14], eax
je 0x40db77
lea eax, [esp + 0x448]
push eax
lea ecx, [esp + 0x4c]
push str._s_O_
push ecx
call dword [sym.imp.MSVCR71.dll_sprintf]
mov eax, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x48]
push edx
push 0x8003
push ebx
push 0x8003
push eax
call edi
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x4add00
call dword [0x4ab700]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.UseBossKey
mov byte [esp + 0x660], 5
call dword [0x4ab700]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.BOSSKEY
mov byte [esp + 0x664], 6
call dword [0x4ab700]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0x158
mov byte [esp + 0x664], 3
call fcn.0042c6b0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x658], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x654], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x4add00
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 0x40dc25
mov edx, dword [esp + 0x1c]
push 8
push 0x8009
push edx
call esi
mov eax, dword [0x4cbc30]
add eax, 0x800c
push 8
push eax
mov eax, dword [esp + 0x24]
push eax
call esi
cmp ebp, ebx
jle 0x40dc48
mov ecx, dword [esp + 0x1c]
add ebp, 7
push ebp
push ecx
jmp 0x40dc4f
mov edx, dword [esp + 0x1c]
push 6
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call sub.MFC71.DLL_CMenu::FromHandle
mov ebp, dword [esp + 0x24]
mov esi, eax
mov al, byte [ebp + 0x574]
test al, al
je 0x40dc81
mov eax, dword [esi + 4]
push 0x4adeb8
push 0x809b
push ebx
push 0x809b
push eax
jmp 0x40dc95
mov ecx, dword [esi + 4]
push 0x4adea4
push 0x809b
push ebx
push 0x809b
push ecx
call edi
mov eax, dword [ebp + 0x560]
cmp eax, ebx
je 0x40dcbc
cmp eax, 1
je 0x40dcbc
mov edx, dword [esi + 4]
push 0x4ade94
push 0x8099
push ebx
push 0x8099
push edx
jmp 0x40dcd0
mov eax, dword [esi + 4]
push 0x4ade84
push 0x8099
push ebx
push 0x8099
push eax
call edi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebx
push ebp
push ecx
push edx
push 2
lea ecx, [esp + 0x2c]
mov dword [ebp + 0x180], 1
call sub.MFC71.DLL_CMenu::TrackPopupMenu
mov esi, 0x4ad71c
lea ecx, [esp + 0x30]
mov byte [esp + 0x654], 2
mov dword [esp + 0x30], esi
call fcn.004a11f2
lea ecx, [esp + 0x18]
mov byte [esp + 0x654], 1
mov dword [esp + 0x18], esi
call fcn.004a11f2
lea ecx, [esp + 0x28]
mov byte [esp + 0x654], 0
mov dword [esp + 0x28], esi
call fcn.004a11f2
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.004a17d1
add esp, 0x648
ret