Function at 0x41cc20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x497ce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
mov eax, dword [0x4bc410]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0x268], eax
mov eax, dword [esp + 0x27c]
push esi
xor ebp, ebp
cmp eax, ebp
push edi
mov edi, ecx
jne 0x406f4b
cmp dword [edi + 0xd0], ebp
je 0x406f4b
mov ecx, 0x4bc8f0
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
cmp dword [0x4bc8ec], ebp
mov dword [esp + 0x27c], ebp
mov byte [0x4bd14c], 0
jne 0x406dc3
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
je 0x406dc3
lea ecx, [esp + 0x24]
call dword [0x49f754]
mov byte [0x4bd14c], 1
mov ecx, dword [edi + 0xd0]
cmp ecx, ebp
mov byte [esp + 0x27c], 1
mov byte [esp + 0x4c], 0
je 0x40664e
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x48]
push edx
call fcn.00409ba0
test eax, eax
je 0x40664e
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x24]
mov dword [0x4bc8ec], eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, 0x4bca90
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edi + 0xd0]
add ecx, 0x4e0
call dword [0x49f214]
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov dword [0x4bd0d0], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4a095c
mov byte [esp + 0x288], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x284], 1
mov ecx, dword [edi + 0xd0]
push eax
call fcn.0040ee90
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x406f5d
push ebp
call dword [sym.imp.MSVCR71.dll_time]
push eax
call dword [sym.imp.MSVCR71.dll_srand]
add esp, 8
call dword [sym.imp.MSVCR71.dll_rand]
lea ecx, [esp + 0x30]
mov esi, eax
call dword [0x49f754]
push esi
lea ecx, [esp + 0x34]
push 0x4a1158
push ecx
mov byte [esp + 0x288], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea edx, [esp + 0x30]
lea ecx, [edi + 0x24]
push edx
mov dword [esp + 0x20], ecx
call dword [0x49f214]
mov ecx, dword [edi + 0xd0]
lea eax, [esp + 0x30]
push eax
add ecx, 0x4e0
call dword [0x49f214]
push str.config_partner.ini
lea ecx, [esp + 0x24]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebp
push 0x4a1140
push str.partner
call esi
lea ecx, [esp + 0x20]
mov dword [edi + 0xcc], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [edi + 0xcc]
push str.config_partner.ini
lea eax, [esp + 0x24]
push 0x4bc618
push eax
mov dword [0x4bd144], edx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebp
push str.subid
push str.partner
call esi
lea ecx, [esp + 0x20]
mov dword [0x4bd148], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp dword [edi + 0xcc], ebp
jne 0x406ba2
lea ecx, [esp + 0x2c]
call dword [0x49f754]
lea ecx, [esp + 0x18]
call dword [0x49f754]
lea ecx, [esp + 0x20]
call dword [0x49f754]
lea ecx, [esp + 0x34]
call dword [0x49f754]
lea ecx, [esp + 0x14]
call dword [0x49f754]
lea ecx, [esp + 0x3c]
call dword [0x49f754]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x4bd148
mov bl, 9
push 0x4bd144
mov byte [esp + 0x294], bl
call fcn.00427e60
mov edx, dword [0x4bd144]
add esp, 0x18
lea ecx, [esp + 0x2c]
mov dword [edi + 0xcc], edx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x406b58
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x406b58
push str.config_menu.ini
lea eax, [esp + 0x14]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xa
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x4a112c
push str.TOTAL
push str.APPEND
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.MENUNAME1
push str.APPEND
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.LINK1
push str.APPEND
call esi
push str.config_enumwindow.ini
lea ecx, [esp + 0x14]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xb
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push 0x4a10b8
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.AppendWindow
push str.MSGWINDOW
call esi
push str.config_menu.ini
lea ecx, [esp + 0x14]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xc
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x4a112c
push str.REPLACEWITHMAINWEB
push str.APPEND
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.homepage
push str.LIBMENU
call esi
push str._help
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401050
add esp, 0xc
lea ecx, [esp + 0x14]
mov ebp, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.helppage
push str.LIBMENU
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.config_enumwindow.ini
lea ecx, [esp + 0x14]
push 0x4bc618
push ecx
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xd
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.TopClickURL
push str.MSGWINDOW
call esi
push str.jfCacheMgr.url
lea edx, [esp + 0x14]
push 0x4bc618
push edx
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xe
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x4a1048
push str.InternetShortcut
call esi
push str.pphelp.url
lea eax, [esp + 0x14]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0xf
call dword [0x49f214]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str._help
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00401050
add esp, 0xc
lea ecx, [esp + 0x14]
mov ebx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x4a1048
push str.InternetShortcut
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
jle 0x406b56
push str.config_config.ini
lea eax, [esp + 0x14]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 0x10
call dword [0x49f214]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.PartnerChannelListUrl
push str.ChannelList
call esi
xor ebp, ebp
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x54], ebp
call fcn.00403900
lea eax, [esp + 0x74]
add esp, 4
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406bc2
sub eax, ecx
push eax
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0048c7f0
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov bl, 0x11
lea ecx, [edi + 0xc0]
mov byte [esp + 0x280], bl
call dword [0x49f214]
push str.config_partner.ini
lea edx, [esp + 0x14]
push 0x4bc618
push edx
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 1
push str.readwebclick
push str.partner
call esi
lea ecx, [esp + 0x10]
mov dword [0x4bd0d0], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4bc618
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.Haoying_Network_Inc.
call fcn.0042b080
add esp, 0x14
test eax, eax
je 0x406c91
mov eax, dword [esp + 0x40]
cmp dword [0x4bd144], eax
jne 0x406c91
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
mov dword [0x4bc8ec], ecx
push 1
mov ecx, edi
mov dword [0x4bd144], eax
mov dword [0x4bd148], edx
call fcn.00405920
jmp 0x406d00
mov al, byte [0x4bcdc6]
test al, al
mov ecx, edi
je 0x406cd9
lea eax, [esp + 0x10]
push eax
call fcn.00403290
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
mov byte [esp + 0x280], 0x12
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, 0x4bc600
call fcn.0045a010
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x406d00
push 1
call fcn.00405920
cmp eax, ebp
je 0x406ce9
cmp eax, 2
jne 0x406d00
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, edi
call fcn.00405670
mov byte [esp + 0x4c], 1
mov edx, dword [0x4bd2c0]
cmp dword [edx + 0x2ec], ebp
jbe 0x406d96
mov eax, dword [0x4bd148]
mov ecx, dword [0x4bd144]
mov edx, dword [0x4bc8ec]
push eax
push ecx
push edx
mov ecx, 0x4bc618
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.Haoying_Network_Inc.
call fcn.0042b3d0
mov eax, dword [0x4bd148]
mov ecx, dword [0x4bd144]
push eax
push ecx
call fcn.00428b00
add esp, 0x1c
mov ecx, 0x4bd028
call fcn.00427290
mov edx, dword [0x4bc614]
mov eax, dword [0x4bd148]
mov ecx, dword [0x4bd144]
push edx
mov edx, dword [0x4bd2c0]
push eax
mov eax, dword [edx + 0x2ec]
push ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, 0x4bc600
call fcn.0045a050
lea ecx, [esp + 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x406f5d
mov edx, dword [0x4bd2c0]
mov al, byte [edx + 0x7c6]
test al, al
jne 0x406eaf
push 0x4bd148
push 0x4bd144
call fcn.00428a70
push str.config_config.ini
lea eax, [esp + 0x28]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0x14
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebp
push str.WRITEREG
push 0x49fd90
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x1c]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp esi, ebp
jne 0x406e54
mov ecx, dword [0x4bd148]
mov edx, dword [0x4bd144]
mov eax, dword [0x4bc8ec]
push ecx
push edx
push eax
mov ecx, 0x4bc618
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push str.Haoying_Network_Inc.
call fcn.0042b3d0
add esp, 0x14
cmp dword [0x4bc8ec], ebp
je 0x406e97
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [0x4bc8ec]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x288], 0x13
call fcn.00403ec0
lea ecx, [esp + 0x54]
mov byte [esp + 0x27c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 1
mov ecx, edi
call fcn.00405920
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x406f5d
cmp dword [0x4bc8ec], ebp
jbe 0x406eef
push 0x4bd148
push 0x4bd144
call fcn.00428a70
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0xd0]
call fcn.0040ed90
push 3
mov ecx, eax
mov byte [esp + 0x280], 0x14
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebp
jmp 0x406f2b
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x406f3f
mov ecx, dword [edi + 0xd0]
lea edx, [esp + 0x1c]
push edx
call fcn.0040ed90
push 3
mov ecx, eax
mov byte [esp + 0x280], 0x15
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, 0x4bc600
call fcn.0045abe0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x406f5d
mov edi, dword [edi + 0xd0]
cmp edi, ebp
je 0x406f5d
push eax
mov ecx, edi
call fcn.0040a440
mov ecx, dword [esp + 0x274]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x268]
pop ebp
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x270
ret 4
mov ecx, dword [ecx + 0x810]
test ecx, ecx
je 0x41cc2f
jmp 0x4064e0
ret 4