Function at 0x4029e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40de72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x50], ecx
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x74], esi
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 9
test ebx, ebx
je 0x40313b
cmp byte [ebx], 0
je 0x40313b
push ebx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator_1
test esi, esi
je 0x402ab7
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x402afc
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
mov byte [ebp - 4], 0xa
je 0x402ae4
push 0
push 0
push 0
push 0
push 1
push str.session
mov ecx, eax
call sub.MFC42.DLL_CInternetSession::CInternetSession
jmp 0x402ae6
xor eax, eax
test esi, esi
mov byte [ebp - 4], 9
mov dword [ebp - 0x40], eax
je 0x402af4
mov dword [esi + 0xc], eax
test eax, eax
je 0x40313b
test byte [ebp + 0x18], 2
jne 0x402d6b
test esi, esi
je 0x402d6b
mov eax, dword [esi + 8]
test eax, eax
je 0x402d6b
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
push 0
push 0x3b
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0x50]
call fcn.00402040
test eax, eax
je 0x402d6b
push 0x3d
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jl 0x402baa
lea eax, [ebp - 0x58]
push esi
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0040d670
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.0040d550
inc esi
lea ecx, [ebp - 0x5c]
push esi
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call fcn.0040d670
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.0040d550
jmp 0x402bbe
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push edx
call fcn.0040d670
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push ecx
push ebx
call sub.MFC42.DLL_CInternetSession::GetCookie
add esp, 0xc
test eax, eax
je 0x402be2
mov edx, dword [ebp - 0x18]
cmp byte [edx], 0
je 0x402be2
mov eax, 1
jmp 0x402be4
xor eax, eax
xor ebx, ebx
test eax, eax
je 0x402cfa
push ebx
push 0x411098
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jge 0x402c11
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov eax, edi
lea ecx, [ebp - 0x60]
sub eax, ebx
push eax
push ebx
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.0040d670
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.0040d550
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::TrimRight
push 0x411020
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
lea ecx, [ebp - 0x14]
test esi, esi
jl 0x402cae
lea edx, [ebp - 0x64]
push esi
push edx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.0040d670
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 9
call fcn.0040d550
inc esi
lea eax, [ebp - 0x68]
push esi
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.0040d670
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.0040d550
jmp 0x402cbf
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040d670
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::Empty
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push edx
push eax
call esi
add esp, 8
test eax, eax
jne 0x402ce7
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x20]
push ecx
push edx
call esi
add esp, 8
test eax, eax
je 0x402cfa
mov eax, dword [ebp - 0x18]
mov ebx, edi
cmp byte [edi + eax], 0
je 0x402cfa
lea ebx, [edi + 1]
jmp 0x402bee
mov ecx, dword [ebp - 0x18]
cmp byte [ebx + ecx], 0
jne 0x402d56
mov edx, dword [ebp - 0x20]
cmp byte [edx], 0
jne 0x402d18
push str.deleted__expiresThu__01_Jan_1970_00:00:01_GMT
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402d42
cmp byte [eax], 0
je 0x402d42
push eax
lea eax, [ebp - 0x14]
push str.__Path_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call sub.MFC42.DLL_CInternetSession::SetCookie
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x48], eax
jmp 0x402b20
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push edx
call fcn.0040d670
mov eax, dword [ebp - 0x3c]
xor ebx, ebx
push 0x3f
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x402dd6
mov edi, dword [ebp - 0x3c]
mov ecx, esi
sub ecx, edi
lea edx, [ebp + 0x10]
push ecx
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.0040d670
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 9
call fcn.0040d550
inc esi
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp - 0x30]
not ecx
dec ecx
mov ebx, ecx
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x7c]
push edx
push eax
push ecx
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_AfxParseURL
test eax, eax
je 0x40313b
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x402e21
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
push 0
push 0
push edx
push eax
call sub.MFC42.DLL_CInternetSession::GetHttpConnection
test eax, eax
mov dword [ebp - 0x34], eax
je 0x40313b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x402e37
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], ecx
mov al, byte [ebp + 0x18]
test al, 2
je 0x402e45
or dword [ebp - 0x24], 0x280000
test al, 1
je 0x402e7c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
push 0
push 0
push 1
push 0
push edx
push 0
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov edi, eax
test edi, edi
mov dword [ebp - 0x30], edi
je 0x40313b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
push eax
push ecx
jmp 0x402ebd
test ebx, ebx
je 0x402e8a
dec esi
lea ecx, [ebp - 0x38]
push esi
call fcn.0040d694
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push edx
push 0
push 0
push 1
push 0
push eax
push 1
call sub.MFC42.DLL_CHttpConnection::OpenRequest
mov edi, eax
test edi, edi
mov dword [ebp - 0x30], edi
je 0x40313b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push 0
push 0
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::SendRequest
test eax, eax
mov dword [ebp + 0xc], eax
je 0x40313b
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
mov eax, dword [ebp - 0x54]
cmp eax, 0xc8
jb 0x402f1a
cmp eax, 0x12c
jae 0x402f1a
mov esi, dword [ebp + 0x1c]
mov dword [ebp + 0xc], 1
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov edx, dword [edi]
lea eax, [ebp - 0x70]
push 1
push eax
mov ecx, edi
call dword [edx + 0x3c]
test eax, eax
je 0x402f23
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
jmp 0x402efc
mov dword [ebp + 0xc], 0
jmp 0x402f50
test byte [ebp + 0x18], 4
je 0x402f50
lea edx, [ebp - 0x14]
push edx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x50]
call fcn.00401e30
test eax, eax
je 0x402f50
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040d670
test byte [ebp + 0x18], 2
je 0x40313b
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0x2b
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::QueryInfo
test eax, eax
je 0x4030d8
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Empty
xor esi, esi
push esi
push 0x411098
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jge 0x402f9e
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 8]
mov ecx, edi
lea edx, [ebp - 0x68]
sub ecx, esi
push ecx
push esi
push edx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.0040d670
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d670
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.0040d550
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [ebp - 0x2c]
push str.HttpOnly
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x403021
mov ecx, dword [ebp - 0x18]
cmp byte [ecx], 0
je 0x403015
mov edx, dword [ebp - 0x1c]
cmp byte [edx], 0
je 0x403015
push 0x411098
lea ecx, [ebp - 0x18]
call fcn.0040d694
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x14]
cmp byte [edi + ecx], 0
jne 0x4030d0
mov edx, dword [ebp - 0x18]
cmp byte [edx], 0
je 0x4030c1
push 0x3d
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Find_2
mov esi, eax
test esi, esi
jl 0x403099
lea eax, [ebp - 0x64]
push esi
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x13
call fcn.0040d670
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x11
call fcn.0040d550
inc esi
lea ecx, [ebp - 0x60]
push esi
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x14
call fcn.0040d670
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.0040d550
jmp 0x4030ad
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push edx
call fcn.0040d670
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
push eax
push ecx
push edx
call sub.MFC42.DLL_CInternetSession::SetCookie
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x402f61
lea esi, [edi + 1]
jmp 0x402f84
mov eax, dword [ebp - 0x54]
cmp eax, 0x12c
jb 0x40313b
cmp eax, 0x133
ja 0x40313b
lea eax, [ebp - 0x28]
push 0
push eax
push 0x21
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::QueryInfo
test eax, eax
je 0x40313b
mov ecx, dword [ebp - 0x28]
cmp byte [ecx], 0
je 0x40313b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
xor edi, edi
and al, 0xfd
mov dword [ebp - 0x30], edi
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 9
jmp 0x402d6b
test edi, edi
mov dword [ebp - 4], 9
je 0x403156
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x40316d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x403190
mov esi, dword [ebp - 0x40]
mov eax, dword [0xc]
cmp eax, esi
je 0x403190
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0040d550
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.0040d550
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0040d550
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040d550
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040d550
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0040d550
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040d550
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040d550
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0040d550
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d550
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18