Function at 0x18000d4d0
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
and qword [rsp + 0x58], 0
and dword [rsp + 0x44], 0
and dword [rsp + 0x40], 0
xor edi, edi
mov r15, r8
mov rbx, rcx
and qword [rsp + 0x60], rdi
lea rax, [0x18002c72c]
mov r13, rdx
lea r8d, [rdi + 0x38]
lea rcx, [rsp + 0x68]
xor edx, edx
mov esi, r9d
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0x100
call fcn.180019620
lea rcx, [rbp + 0xa1]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0xa0], dil
call fcn.180019620
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.180015fcc
mov rcx, qword [rsp + 0x70]
lea r8, [0x18002c728]
mov r9, rbx
mov edx, 0x400
call fcn.18001972c
lea ecx, [rdi + 0xc]
call fcn.1800180e4
mov r9d, dword [r13 + 4]
and dword [rsp + 0x28], edi
and qword [rsp + 0x20], rdi
lea r8, [r13 + 8]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180015724
mov rcx, qword [rsp + 0x68]
or r14, 0xffffffffffffffff
mov rax, r14
inc rax
cmp byte [rcx + rax], dil
jne 0x18000d5b6
mov r9, qword [rsp + 0x70]
mov edx, 0x400
test rax, rax
jne 0x18000d5e3
lea r8, [0x18002c728]
lea rcx, [rbp + 0xa0]
call fcn.18001972c
jmp 0x18000d5fb
mov qword [rsp + 0x20], rcx
lea r8, [0x18002c734]
lea rcx, [rbp + 0xa0]
call fcn.18001972c
mov ecx, 0x1a
call fcn.1800180e4
mov rcx, qword [0x18003e460]
lea r8, [rbp + 0xa0]
mov rdx, rax
lea rax, [0x18003e478]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x18003e474]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rbx, rax
call fcn.18000d778
mov rdx, qword [rsp + 0x60]
mov r8, r14
inc r8
cmp byte [rdx + r8], dil
jne 0x18000d657
mov eax, dword [rbp - 0x80]
mov r9, qword [rsp + 0x78]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.180015fc0
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x60]
mov edx, reloc.WS2_32.dll_send
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x18000d6b4
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, r14d
jmp 0x18000d754
lea rcx, [rbp - 0x60]
call fcn.18001a220
cmp eax, 0xc8
jne 0x18000d6a3
lea rdx, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000d749
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x18000d749
cmp eax, esi
jae 0x18000d749
test esi, esi
je 0x18000d741
mov edx, edi
lea r9, [rsp + 0x40]
mov r8d, 0x1000
add rdx, r15
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000d717
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000d717
add edi, eax
cmp edi, esi
jb 0x18000d6ec
cmp edi, esi
jae 0x18000d741
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, ntohl
call fcn.1800180e4
mov r9d, esi
mov r8d, edi
mov rcx, rax
mov rdx, r15
call fcn.180016068
jmp 0x18000d754
xor r14d, r14d
jmp 0x18000d6a3
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.18001a200
add rsp, 0x5b0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret