Function at 0x1800041c0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x58]
call fcn.180001700
nop
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180004242
jmp 0x1800045c5
cmp qword [rsp + 0xf8], 0
je 0x1800042b5
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xf8]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test rcx, rcx
jbe 0x1800042b5
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x60], rax
jmp 0x1800042fb
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x100]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180004308
jmp 0x1800045c5
cmp qword [rsp + 0x110], 0
je 0x18000431d
cmp dword [rsp + 0x118], 0
jne 0x180004334
mov qword [rsp + 0x110], 0
mov dword [rsp + 0x118], 0
cmp dword [rsp + 0xe8], 0
je 0x18000434b
mov dword [rsp + 0xc0], 0x800000
jmp 0x180004356
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
or eax, 0x4003000
or eax, 0x80000
or eax, 0x200000
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800043c9
jmp 0x1800045c5
mov dword [rsp + 0x68], 1
mov r9d, 4
lea r8, [rsp + 0x68]
mov edx, 0x41
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [rsp + 0x6c], 4
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x90]
mov edx, 0x1f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [rsp + 0x90]
or eax, 0x3380
mov dword [rsp + 0x90], eax
mov r9d, 4
lea r8, [rsp + 0x90]
mov edx, 0x1f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rcx, [rsp + 0x78]
call fcn.180001700
nop
lea rdx, [0x180075548]
lea rcx, [rsp + 0x78]
call fcn.180002c50
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0x78]
call fcn.180002c50
lea rcx, [rsp + 0x78]
call fcn.18000b500
mov edi, eax
lea rcx, [rsp + 0x78]
call fcn.180003370
mov rdx, rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x110]
mov r8d, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1800044ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x9c], eax
lea rcx, [rsp + 0x78]
call fcn.1800017c0
jmp 0x1800045c5
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x94], 0xa000
mov ecx, dword [rsp + 0x94]
call fcn.18004f654
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x180004526
lea rcx, [rsp + 0x78]
call fcn.1800017c0
jmp 0x1800045c5
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x94]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x18000455e
cmp dword [rsp + 0x70], 0
jne 0x180004560
jmp 0x180004581
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x120]
call fcn.180001090
xor eax, eax
cmp eax, 1
jne 0x180004526
cmp qword [rsp + 0x88], 0
je 0x1800045a9
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.18004f750
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x78]
call fcn.1800017c0
xor eax, eax
test eax, eax
jne 0x180004215
cmp dword [rsp + 0x48], 0
jne 0x1800045d9
mov rcx, qword [rsp + 0x120]
call fcn.180001050
cmp qword [rsp + 0x40], 0
je 0x1800045ec
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x60], 0
je 0x1800045ff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x50], 0
je 0x180004612
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xb0], eax
lea rcx, [rsp + 0x58]
call fcn.1800017c0
mov eax, dword [rsp + 0xb0]
add rsp, 0xd0
pop rdi
ret