Function at 0x426e30
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x18]
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x48
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpGetDefaultProxyConfiguration]
sub esp, 4
test eax, eax
jne 0x427310
mov ecx, dword [sym.imp.winhttp.dll_WinHttpOpen]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.winetest
mov dword [ebp - 0x20], ecx
call ecx
sub esp, 0x14
mov esi, eax
call fcn.00431c30
mov edi, dword fs:[0x18]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x854
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_session__lu_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00410490
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x2710
mov dword [esp + 8], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpSetOption]
mov dword [esp + 0xc], 4
mov dword [esp + 4], 2
mov dword [esp], esi
mov dword [ebp - 0x30], eax
call eax
sub esp, 0x10
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x858
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_set_resolve_timeout__lu_n
call fcn.00410490
mov eax, dword [sym.imp.winhttp.dll_WinHttpConnect]
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.nxdomain.winehq.org
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x10
mov ebx, eax
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x85b
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_a_connection__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00410490
mov eax, dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x28], eax
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x85e
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_a_request__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00410490
mov eax, dword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [ebp - 0x24], eax
call eax
mov ecx, dword [ebp - 0x20]
sub esp, 0x1c
test eax, eax
jne 0x4273c0
mov dword [ebp - 0x34], eax
mov eax, 0x867
mov dword [ebp - 0x38], ecx
call fcn.0040fbc0
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_ERROR_WINHTTP_NAME_NOT_RESOLVED_got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x2ee7
sete al
mov dword [esp], eax
call fcn.00410490
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x20], eax
sub esp, 8
mov eax, 0x86b
call fcn.0040fbc0
mov edx, dword [ebp - 0x20]
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0x38]
test edx, edx
mov edx, dword [ebp - 0x34]
je 0x427408
mov dword [ebp - 0x34], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.got__lu_n
call fcn.00410490
mov edi, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov dword [esp], ebx
mov dword [ebp - 0x20], edi
call edi
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
mov ecx, dword [ebp - 0x34]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.winetest
call ecx
sub esp, 0x14
mov esi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x877
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_session__lu_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00410490
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x2710
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov dword [esp], esi
mov eax, dword [ebp - 0x30]
call eax
sub esp, 0x10
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x87b
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_set_resolve_timeout__lu_n
call fcn.00410490
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.test.winehq.org
mov dword [esp], esi
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0x10
mov ebx, eax
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x87e
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_a_connection__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00410490
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x28]
call eax
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x881
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_a_request__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00410490
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov eax, dword [ebp - 0x24]
call eax
sub esp, 0x1c
mov ecx, eax
test eax, eax
jne 0x4272b8
cmp dword [edi + 0x34], 0x2efd
je 0x427450
mov dword [ebp - 0x24], ecx
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x889
mov dword [esp + 4], str.failed_to_send_request_n
mov ecx, dword [ebp - 0x24]
mov dword [esp], ecx
call fcn.00410490
mov dword [esp], ebx
mov edi, dword [ebp - 0x20]
call edi
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x35
call fcn.0040fbc0
mov edx, dword [ebx + 0x34]
mov eax, 1
test edx, edx
jne 0x4273e8
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], str.got__lu_n
call fcn.00410490
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x427430
mov dword [esp], eax
mov ebx, dword [sym.imp.kernel32.dll_GlobalFree]
call ebx
mov eax, dword [ebp - 0x10]
sub esp, 4
test eax, eax
je 0x427366
mov dword [esp], eax
call ebx
sub esp, 4
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x874
mov dword [esp], str.Skipping_host_resolution_tests__host_resolution_performed_by_proxy_n
call fcn.0040fef0
mov eax, dword [sym.imp.winhttp.dll_WinHttpSetOption]
mov ecx, dword [sym.imp.winhttp.dll_WinHttpOpen]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpConnect]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov dword [ebp - 0x28], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov dword [ebp - 0x20], eax
jmp 0x4270ec
mov eax, 0x864
call fcn.0040fbc0
mov dword [esp], str.nxdomain_returned_success._Broken_ISP_redirects__n
call fcn.0040fef0
mov eax, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov dword [ebp - 0x20], eax
jmp 0x4272e0
mov ecx, dword [0x4720d0]
test ecx, ecx
sete cl
xor eax, eax
cmp edx, 0xdeadbeef
sete al
and eax, ecx
jmp 0x42732a
mov edx, 1
cmp eax, 0x2ef3
je 0x4270ae
xor edx, edx
cmp eax, 0x2ef1
sete dl
jmp 0x4270ae
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x426e5e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalFree]
sub esp, 4
jmp 0x426e5e
mov eax, 0x886
call fcn.0040fbc0
mov dword [esp], str.connection_failed__skipping_n
call fcn.0040fef0
jmp 0x4272e0