Function at 0x18000d604
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1098]
mov eax, 0x1198
call fcn.18001ab50
sub rsp, rax
mov rax, qword [0x18003e040]
xor rax, rsp
mov qword [rbp + 0x1080], rax
xor r12d, r12d
mov rbx, rcx
lea rax, [0x18002c770]
mov r15, r8
mov r13, rdx
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0xc1f
mov qword [rsp + 0x50], rax
mov esi, r9d
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x48], pe_nt_image_headers64
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
mov edi, r12d
mov byte [rsp + 0x60], r12b
call fcn.180019f30
lea rcx, [rbp + 0xc81]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0xc80], r12b
call fcn.180019f30
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.180016a80
lea r8, [0x18002c768]
lea rcx, [rbp + 0x760]
mov r9, rbx
mov edx, 0x400
call fcn.18001a03c
lea ecx, [r12 + 0xc]
call fcn.180018b50
mov r9d, dword [r13 + 4]
lea r8, [r13 + 8]
lea rdx, [rsp + 0x60]
mov rcx, rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call fcn.180016300
or r14, 0xffffffffffffffff
mov rax, r14
lea rcx, [rbp + 0x360]
inc rax
cmp byte [rcx + rax], r12b
jne 0x18000d6fe
lea r9, [rbp + 0x760]
mov edx, 0x400
lea rcx, [rbp + 0xc80]
test rax, rax
jne 0x18000d72d
lea r8, [0x18002c768]
call fcn.18001a03c
jmp 0x18000d745
lea rax, [rbp + 0x360]
lea r8, [0x18002c778]
mov qword [rsp + 0x20], rax
call fcn.18001a03c
mov ecx, 1
call fcn.180018b84
mov ecx, 0x1a
and al, 8
neg al
sbb ebx, ebx
and ebx, 0x803000
add ebx, 0x84680200
call fcn.180018b50
mov rcx, qword [0x18003f480]
mov qword [rsp + 0x38], r12
mov rdx, rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0xc80]
xor r9d, r9d
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rbx, rax
call fcn.18000d8e0
lea rax, [rsp + 0x60]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x18000d7b0
mov eax, dword [rbp + 0xb68]
mov r9, qword [rbp + 0xb60]
lea rdx, [rsp + 0x60]
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.180016a40
lea r9, [rsp + 0x48]
lea r8, [rbp + 0xb80]
mov edx, reloc.WS2_32.dll_send
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x18000d81a
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, r14d
jmp 0x18000d8bd
lea rcx, [rbp + 0xb80]
call fcn.18001ab30
cmp eax, 0xc8
jne 0x18000d809
lea rdx, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000d8b2
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x18000d8b2
cmp eax, esi
jae 0x18000d8b2
test esi, esi
je 0x18000d8aa
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 0x18000d880
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000d880
add edi, eax
cmp edi, esi
jb 0x18000d855
cmp edi, esi
jae 0x18000d8aa
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, ntohl
call fcn.180018b50
mov r9d, esi
mov r8d, edi
mov rcx, rax
mov rdx, r15
call fcn.180016b54
jmp 0x18000d8bd
mov r14d, r12d
jmp 0x18000d809
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.18001ab10
add rsp, 0x1198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret