Function at 0x41a4c0
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 edi, dword fs:[0x18]
movzx ebx, bx
sub esp, 0x38
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 esi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc10
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_session__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 + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.localhost
mov dword [ebp - 0x18], esi
mov dword [esp], esi
call dword [sym.imp.winhttp.dll_WinHttpConnect]
sub esp, 0x10
mov esi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc13
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_open_a_connection__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], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._largeauth
mov dword [esp + 4], 0x439b8c
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc16
mov eax, dword [edi + 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 ecx, dword [sym.imp.winhttp.dll_WinHttpSendRequest]
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
mov dword [ebp - 0x28], ecx
call ecx
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc19
mov dword [esp + 4], str.expected_success_n
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call fcn.00410490
mov eax, dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [ebp - 0x20], eax
call eax
sub esp, 8
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc1c
mov dword [esp + 4], str.expected_success_n
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call fcn.00410490
mov edx, dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x14]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000013
mov dword [ebp - 0x24], edx
call edx
sub esp, 0x18
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc21
mov dword [esp + 4], str.expected_success_n
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc22
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str.got__lu_n
cmp eax, 0x191
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00410490
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x439f56
mov dword [esp + 0xc], str.user
mov dword [esp + 8], 2
mov dword [esp + 4], 0
call dword [sym.imp.winhttp.dll_WinHttpSetCredentials]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc25
mov dword [esp + 4], str.expected_success_n
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
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
mov ecx, dword [ebp - 0x28]
call ecx
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc28
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.expected_success__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
call fcn.00410490
mov dword [esp], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
call eax
sub esp, 8
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc2b
mov dword [esp], edi
mov dword [esp + 4], str.expected_success_n
call fcn.00410490
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
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 edx, dword [ebp - 0x24]
call edx
sub esp, 0x18
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc30
mov dword [esp], edi
mov dword [esp + 4], str.expected_success_n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0xc31
mov eax, dword [ebp - 0x14]
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
mov dword [esp], ebx
mov ebx, dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
call ebx
sub esp, 4
mov dword [esp], esi
call ebx
mov esi, dword [ebp - 0x18]
sub esp, 4
mov dword [esp], esi
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret