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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x140
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 dword [sym.imp.winhttp.dll_WinHttpOpen]
sub esp, 0x14
mov edi, eax
mov dword [ebp - 0x118], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x167b
xor eax, eax
test edi, edi
setne al
mov dword [esp + 4], str.WinHttpOpen_failed_to_open_session._n
mov dword [esp], eax
mov esi, dword fs:[0x18]
call fcn.00410490
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], str.test.winehq.org
mov dword [esp], edi
call dword [sym.imp.winhttp.dll_WinHttpConnect]
sub esp, 0x10
mov ebx, eax
mov dword [ebp - 0x11c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x167e
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.WinHttpConnect_failed_to_open_a_connection__error:__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], 0x100
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.tests_redirecttest.php_max3
mov dword [esp + 4], 0x439b8c
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov ebx, eax
test eax, eax
je 0x426d40
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1688
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.WinHttpOpenRequest_failed_to_open_a_request__error:__lu_n
mov dword [esp + 8], eax
mov dword [esp], 1
call fcn.00410490
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 2
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x59
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpSetOption]
sub esp, 0x10
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x168d
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.WinHttpSetOption_failed:__lu_n
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
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov edi, eax
sub esp, 0x1c
mov eax, dword [esi + 0x34]
test edi, edi
jne 0x4269a9
cmp eax, 0x2efd
je 0x426da0
cmp eax, 0x2ee2
je 0x426da0
call fcn.00431c30
lea esi, [ebp - 0x10c]
mov edx, dword fs:[0x18]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1696
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x124], edx
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 1
lea edi, [ebp - 0x110]
sete al
mov dword [esp + 4], str.WinHttpSendRequest_failed:__lu_n
mov dword [esp], eax
call fcn.00410490
mov eax, dword [sym.imp.winhttp.dll_WinHttpQueryOption]
xor ecx, ecx
mov dword [ebp - 0x110], 0x100
mov word [ebp - 0x10c], cx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x22
mov dword [esp], ebx
mov dword [ebp - 0x128], eax
call eax
sub esp, 0x10
mov dword [ebp - 0x120], eax
call fcn.00431c30
mov edx, dword [ebp - 0x124]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x169b
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.got__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x120]
mov dword [esp], ecx
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x169c
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x124], eax
je 0x426d80
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x426ab2
mov edx, 0xffffffff
mov eax, esi
call fcn.0040f890
mov edx, eax
mov eax, dword [sym.imp.msvcrt.dll_wcscmp]
mov dword [ebp - 0x12c], edx
mov dword [esp + 4], str.http:__test.winehq.org_tests_redirecttest.php_max3
mov dword [esp], esi
mov dword [ebp - 0x120], eax
call eax
mov edx, dword [ebp - 0x12c]
mov dword [esp + 4], str.got__s_n
test eax, eax
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.00410490
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0xdeadbeef
mov dword [ebp - 0x130], edx
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
sub esp, 8
mov dword [ebp - 0x12c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16a0
xor eax, eax
mov dword [esp + 4], str.WinHttpReceiveResponse_succeeded__expected_failure_n
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov edx, dword [ebp - 0x130]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16a1
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_WINHTTP_REDIRECT_FAILED__got__lu_n
mov dword [esp + 8], eax
cmp dword [edx + 0x34], 0x2f7c
sete al
mov dword [ebp - 0x12c], edx
movzx eax, al
mov dword [esp], eax
call fcn.00410490
xor eax, eax
mov dword [ebp - 0x110], 0x100
mov word [ebp - 0x10c], ax
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], 0x22
mov dword [esp], ebx
mov eax, dword [ebp - 0x128]
call eax
sub esp, 0x10
mov edi, eax
call fcn.00431c30
mov edx, dword [ebp - 0x12c]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16a6
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.got__lu_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00410490
call fcn.00431c30
mov edx, dword [ebp - 0x124]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16a7
test edx, edx
je 0x426dc0
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x426c3e
mov edx, 0xffffffff
mov eax, esi
call fcn.0040f890
mov edi, eax
mov dword [esp + 4], str.http:__test.winehq.org_tests_redirecttest.php_id2max3
mov dword [esp], esi
mov eax, dword [ebp - 0x120]
call eax
mov edx, eax
mov eax, 1
test edx, edx
jne 0x426de0
mov dword [esp + 8], edi
mov dword [esp + 4], str.got__s_n
mov dword [esp], eax
call fcn.00410490
mov esi, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov dword [esp], ebx
call esi
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16ad
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.WinHttpCloseHandle_failed_on_closing_request__got__d._n
call fcn.00410490
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16af
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.WinHttpCloseHandle_failed_on_closing_connection__got__d._n
call fcn.00410490
mov eax, dword [ebp - 0x118]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x16b1
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.WinHttpCloseHandle_failed_on_closing_session__got__d._n
mov dword [esp], eax
call fcn.00410490
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esi + 0x34], 0x2ee7
je 0x426e08
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1688
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.WinHttpOpenRequest_failed_to_open_a_request__error:__lu_n
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00410490
jmp 0x426c74
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.0040f510
mov edx, eax
jmp 0x426ab2
mov eax, 0x1693
call fcn.0040fbc0
mov dword [esp], str.connection_failed__skipping_n
call fcn.0040fef0
jmp 0x426c74
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.0040f510
mov edi, eax
jmp 0x426c3e
mov dword [esp + 4], str.http:__test.winehq.org_tests_redirecttest.php_id1max3
mov dword [esp], esi
mov eax, dword [ebp - 0x120]
call eax
or eax, dword [0x4720d0]
sete al
movzx eax, al
jmp 0x426c60
mov eax, 0x1685
call fcn.0040fbc0
mov dword [esp], str.Network_unreachable__skipping._n
call fcn.0040fef0
jmp 0x426c74