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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
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 ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1f2
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
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3039
mov dword [esp + 4], str.127.0.0.1
call dword [sym.imp.winhttp.dll_WinHttpConnect]
sub esp, 0x10
mov esi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov edx, dword fs:[0x18]
mov dword [eax + 4], 0x1f5
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x10], edx
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], str.WinHttpConnect_failed_to_open_a_connection__error__lu._n
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 edi, eax
call fcn.00431c30
mov edx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1f9
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp + 4], str.WinHttpOpenrequest_failed_to_open_a_request__error:__lu_n
mov dword [esp], eax
call fcn.00410490
mov ecx, dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0x18], ecx
call ecx
mov dword [ebp - 0x10], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x434230
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x43d580
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
mov ecx, dword [ebp - 0x18]
sub esp, 0x1c
mov dword [ebp - 0x14], eax
call ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov edx, dword [edx + 0x34]
mov dword [ebp - 0x1c], edx
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1ff
xor eax, eax
mov dword [esp + 4], str.WinHttpSendRequest___succeeded._n
mov edx, dword [ebp - 0x14]
test edx, edx
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov edx, dword [ebp - 0x1c]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x200
xor eax, eax
cmp edx, 0x2efd
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Got_unexpected_err__lu._n
call fcn.00410490
call fcn.00431c30
mov ecx, dword [ebp - 0x10]
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x201
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.Unexpected_connect_failure_delay__lums._n
sub eax, ecx
cmp eax, 0x1387
mov dword [esp + 8], eax
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
mov dword [esp], edi
mov edi, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
call edi
sub esp, 4
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp], ebx
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret