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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10a0]
mov eax, 0x11a0
call fcn.180028a20
sub rsp, rax
mov rax, qword [0x18003d010]
xor rax, rsp
mov qword [rbp + 0x1090], rax
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call fcn.180014100
lea rcx, [0x180000000]
lea rax, [rcx + 0x36488]
mov qword [rsp + 0x60], rax
lea rax, [rcx + 0x36480]
mov qword [rsp + 0x70], rax
mov qword [rbp], r12
mov qword [rbp + 0x28], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp - 8], rax
mov dword [rsp + 0x40], 2
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.1800073a0
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.1800077e0
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
cmp qword [rdi + 0x18], 8
jb 0x180003688
mov rdi, qword [rdi]
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
mov qword [rbp + 0x60], rax
test rax, rax
je 0x1800037f9
cmp qword [rbx + 0x18], 8
jb 0x1800036ba
mov rbx, qword [rbx]
mov r8d, 0x50
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, rax
mov qword [rbp + 0x68], rax
test rax, rax
je 0x1800037ea
lea rax, [0x180035ca0]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], r12
cmp qword [r15 + 0x18], 8
jb 0x180003712
mov r15, qword [r15]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, r15
lea rdx, [0x180035ca8]
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
mov qword [rbp + 0x70], rax
test rax, rax
je 0x1800037db
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x90]
call fcn.180014100
mov dword [rsp + 0x50], r12d
lea r9, [rsp + 0x50]
mov r8d, 0xfff
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800037db
nop
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800037db
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x70]
call fcn.180005ea0
lea r9, [rsp + 0x50]
mov r8d, 0xfff
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800037a0
test rbx, rbx
je 0x1800037ea
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
test rdi, rdi
je 0x1800037f9
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov dword [rsp + 0x40], 0x22
movups xmmword [rbp + 0x78], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x180003848
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x180003848
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x18000387a
test cl, 4
jne 0x18000386f
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000386f
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x18000387a
mov r8, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x180003888
mov rcx, r14
call fcn.180006c10
nop
test rsi, rsi
je 0x180003897
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x60]
call fcn.1800038d0
mov rax, r14
mov rcx, qword [rbp + 0x1090]
xor rcx, rsp
call fcn.1800106c0
add rsp, 0x11a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret