Function at 0x4296c0
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x28
mov dword [esi + 0x34], 0xdeadbeef
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]
mov edi, dword [esi + 0x34]
sub esp, 0x14
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x11f
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str.WinHttpOpen_failed_to_open_session._n
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x120
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp + 4], str.got__lu_n
mov dword [esp], eax
call fcn.00410490
mov dword [esi + 0x34], 0xdeadbeef
mov edi, dword [sym.imp.winhttp.dll_WinHttpConnect]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0
mov dword [esp], ebx
call edi
mov edx, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x126
xor eax, eax
mov dword [esp + 4], str.WinHttpConnect_succeeded_in_opening_connection_to_NULL_server_argument._n
mov ecx, dword [ebp - 0x14]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov edx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x127
xor eax, eax
cmp edx, 0x57
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.Expected_ERROR_INVALID_PARAMETER__got__lu._n
mov dword [esp], eax
call fcn.00410490
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], str.test.winehq.org
mov dword [esp], ebx
call edi
mov esi, dword [esi + 0x34]
sub esp, 0x10
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x12d
xor eax, eax
test edi, edi
setne al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.WinHttpConnect_failed_to_open_a_connection__error:__lu._n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x12e
mov eax, 1
test esi, esi
je 0x429880
mov eax, dword [0x4720d0]
test eax, eax
sete dl
xor eax, eax
cmp esi, 0x2726
sete al
and eax, edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.got__lu_n
mov dword [esp], eax
call fcn.00410490
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0xdeadbeef
mov dword [ebp - 0x10], edx
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], edi
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov edx, dword [ebp - 0x10]
sub esp, 0x1c
mov esi, eax
mov edx, dword [edx + 0x34]
test eax, eax
jne 0x429920
cmp edx, 0x2ee7
jne 0x429920
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x136
mov dword [esp], str.Network_unreachable__skipping._n
call fcn.0040fef0
mov edx, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
jmp 0x429ada
mov dword [ebp - 0x10], edx
call fcn.00431c30
mov edx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x139
xor eax, eax
test esi, esi
setne al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.WinHttpOpenrequest_failed_to_open_a_request__error:__lu._n
call fcn.00410490
call fcn.00431c30
mov edx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x13a
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.got__lu_n
mov dword [esp], eax
call fcn.00410490
mov ecx, dword fs:[0x18]
mov dword [ecx + 0x34], 0xdeadbeef
mov dword [ebp - 0x10], ecx
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], esi
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov ecx, dword [ebp - 0x10]
sub esp, 0x1c
mov edx, eax
mov ecx, dword [ecx + 0x34]
test eax, eax
jne 0x4299f4
cmp ecx, 0x2efd
je 0x429b60
cmp ecx, 0x2ee2
je 0x429b60
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
call fcn.00431c30
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x144
mov dword [esp + 8], ecx
mov dword [esp + 4], str.WinHttpSendRequest_failed:__lu_n
mov edx, dword [ebp - 0x14]
mov dword [esp], edx
call fcn.00410490
call fcn.00431c30
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x145
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 8], ecx
mov dword [esp + 4], str.got__lu_n
mov dword [esp], eax
call fcn.00410490
mov edx, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
mov ecx, dword fs:[0x18]
mov dword [ecx + 0x34], 0xdeadbeef
mov dword [ebp - 0x18], ecx
mov dword [esp], esi
mov dword [ebp - 0x14], edx
call edx
mov ecx, dword [ebp - 0x18]
sub esp, 4
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x34]
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x14a
mov dword [esp + 8], esi
mov dword [esp + 4], str.WinHttpCloseHandle_failed_on_closing_request__got__lu._n
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x14b
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.got__lu_n
mov dword [esp], eax
call fcn.00410490
mov edx, dword [ebp - 0x14]
mov dword [esp], edi
mov dword [ebp - 0x10], edx
call edx
sub esp, 4
mov esi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x14f
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.WinHttpCloseHandle_failed_on_closing_connection__got__d._n
mov dword [esp], eax
call fcn.00410490
mov dword [esp], ebx
mov edx, dword [ebp - 0x10]
call edx
sub esp, 4
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x151
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
mov eax, 0x141
call fcn.0040fbc0
mov dword [esp], str.Connection_failed__skipping._n
call fcn.0040fef0
mov edx, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
jmp 0x429ada