Function at 0x40f267
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abe84
mov eax, dword fs:[0]
push eax
mov eax, 0x20b0
call fcn.0043d890
mov eax, dword [0x4ef340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x209c], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x20ac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20b4], eax
mov eax, dword [ebp + 0x18]
push 1
mov dword [ebp - 0x2090], edi
mov dword [ebp - 0x2088], edi
mov dword [ebp - 0x2094], eax
mov dword [ebp - 0x20bc], ebx
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f311
lea eax, [ebp - 0x2088]
push eax
push str.CMcHttpH::SendRequest_called_with_url__s
push 0x2c2
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 1
call fcn.00402fc0
mov edi, dword [ebp - 0x2088]
add esp, 0x18
mov dword [ebp - 0x2090], edi
xor eax, eax
mov dword [ebp - 0x2064], 0x4b57bc
push 0xc
push eax
mov dword [ebp - 0x2060], eax
mov dword [ebp - 0x205c], eax
lea eax, [ebp - 0x20a8]
push eax
call fcn.0043f630
xor eax, eax
mov dword [ebx], eax
mov ebx, eax
push edi
lea eax, [ebp - 0x1058]
push 0x824
push eax
call fcn.00443be1
add esp, 0x18
xor eax, eax
mov ecx, esi
push eax
lea eax, [ebp - 0x2058]
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.0041035a
mov dword [ebp - 0x2080], eax
test eax, eax
jne 0x40fb4a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
mov ecx, 0x100
cmp dword [esi + 0x14], edx
mov eax, 0x800100
cmove eax, ecx
mov ecx, dword [0x4ef0d8]
test ecx, ecx
je 0x40f3c7
cmp dword [0x4ef0b4], edx
je 0x40f3c7
push eax
lea eax, [ebp - 0x2064]
push eax
push edx
push str.HTTP_1.1
lea eax, [ebp - 0x2058]
push eax
push dword [ebp - 0x20ac]
push dword [esi + 0xc]
call ecx
mov ebx, eax
jmp 0x40f3c9
mov ebx, edx
test ebx, ebx
je 0x40fe32
cmp dword [0x4ef108], 0
je 0x40f4c1
push 1
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f408
push str.We_have_to_call_handleproxy
push 0x2e7
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 1
call fcn.00402c10
add esp, 0x14
mov eax, dword [0x4ef100]
mov dword [ebp - 0x20b0], 0xc
test eax, eax
je 0x40f439
cmp dword [0x4ef0b4], 0
je 0x40f439
lea ecx, [ebp - 0x20b0]
push ecx
lea ecx, [ebp - 0x20a8]
push ecx
push 0x26
push ebx
call eax
jmp 0x40f43b
xor eax, eax
test eax, eax
jne 0x40f478
call edi
push 3
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f478
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpQueryOption_returned_error_while_querying_for_proxy__ld
push 0x2ec
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 3
call fcn.00402fc0
add esp, 0x18
push dword [ebp - 0x2090]
mov ecx, esi
push ebx
call fcn.0040e7dc
mov dword [ebp - 0x2080], eax
test eax, eax
je 0x40f4c1
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f4c1
lea eax, [ebp - 0x2080]
push eax
push str.HandleProxy_returned_error__ld
push 0x2f1
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 3
call fcn.00402fc0
add esp, 0x18
mov ecx, dword [ebp - 0x20b4]
test ecx, ecx
je 0x40f4fa
xor eax, eax
cmp word [ecx], ax
je 0x40f4fa
mov eax, dword [0x4ef0dc]
test eax, eax
je 0x40f4ef
cmp dword [0x4ef0b4], 0
je 0x40f4ef
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ecx
push ebx
call eax
jmp 0x40f4f2
xor eax, eax
inc eax
test eax, eax
je 0x40fbee
mov eax, dword [0x4ef0ac]
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x2084], edx
test eax, eax
je 0x40f531
cmp dword [0x4ef0b4], ecx
je 0x40f531
lea ecx, [ebp - 0x2084]
push ecx
xor ecx, ecx
push ecx
push ecx
lea ecx, [ebp - 0x1058]
push ecx
call eax
mov edx, dword [ebp - 0x2084]
jmp 0x40f534
xor eax, eax
inc eax
test eax, eax
je 0x40f687
xor ecx, ecx
mov eax, edx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043cfd1
mov esi, eax
mov dword [ebp - 0x2088], esi
pop ecx
test esi, esi
je 0x40fca3
mov eax, dword [0x4ef0ac]
test eax, eax
je 0x40f58b
cmp dword [0x4ef0b4], 0
je 0x40f58b
lea ecx, [ebp - 0x2084]
push ecx
push esi
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x1058]
push ecx
call eax
jmp 0x40f58e
xor eax, eax
inc eax
test eax, eax
je 0x40fc6e
push 1
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f5d4
lea eax, [ebp - 0x2088]
push eax
lea eax, [ebp - 0x2084]
push eax
push str.Retrieve_Cookie:_size__ld___s_
push 0x318
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 1
call fcn.00402c40
mov esi, dword [ebp - 0x2088]
add esp, 0x1c
xor eax, eax
mov dword [ebp - 0x2068], 7
push 0x4b6fd4
mov dword [ebp - 0x206c], eax
mov word [ebp - 0x207c], ax
call fcn.00443c45
pop ecx
push eax
push 0x4b6fd4
lea ecx, [ebp - 0x207c]
call fcn.00403c60
xor eax, eax
mov dword [ebp - 4], eax
cmp word [esi], ax
je 0x40f61a
push esi
call fcn.00443c45
pop ecx
push eax
push esi
lea ecx, [ebp - 0x207c]
call fcn.00404745
push esi
call fcn.0043cfda
cmp dword [ebp - 0x2068], 8
lea eax, [ebp - 0x207c]
pop ecx
cmovae eax, dword [ebp - 0x207c]
mov ecx, dword [0x4ef0dc]
test ecx, ecx
je 0x40f662
cmp dword [0x4ef0b4], 0
je 0x40f662
push 0x20000000
push 0xffffffffffffffff
push eax
push ebx
call ecx
jmp 0x40f665
xor eax, eax
inc eax
test eax, eax
je 0x40fc1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x207c]
xor eax, eax
push eax
push 1
call fcn.00403ea0
mov esi, dword [ebp - 0x209c]
mov eax, dword [0x4ef0e0]
test eax, eax
je 0x40f6af
cmp dword [0x4ef0b4], 0
je 0x40f6af
xor ecx, ecx
push ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x1c]
push dword [ebp - 0x2094]
push ecx
push ecx
push ebx
call eax
jmp 0x40f6b2
xor eax, eax
inc eax
test eax, eax
jne 0x40f814
call edi
mov dword [ebp - 0x2080], eax
cmp eax, 0x3e5
je 0x40f814
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f6fe
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpSendRequest_returned_error__ld
push 0x335
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 4
call fcn.00402fc0
add esp, 0x18
cmp dword [0x4ef108], 0
je 0x40fd1d
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f735
push str.We_will_try_again_without_proxy
push 0x338
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 3
call fcn.00402c10
add esp, 0x14
mov ecx, dword [0x4ef0f4]
mov eax, dword [0x4ef0b4]
push 0xc
pop edx
mov dword [ebp - 0x2084], edx
test ecx, ecx
je 0x40f767
test eax, eax
je 0x40f767
push edx
lea eax, [ebp - 0x20a8]
push eax
push 0x26
push ebx
call ecx
mov ecx, eax
mov eax, dword [0x4ef0b4]
jmp 0x40f76a
xor ecx, ecx
inc ecx
test ecx, ecx
je 0x40fcef
mov ecx, dword [0x4ef0e0]
test ecx, ecx
je 0x40f796
test eax, eax
je 0x40f796
xor eax, eax
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x1c]
push dword [ebp - 0x2094]
push eax
push eax
push ebx
call ecx
jmp 0x40f799
xor eax, eax
inc eax
test eax, eax
jne 0x40f7e3
call edi
mov dword [ebp - 0x2080], eax
cmp eax, 0x3e5
jne 0x40fcc9
push 3
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f814
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpSendRequest_with_prev_proxy_failed_returned_error__ld
push 0x348
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 3
call fcn.00402fc0
add esp, 0x18
jmp 0x40f814
xor eax, eax
push 3
mov dword [0x4ef108], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f814
push str.WinHttpSendRequest_succeeded_without_proxy
push 0x34e
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 3
call fcn.00402c10
add esp, 0x14
mov eax, dword [0x4ef0e4]
test eax, eax
je 0x40f82e
cmp dword [0x4ef0b4], 0
je 0x40f82e
xor ecx, ecx
push ecx
push ebx
call eax
jmp 0x40f831
xor eax, eax
inc eax
test eax, eax
jne 0x40f848
call edi
mov dword [ebp - 0x2080], eax
cmp eax, 0x3e5
jne 0x40fd43
mov edx, dword [0x4ef0d0]
xor ecx, ecx
mov dword [ebp - 0x20b8], ecx
mov eax, ecx
mov dword [ebp - 0x208c], eax
mov dword [ebp - 0x2084], 4
test edx, edx
je 0x40f8a2
cmp dword [0x4ef0b4], eax
je 0x40f8a2
lea eax, [ebp - 0x20b8]
push eax
lea eax, [ebp - 0x2084]
push eax
lea eax, [ebp - 0x208c]
push eax
push ecx
push 0x20000013
push ebx
call edx
mov edx, dword [0x4ef0d0]
mov ecx, eax
mov eax, dword [ebp - 0x208c]
jmp 0x40f8a5
xor ecx, ecx
inc ecx
test ecx, ecx
je 0x40fe04
cmp eax, 0x12d
je 0x40fac6
cmp eax, 0x12e
je 0x40fac6
cmp eax, 0x190
jb 0x40f8d5
cmp eax, 0x1f9
jbe 0x40fd69
cmp dword [ebp + 0x20], 0
jne 0x40f8e6
cmp eax, 0xc8
jne 0x40fd69
xor esi, esi
mov dword [ebp - 0x2098], esi
mov dword [ebp - 0x2084], esi
test edx, edx
je 0x40f918
cmp dword [0x4ef0b4], 0
je 0x40f918
lea eax, [ebp - 0x2098]
push eax
lea eax, [ebp - 0x2084]
push eax
push esi
push esi
push 0x2b
push ebx
call edx
jmp 0x40f91b
xor eax, eax
inc eax
test eax, eax
jne 0x40f92a
call edi
cmp eax, 0x7a
jne 0x40fa0c
mov eax, dword [ebp - 0x2084]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043cfd1
mov ecx, dword [ebp - 0x2084]
mov edi, eax
add ecx, ecx
mov dword [ebp - 0x2088], edi
push ecx
push esi
push edi
call fcn.0043f630
mov eax, dword [0x4ef0d0]
add esp, 0x10
test eax, eax
je 0x40f988
cmp dword [0x4ef0b4], 0
je 0x40f988
lea ecx, [ebp - 0x2098]
push ecx
lea ecx, [ebp - 0x2084]
push ecx
push edi
push esi
push 0x2b
push ebx
call eax
jmp 0x40f98b
xor eax, eax
inc eax
test eax, eax
je 0x40fa5f
push 1
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40f9ca
lea eax, [ebp - 0x2088]
push eax
push str.Found_server_cookie___s_
push 0x395
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 1
call fcn.00402fc0
mov edi, dword [ebp - 0x2088]
add esp, 0x18
mov eax, dword [0x4ef0a8]
test eax, eax
je 0x40f9eb
cmp dword [0x4ef0b4], 0
je 0x40f9eb
push edi
push esi
lea ecx, [ebp - 0x1058]
push ecx
call eax
mov esi, eax
jmp 0x40f9ee
xor esi, esi
inc esi
push edi
call fcn.0043cfda
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
test esi, esi
je 0x40fa38
mov edx, dword [0x4ef0d0]
xor esi, esi
jmp 0x40f8ee
call edi
cmp eax, 0x2f76
je 0x40fa9e
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fa9e
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpQueryHeaders___returned_error__ld
push 0x3ac
jmp 0x40fa8a
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fa9e
lea eax, [ebp - 0x2080]
push eax
push str.InternetSetCookie___error__ld
push 0x39e
jmp 0x40fa8a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fa9e
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpQueryHeaders___returned_error__ld
push 0x3a5
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 4
call fcn.00402fc0
add esp, 0x18
push dword [ebp - 0x20bc]
mov esi, dword [ebp - 0x209c]
push esi
push ebx
call fcn.0040d8de
add esp, 0xc
mov dword [ebp - 0x2080], eax
test eax, eax
je 0x40fdd5
xor eax, eax
jmp 0x40fb26
mov eax, dword [0x4ef0dc]
test eax, eax
je 0x40fae7
cmp dword [0x4ef0b4], 0
je 0x40fae7
push 0x80000000
push 0xffffffffffffffff
push str.Cookie:
push ebx
call eax
push 0x1048
lea eax, [ebp - 0x1058]
mov ecx, esi
push eax
push ebx
call fcn.004102aa
mov dword [ebp - 0x2080], eax
mov eax, dword [0x4ef0e8]
test eax, eax
je 0x40fb16
cmp dword [0x4ef0b4], 0
je 0x40fb16
push ebx
call eax
xor eax, eax
mov ebx, eax
cmp dword [ebp - 0x2080], eax
jne 0x40fdde
push eax
lea eax, [ebp - 0x2058]
mov ecx, esi
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.0041035a
mov dword [ebp - 0x2080], eax
test eax, eax
je 0x40f37f
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str._Init_returned_error__ld
push 0x2d9
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 4
call fcn.00402fc0
add esp, 0x18
xor edi, edi
cmp dword [ebp - 0x20a4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
je 0x40fb9a
push dword [ebp - 0x20a4]
call esi
mov dword [ebp - 0x20a4], edi
cmp dword [ebp - 0x20a0], 0
je 0x40fbb1
push dword [ebp - 0x20a0]
call esi
mov dword [ebp - 0x20a0], edi
test ebx, ebx
je 0x40fbca
mov eax, dword [0x4ef0e8]
test eax, eax
je 0x40fbca
cmp dword [0x4ef0b4], 0
je 0x40fbca
push ebx
call eax
mov eax, dword [ebp - 0x2080]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043cfdf
mov esp, ebp
pop ebp
ret 0x20
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpAddRequestHeaders_returned_error__ld
push 0x2f9
jmp 0x40fb67
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fc55
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpAddRequestHeaders_returned_error__ld
push 0x321
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push 4
call fcn.00402fc0
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x207c]
xor edi, edi
push edi
push 1
call fcn.00403ea0
jmp 0x40fb7d
push esi
call fcn.0043cfda
pop ecx
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.InternetGetCookie___returned_error__ld
push 0x329
jmp 0x40fb67
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2084]
push eax
push str.new_buffer_error__ld
push 0x311
jmp 0x40fb67
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpSendRequest_with_prev_proxy_returned_error__ld
push 0x345
jmp 0x40fb67
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.failed_in_WinHttpSetOption_for_prev_proxy_with_error__ld
push 0x33d
jmp 0x40fb67
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpSendRequest_returned_error__ld_and_we_did_not_use_proxy
push 0x354
jmp 0x40fb67
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpReceiveResponse_returned_error__ld
push 0x35f
jmp 0x40fb67
push 4
pop esi
push esi
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fd9b
lea eax, [ebp - 0x208c]
push eax
push str.WinHttpQueryHeaders_dwStatus__lu
push 0x3b9
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push esi
call fcn.00402fc0
add esp, 0x18
push esi
mov dword [ebp - 0x2080], 0x2f78
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.SendRequest_returning_error__lu
push 0x3bb
push str.CMcHttpH::SendRequest
push str...includeMcHttpH.cpp
push esi
jmp 0x40fb73
xor edi, edi
mov ebx, edi
jmp 0x40fb7d
push 4
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str._GetRedirectedUrl_returned_error__ld
push 0x37e
jmp 0x40fb67
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpQueryHeaders_returned_error__ld
push 0x36c
jmp 0x40fb67
call edi
push 4
mov dword [ebp - 0x2080], eax
call fcn.0042c3e0
pop ecx
test eax, eax
je 0x40fb7b
lea eax, [ebp - 0x2080]
push eax
push str.WinHttpOpenRequest_returned_error__ld
push 0x2e2
jmp 0x40fb67