Function at 0x4291d0
Capabilities:
Initialize winhttp library
Prepare http request
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, 0x134
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
mov dword [ebp - 0x11c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10a4
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], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.localhost
call dword [sym.imp.winhttp.dll_WinHttpConnect]
sub esp, 0x10
mov ebx, eax
mov dword [ebp - 0x120], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10a7
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 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], str._basic
mov dword [esp + 4], 0
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10aa
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
lea eax, [ebp - 0x114]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [ebp - 0x114], 0x104
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x110]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.winhttp.dll_WinHttpQueryOption]
mov dword [esp + 4], 0x5d
mov dword [esp], ebx
mov dword [ebp - 0x118], eax
call eax
mov esi, dword [edi + 0x34]
sub esp, 0x10
test eax, eax
sete al
mov edi, eax
cmp esi, 0x57
jne 0x429390
test al, al
je 0x429390
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10b2
mov dword [esp], str.WINHTTP_OPTION_CONNECTION_INFO_not_supported_n
call fcn.00410460
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10b5
mov eax, edi
movzx edi, al
mov dword [esp + 4], str.unexpected_success_n
mov dword [esp], edi
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10b6
xor eax, eax
cmp esi, 0x2ef3
sete al
mov dword [esp + 8], esi
mov dword [esp + 4], str.got__lu_n
mov dword [esp], eax
mov esi, dword fs:[0x18]
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], 0x10b9
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
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x110]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5d
mov eax, dword [ebp - 0x118]
call eax
mov edi, dword [esi + 0x34]
sub esp, 0x10
mov dword [ebp - 0x124], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10bf
xor eax, eax
mov dword [esp + 4], str.unexpected_success_n
mov ecx, dword [ebp - 0x124]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10c0
xor eax, eax
cmp edi, 0x7a
sete al
mov dword [esp + 8], edi
lea edi, [ebp - 0x110]
mov dword [esp], eax
mov dword [esp + 4], str.got__lu_n
call fcn.00410490
xor edx, edx
mov ecx, 0x41
mov dword [ebp - 0x114], 0x104
mov eax, edx
lea edx, [ebp - 0x114]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x110]
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 4], 0x5d
mov eax, dword [ebp - 0x118]
call eax
sub esp, 0x10
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10c5
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_retrieve_connection_info__lu_n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10c6
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], str.wrong_size__lu_n
mov dword [esp + 8], eax
and eax, 0xfffffffb
cmp eax, 0x100
sete al
movzx eax, al
mov dword [esp], eax
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], 0x10c9
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x110]
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_receive_response__lu_n
call fcn.00410490
xor eax, eax
mov ecx, 0x41
lea edx, [ebp - 0x110]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 0x104
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], ebx
mov dword [esp + 4], 0x5d
mov eax, dword [ebp - 0x118]
call eax
sub esp, 0x10
mov edi, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10ce
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.failed_to_retrieve_connection_info__lu_n
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x10cf
mov eax, dword [ebp - 0x110]
mov dword [esp + 4], str.wrong_size__lu_n
mov dword [esp + 8], eax
and eax, 0xfffffffb
cmp eax, 0x100
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 - 0x120]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x11c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret