Function at 0x415b90
Capabilities:
Check http status code
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x2c
mov dword [ebp - 0x18], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
sub esp, 0x1c
mov ebx, eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x105f
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 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], ebx
call dword [sym.imp.winhttp.dll_WinHttpSendRequest]
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1062
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_send_request__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
call fcn.00410490
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpReceiveResponse]
sub esp, 8
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x1065
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_receive_response__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
call fcn.00410490
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0xdeadbeef
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000013
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
sub esp, 0x18
mov dword [ebp - 0x1c], eax
call fcn.00431c30
mov dword [eax], 0x438e8a
mov dword [eax + 4], 0x106a
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_query_status_code__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
call fcn.00410490
call fcn.00431c30
mov dword [eax], 0x438e8a
mov edi, dword [ebp - 0x14]
mov dword [eax + 4], 0x106b
mov eax, esi
shr eax, 0x10
je 0x415dd0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x415d73
mov edx, 0xffffffff
mov eax, esi
call fcn.0040f890
mov edx, eax
mov ecx, dword [ebp - 0x14]
mov eax, 1
cmp ecx, 0xc8
je 0x415d9b
mov eax, dword [0x4720d0]
test eax, eax
sete al
cmp ecx, 0x190
sete cl
movzx ecx, cl
and eax, ecx
mov dword [esp + 0x10], edi
mov esi, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.request__s_with_flags__lx_failed__lu_n
mov dword [esp], eax
call fcn.00410490
mov dword [esp], ebx
call dword [sym.imp.winhttp.dll_WinHttpCloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call fcn.0040f510
mov edx, eax
jmp 0x415d73