Function at 0x42eca0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov eax, 0xffffffff
mov ecx, 0x40
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x10c]
push ebx
sub esp, 0x150
rep stosd dword es:[edi], eax
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 esi, eax
mov dword [ebp - 0x138], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x186
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], str.WinHttpOpen_failed_to_open_session._n
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.00410490
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], str.test.winehq.org
call dword [sym.imp.winhttp.dll_WinHttpConnect]
sub esp, 0x10
mov esi, eax
mov dword [ebp - 0x13c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x189
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WinHttpConnect_failed_to_open_a_connection__error:__lu_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00410490
mov dword [esp], esi
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_post.php
mov dword [esp + 4], str.POST
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov esi, eax
test eax, eax
je 0x42f5d0
call fcn.00431c30
lea ebx, [ebp - 0x11c]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x192
mov eax, dword [edi + 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
xor eax, eax
mov dword [ebp - 0x124], 0x10
mov word [ebp - 0x11c], ax
lea eax, [ebp - 0x124]
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2d
mov dword [esp], esi
mov dword [ebp - 0x140], eax
call eax
sub esp, 0x18
mov dword [ebp - 0x134], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x198
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.got__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x134]
mov dword [esp], edx
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov edx, dword [ebp - 0x124]
mov dword [eax + 4], 0x199
mov eax, str.POST
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x42eea0
sub eax, str.POST
mov dword [esp + 8], edx
cmp eax, edx
mov dword [esp + 4], str.got__lu_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x19a
mov eax, ebx
shr eax, 0x10
je 0x42f5b0
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x42ef12
mov edx, 0xffffffff
mov eax, ebx
call fcn.0040f890
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 4], str.POST
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
sete al
mov dword [esp + 8], edi
movzx eax, al
mov dword [esp + 4], str.got__s_n
mov dword [esp], eax
mov ebx, dword fs:[0x18]
call fcn.00410490
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0xdeadbeef
mov edi, dword [sym.imp.winhttp.dll_WinHttpSetOption]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d
mov dword [esp], esi
call edi
sub esp, 0x10
mov dword [ebp - 0x134], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x19e
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.WinHttpSetOption_failed:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x134]
mov dword [esp], edx
call fcn.00410490
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 8
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0x3f
mov dword [esp], esi
call edi
sub esp, 0x10
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1a4
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.WinHttpSetOption_failed:__lu_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00410490
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], str.modeTest
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], str.Content_Type:_application_x_www_form_urlencoded
mov dword [esp], esi
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov edx, eax
sub esp, 0x1c
mov eax, dword [ebx + 0x34]
test edx, edx
jne 0x42f06d
cmp eax, 0x2efd
je 0x42f650
cmp eax, 0x2ee2
je 0x42f650
mov eax, 0x1ae
mov dword [ebp - 0x134], edx
mov edi, dword fs:[0x18]
call fcn.0040fbc0
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WinHttpSendRequest_failed:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x134]
xor eax, eax
cmp edx, 1
sete al
mov dword [esp], eax
call fcn.00410490
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x12c], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x120]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d
mov dword [esp], esi
call dword [sym.imp.winhttp.dll_WinHttpQueryOption]
sub esp, 0x10
mov ebx, eax
mov eax, 0x1b3
call fcn.0040fbc0
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WinHttpQueryOption_failed:__lu_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00410490
mov eax, 0x1b4
call fcn.0040fbc0
mov eax, dword [ebp - 0x120]
mov dword [esp + 4], str.expected_0xdeadbef0__got__Ix_n
cmp eax, 0xdeadbef0
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
cmp byte [0x43423f], 0
je 0x42f670
lea eax, [ebp - 0x130]
mov ebx, 0x43423f
mov dword [ebp - 0x134], eax
jmp 0x42f1d4
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1bd
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Expected_ERROR_SUCCESS_got__lu_n
mov dword [esp + 8], eax
mov edx, dword [edi + 0x34]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1be
mov eax, dword [ebp - 0x130]
mov dword [esp + 4], str.WinHttpWriteData_failed__wrote__lu_bytes_instead_of_1_byte_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.00410490
cmp byte [ebx], 0
je 0x42f27b
mov eax, dword [ebp - 0x134]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [ebp - 0x130], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.winhttp.dll_WinHttpWriteData]
sub esp, 0x10
test eax, eax
jne 0x42f160
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1c2
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Expected_ERROR_INVALID_PARAMETER_got__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1c3
xor eax, eax
mov dword [esp + 4], str.Expected_bytes_rw_to_remain_unchanged._n
cmp dword [ebp - 0x130], 0xffffffff
sete al
add ebx, 1
mov dword [esp], eax
call fcn.00410490
cmp byte [ebx], 0
jne 0x42f1d4
mov edi, dword fs:[0x18]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
sub esp, 8
mov ebx, eax
mov eax, 0x1c9
call fcn.0040fbc0
mov edx, dword [edi + 0x34]
mov eax, 1
test edx, edx
je 0x42f2ce
cmp dword [edi + 0x34], 0x3f0
mov edi, dword [0x4720d0]
sete cl
xor eax, eax
test edi, edi
sete al
and eax, ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_ERROR_SUCCESS_got__lu_n
mov edi, dword fs:[0x18]
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1cb
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.WinHttpReceiveResponse_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp], eax
call fcn.00410490
lea eax, [ebp - 0x124]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x22
mov dword [esp], esi
mov eax, dword [ebp - 0x140]
call eax
sub esp, 0x18
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1cf
xor eax, eax
mov edx, dword [edi + 0x34]
test ebx, ebx
jne 0x42f381
xor eax, eax
cmp edx, 0x2f76
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got__lu_n
mov edi, dword fs:[0x18]
call fcn.00410490
lea eax, [ebp - 0x124]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4f
mov dword [esp], esi
mov eax, dword [ebp - 0x140]
call eax
sub esp, 0x18
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1d3
xor eax, eax
mov edx, dword [edi + 0x34]
test ebx, ebx
jne 0x42f400
xor eax, eax
cmp edx, 0x57
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got__lu_n
call fcn.00410490
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x130], 0xffffffff
mov dword [esp + 8], 0xff
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.winhttp.dll_WinHttpReadData]
sub esp, 0x10
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1d7
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.WinHttpReadData_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1d9
mov eax, dword [ebp - 0x130]
mov dword [esp + 4], str.Read__lu_bytes_n
cmp eax, 0xe
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1da
cmp dword [ebp - 0x10c], 0x65646f6d
je 0x42f610
mov eax, 1
xor eax, 1
mov dword [esp + 4], str.Data_read_did_not_match._n
mov dword [esp], eax
call fcn.00410490
mov dword [esp], esi
mov esi, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
call esi
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1de
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 - 0x13c]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1e0
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 - 0x138]
mov dword [esp], eax
call esi
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1e2
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
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.0040f510
mov edi, eax
jmp 0x42ef12
cmp dword [edi + 0x34], 0x2ee7
je 0x42f681
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x192
mov eax, dword [edi + 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 0x42f4ee
cmp dword [ebp - 0x108], 0x203e3d20
jne 0x42f4d6
cmp dword [ebp - 0x104], 0x74736554
jne 0x42f4d6
xor eax, eax
cmp word [ebp - 0x100], 0xa00
jne 0x42f4d6
jmp 0x42f4db
mov eax, 0x1ab
call fcn.0040fbc0
mov dword [esp], str.connection_failed__skipping_n
call fcn.0040fef0
jmp 0x42f4ee
lea eax, [ebp - 0x130]
mov dword [ebp - 0x134], eax
jmp 0x42f27b
mov eax, 0x18f
call fcn.0040fbc0
mov dword [esp], str.Network_unreachable__skipping._n
call fcn.0040fef0
jmp 0x42f4ee