Function at 0x1400049a0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rdx, [0x1400145d1]
lea rcx, [rsp + 0x100]
call fcn.140001af0
nop
mov dword [rsp + 0x4c], 0
jmp 0x1400049e8
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
movsxd rax, dword [rsp + 0x4c]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.1400019d0
mov rcx, qword [rsp + 0x98]
cmp rcx, rax
jae 0x140004ae1
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
mov rcx, qword [rsp + 0x1a0]
call fcn.1400019e0
movsx eax, byte [rax]
cmp eax, 0xa
jne 0x140004a65
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.140004f80
mov rcx, rax
call fcn.14000e150
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14000e410
jmp 0x140004adc
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
mov rcx, qword [rsp + 0x1a0]
call fcn.1400019e0
movsx eax, byte [rax]
cmp eax, 0x2a
jne 0x140004ab7
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x41]
call fcn.140005030
mov rcx, rax
call fcn.14000e0c0
mov rdx, rax
lea rcx, [rsp + 0x100]
call fcn.14000e410
jmp 0x140004adc
movsxd rax, dword [rsp + 0x4c]
mov rdx, rax
mov rcx, qword [rsp + 0x1a0]
call fcn.1400019e0
movzx edx, byte [rax]
lea rcx, [rsp + 0x100]
call fcn.140001a10
jmp 0x1400049de
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x42]
call fcn.1400050e0
mov rcx, rax
call fcn.14000df80
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140001af0
nop
lea rax, [rsp + 0x43]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x43]
call fcn.1400053d0
mov rcx, rax
call fcn.14000def0
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x44]
call fcn.1400054c0
mov rcx, rax
call fcn.14000ddb0
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x45]
call fcn.140005650
mov rcx, rax
call fcn.14000dc70
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140001af0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x100]
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x120]
call fcn.14000edd0
nop
lea rcx, [rsp + 0xd8]
call fcn.140001a40
lea rcx, [rsp + 0x120]
call fcn.14000e330
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x46]
call fcn.140005760
mov rcx, rax
call fcn.14000dbe0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140004f1d
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x47]
call fcn.140005b30
mov rcx, rax
call fcn.14000db50
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8w, 0x1bb
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140004f0f
lea rcx, [rsp + 0x140]
call fcn.14000e330
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x48]
call fcn.140005c20
mov rcx, rax
call fcn.14000da10
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x84880100
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140004f04
lea rcx, [rsp + 0x120]
call fcn.14000e330
mov ecx, dword [rsp + 0x68]
mov dword [rsp + 0x20], ecx
mov r9, rax
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x140004ef9
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rsp + 0xfc], 0x20
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xfc]
lea r8, [rsp + 0x160]
mov edx, 0x13
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0xf8], 0
lea r9, [rsp + 0xf8]
mov r8d, 8
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140004edb
cmp dword [rsp + 0xf8], 0
je 0x140004edb
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140004ecb
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, qword [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov dword [rsp + 0xf8], 0
jmp 0x140004e16
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [rsp + 0x60], 0
je 0x140004ef9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x120]
call fcn.140001a40
nop
lea rcx, [rsp + 0x140]
call fcn.140001a40
nop
lea rcx, [rsp + 0x100]
call fcn.140001a40
nop
mov rcx, qword [rsp + 0x1a0]
call fcn.140001a40
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140010ca0
add rsp, 0x190
pop rdi
ret