Function at 0x402bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40d31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
lea edi, [esi + 0x20]
mov ecx, edi
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esi + 0x24]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ebp, [esi + 0x38]
mov byte [esp + 0x24], 1
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x40]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, edi
mov byte [esp + 0x28], 3
mov dword [esi], 0x40fa18
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040c292
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x402c37
mov eax, 0x415d28
push eax
mov ecx, ebp
call fcn.0040c292
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi + 0x10], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0xa
push str.ConnectTimeout
push str.Settings
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x14
push str.ReceiveTimeout
push str.Settings
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
cmp edi, 0xa
mov ebp, eax
jge 0x402cad
mov edi, 0xa
cmp ebp, 0x14
jge 0x402cb7
mov ebp, 0x14
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x415d28
push str.ProxyPass
lea edx, [esp + 0x1c]
push str.Settings
push edx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0x415d28
push str.ProxyUser
lea ecx, [esp + 0x18]
push str.Settings
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push ebx
push str.UseProxy
push str.Settings
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov ebx, eax
lea eax, [edi + edi*4]
mov ecx, dword [esi + 0x18]
push 0
lea eax, [eax + eax*4]
push 4
lea edx, [eax + eax*4]
lea eax, [esp + 0x34]
shl edx, 3
push eax
push 2
mov dword [esp + 0x3c], edx
call sub.MFC42.DLL_CInternetSession::SetOption
lea eax, [ebp + ebp*4]
push 0
lea edx, [esp + 0x30]
push 4
lea eax, [eax + eax*4]
push edx
push 6
lea ecx, [eax + eax*4]
shl ecx, 3
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x18]
call sub.MFC42.DLL_CInternetSession::SetOption
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x30]
push 4
push eax
push 4
mov dword [esp + 0x3c], 0x3e8
call sub.MFC42.DLL_CInternetSession::SetOption
mov ecx, dword [esi + 0x18]
push 0
lea edx, [esp + 0x30]
push 4
push edx
push 3
mov dword [esp + 0x3c], 2
call sub.MFC42.DLL_CInternetSession::SetOption
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 3
push str.MaxRetries
push str.Settings
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x14], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 1
push str.YahooDateFix
push str.Settings
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x48], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
push str.AllowCookies
push str.Settings
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
test ebx, ebx
mov dword [esi + 0x44], eax
je 0x402e2a
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esi + 0x18]
push eax
push 0x2b
call sub.MFC42.DLL_CInternetSession::SetOption
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esi + 0x18]
push eax
push 0x2c
call sub.MFC42.DLL_CInternetSession::SetOption
mov eax, dword [esp + 0x38]
test eax, eax
je 0x402e3b
push eax
lea ecx, [esi + 0x40]
call fcn.0040c292
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x402f20
call sub.MFC42.DLL_AfxBeginThread
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.0040c286
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call fcn.0040c286
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x28