Function at 0x409ba0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4981ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8c
mov eax, dword [0x4bc410]
mov ecx, dword [esp + 0xba0]
xor eax, esp
push ebx
push ebp
mov dword [esp + 0xb90], eax
mov eax, dword [esp + 0xba4]
push esi
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
call dword [0x49f754]
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0xba4], ebp
call dword [0x49f754]
lea ecx, [esp + 0x78]
mov byte [esp + 0xba4], 1
call fcn.0041f8b0
lea ecx, [esp + 0x50]
mov byte [esp + 0xba4], 2
call fcn.00421670
push 0x19000
mov byte [esp + 0xba8], 3
call sub.MFC71.DLL_operator_new
push str.config_clienttype.ini
lea edx, [esp + 0x24]
push 0x4bc618
push edx
mov esi, eax
mov dword [esp + 0x30], 0x19000
mov dword [esp + 0x3c], ebp
call fcn.00401050
add esp, 0x10
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push ebp
push str.count
push str.weblogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, 0x6400
mov edi, esi
push str.config_clienttype.ini
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x40
lea ecx, [esp + 0x160]
push ecx
push str.dywebloginid
push str.idname
push str.weblogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push str.config_clienttype.ini
lea edx, [esp + 0x20]
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 0x40
lea eax, [esp + 0x120]
push eax
push str.dyweblogininfo
push str.infoname
push str.weblogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
cmp ebx, ebp
jle 0x40a308
mov ebx, dword [sym.imp.MSVCR71.dll_sprintf]
mov edi, edi
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x99c]
push str.url_d
push edx
call ebx
push str.config_clienttype.ini
lea eax, [esp + 0x2c]
push 0x4bc618
push eax
call fcn.00401050
add esp, 0x18
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x200
lea ecx, [esp + 0x1a0]
push ecx
push 0x4a095c
lea edx, [esp + 0x9a8]
push edx
push str.weblogin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test ebp, ebp
mov dword [esp + 0x20], 0x19000
jne 0x40a051
lea ecx, [esp + 0x78]
call fcn.0041d220
test eax, eax
je 0x409eaf
lea eax, [esp + 0x798]
push eax
lea ecx, [esp + 0x39c]
push ecx
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x88]
call fcn.0041f680
test eax, eax
je 0x409ea2
lea ecx, [esp + 0x398]
push ecx
lea edx, [esp + 0x15c]
push edx
push 0x4a1408
push esi
call ebx
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x160]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push esi
call fcn.00407490
add esp, 0xc
test eax, eax
je 0x409ea2
lea eax, [esp + 0x798]
push eax
lea ecx, [esp + 0x39c]
push ecx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x88]
call fcn.0041f680
test eax, eax
je 0x409ea2
lea ecx, [esp + 0x398]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0x4a1408
push esi
call ebx
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x120]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push esi
call fcn.00407490
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40a070
xor eax, eax
mov ecx, 0x6400
mov edi, esi
rep stosd dword es:[edi], eax
xor ebp, ebp
lea ecx, [esp + 0x50]
call fcn.00420d40
test eax, eax
je 0x409fb5
lea eax, [esp + 0x798]
push eax
lea ecx, [esp + 0x39c]
push ecx
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x60]
call fcn.00421b00
test eax, eax
je 0x409fa8
lea ecx, [esp + 0x398]
push ecx
lea edx, [esp + 0x15c]
push edx
push 0x4a1408
push esi
call ebx
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x160]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push esi
call fcn.00407490
add esp, 0xc
test eax, eax
je 0x409fa8
lea eax, [esp + 0x798]
push eax
lea ecx, [esp + 0x39c]
push ecx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x60]
call fcn.00421b00
test eax, eax
je 0x409fa8
lea ecx, [esp + 0x398]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0x4a1408
push esi
call ebx
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x120]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push esi
call fcn.00407490
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40a151
xor eax, eax
mov ecx, 0x6400
mov edi, esi
rep stosd dword es:[edi], eax
xor ebp, ebp
mov edi, dword [sym.imp.WININET.dll_InternetGetCookieA]
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x1a4]
push edx
call edi
test eax, eax
je 0x40a051
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x160]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push esi
call fcn.00407490
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x40a051
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x1a4]
push edx
mov dword [esp + 0x30], 0x19000
call edi
test eax, eax
je 0x40a051
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x120]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push esi
call fcn.00407490
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40a21e
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
inc edi
dec eax
test eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
jg 0x409d30
jmp 0x40a308
lea ecx, [esp + 0xfc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xe0]
mov byte [esp + 0xba4], 4
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 bl, 5
lea ecx, [esp + 0x14]
mov byte [esp + 0xba4], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x100]
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__]
sub esp, 0x1c
lea edx, [esp + 0x118]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x50]
push eax
call fcn.00492fe0
add esp, 0x20
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0xba8], 6
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0xba4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe0]
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]
mov ecx, dword [esp + 0x24]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
lea ecx, [esp + 0xe0]
mov byte [esp + 0xba4], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
jmp 0x40a2fa
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xfc]
mov byte [esp + 0xba4], 7
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 bl, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0xba4], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0xe4]
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__]
sub esp, 0x1c
lea edx, [esp + 0xfc]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x50]
push eax
call fcn.00492fe0
add esp, 0x20
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0xba8], 9
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0xba4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
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]
mov ecx, dword [esp + 0x24]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
mov byte [esp + 0xba4], 7
jmp 0x40a2e6
lea ecx, [esp + 0xe0]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0xfc]
mov byte [esp + 0xba4], 0xa
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 bl, 0xb
lea ecx, [esp + 0x14]
mov byte [esp + 0xba4], bl
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0xe4]
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__]
sub esp, 0x1c
lea edx, [esp + 0xfc]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x50]
push eax
call fcn.00492fe0
add esp, 0x20
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0xba8], 0xc
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0xba4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xfc]
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]
mov ecx, dword [esp + 0x24]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
mov byte [esp + 0xba4], 0xa
lea ecx, [esp + 0xfc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe0]
mov byte [esp + 0xba4], 3
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 esi
call sub.MFC71.DLL_operator_delete
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0xba4], 2
call fcn.00420c00
lea ecx, [esp + 0x78]
mov byte [esp + 0xba4], 1
call fcn.0041d160
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xb9c]
pop edi
pop esi
mov eax, ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xb90]
pop ebp
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0xb98
ret 8