Function at 0x180006110
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rdx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
mov r14, rcx
lea edx, [rbp + 1]
lea rcx, str.TestIE_1.0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, qword [0x18003be50]
mov r13, rax
call fcn.1800010a0
mov rbx, rax
test rax, rax
jne 0x180006160
mov rbx, rbp
jmp 0x180006177
mov rdx, rax
mov ecx, 0x1000
mov dword [rax + 4], ebp
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], bpl
mov rax, qword [rdi + 8]
mov dword [rdi + 4], ebp
lea rdx, str.Connection:_Keep_Alive_r_n
mov r8d, 0x18
mov rcx, rbx
mov qword [rsp + 0x60], rsi
mov byte [rax], bpl
call fcn.180001440
lea rdx, str.User_Agent:Mozilla_5.0__Windows_NT_6.1__WOW64__Trident_7.0__rv:11.0__like_Gecko_r_n
mov r8d, 0x51
mov rcx, rbx
call fcn.180001440
lea rdx, str.Accept:_.__r_n
mov r8d, recvfrom
mov rcx, rbx
call fcn.180001440
lea rdx, str.Accept_Encoding:_gzip_deflate_r_n
mov r8d, 0x1f
mov rcx, rbx
call fcn.180001440
lea rdx, [0x18002e57c]
mov r8d, 2
mov rcx, rbx
call fcn.180001440
test r13, r13
je 0x18000637e
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, r13
lea edx, [r9 - 2]
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x68], 0x4e20
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x68]
lea edx, [r9 + 2]
mov rcx, r13
mov dword [rsp + 0x68], 0x1388
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x68]
lea edx, [r9 + 8]
mov rcx, r13
mov dword [rsp + 0x68], 0x300000
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, dword [rbx + 4]
mov r8, qword [rbx + 8]
mov rdx, r14
mov rcx, r13
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x4400000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
test rax, rax
je 0x1800062fc
mov ecx, 0x19000
call fcn.18001806c
lea r9, [rsp + 0x70]
mov r8d, 0x19000
mov rcx, r12
mov rdx, rax
mov dword [rsp + 0x70], 1
mov rsi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800062e6
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x1800062e6
mov rdx, rsi
mov rcx, rdi
call fcn.180001440
lea r9, [rsp + 0x70]
mov r8d, 0x19000
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800062b6
mov rcx, rsi
mov ebp, 1
call fcn.18001802c
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov r12, qword [rsp + 0x78]
test ebp, ebp
je 0x18000637e
cmp dword [rdi + 4], 0
jle 0x18000637e
mov rax, qword [rdi + 8]
cmp byte [rax], 0x1f
jne 0x18000637e
cmp byte [rax + 1], 0x8b
jne 0x18000637e
mov rdx, rbx
mov rcx, rdi
call fcn.18000d280
test rax, rax
je 0x18000637e
mov r8d, dword [rdi + 4]
mov r9d, dword [rbx + 4]
lea rcx, [0x180032b38]
movd xmm1, r8d
movd xmm0, r9d
mov rdx, r14
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
mulsd xmm1, qword [0x180033f98]
movsd qword [rsp + 0x20], xmm1
call fcn.180003e40
mov r8d, dword [rbx + 4]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call fcn.180001a10
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
test rbx, rbx
je 0x1800063c7
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000639d
mov edx, dword [rbx]
call fcn.180001240
mov rsi, qword [0x18003be50]
add rbx, 0xfffffffffffffff8
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rdx
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret