Function at 0x41ca20
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov esi, dword fs:[0x18]
movzx ebx, bx
sub esp, 0xbc
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.winetest
call dword [sym.imp.winhttp.dll_WinHttpOpen]
sub esp, 0x14
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcb5
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.failed_to_open_session__lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.00410490
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.localhost
mov dword [ebp - 0xa0], edi
mov dword [esp], edi
call dword [sym.imp.winhttp.dll_WinHttpConnect]
sub esp, 0x10
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcb8
mov eax, dword [esi + 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 + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._head
mov dword [esp + 4], str.HEAD
mov dword [ebp - 0xa4], ebx
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcbb
mov eax, dword [esi + 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], 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
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
sub esp, 0x1c
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcbe
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_send_request__lu_n
call fcn.00410490
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
sub esp, 8
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcc1
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_receive_response__lu_n
call fcn.00410490
mov edx, dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 0xdeadbeef
mov dword [ebp - 0x9c], 4
mov dword [esp + 0x10], ecx
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000013
mov dword [ebp - 0xa8], edx
call edx
sub esp, 0x18
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcc7
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_get_status_code__lu_n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcc8
mov eax, dword [ebp - 0x90]
mov dword [esp + 4], str.got__lu_n
cmp eax, 0xc8
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
lea ecx, [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0xdeadbeef
mov dword [ebp - 0x9c], 4
mov dword [esp + 0x10], ecx
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000005
mov edx, dword [ebp - 0xa8]
call edx
sub esp, 0x18
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcce
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x94]
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_get_content_length_header__lu_n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xccf
mov eax, dword [ebp - 0x98]
mov dword [esp + 4], str.got__lu_n
cmp eax, 0x64
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
mov ecx, dword [sym.imp.winhttp.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 0x94], 0xdeadbeef
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0xac], ecx
call ecx
sub esp, 8
mov dword [ebp - 0xa8], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcd3
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.failed_to_query_data_available__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa8]
mov dword [esp], edx
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcd4
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], str.got__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x98], pe_nt_image_headers32
mov dword [ebp - 0x94], 0xdeadbeef
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], eax
call dword [sym.imp.winhttp.dll_WinHttpReadData]
sub esp, 0x10
mov dword [ebp - 0xa8], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcd9
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.failed_to_read_data__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa8]
mov dword [esp], edx
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcda
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], str.got__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
mov dword [ebp - 0x94], 0xdeadbeef
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ecx, dword [ebp - 0xac]
call ecx
sub esp, 8
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcde
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_query_data_available__lu_n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xcdf
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], str.got__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
mov dword [esp], ebx
mov ebx, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
call ebx
mov eax, dword [ebp - 0xa4]
sub esp, 4
mov dword [esp], eax
call ebx
mov edi, dword [ebp - 0xa0]
sub esp, 4
mov dword [esp], edi
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret