Function at 0x18000dbe8
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.18001c6b0
sub rsp, rax
mov rax, qword [0x18003e060]
xor rax, rsp
mov qword [rbp + 0x1080], rax
xor r12d, r12d
mov rbx, rcx
lea rax, [0x18002c784]
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], 0x100
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x40], r12d
mov edi, r12d
mov byte [rsp + 0x60], r12b
call fcn.18001c370
lea rcx, [rbp + 0xc81]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0xc80], r12b
call fcn.18001c370
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.1800167f4
lea r8, [0x18002c774]
lea rcx, [rbp + 0x760]
mov r9, rbx
mov edx, 0x400
call fcn.18001b94c
lea ecx, [r12 + 0xc]
call fcn.180018154
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.180016074
or r14, 0xffffffffffffffff
mov rax, r14
lea rcx, [rbp + 0x360]
inc rax
cmp byte [rcx + rax], r12b
jne 0x18000dce2
lea r9, [rbp + 0x760]
mov edx, 0x400
lea rcx, [rbp + 0xc80]
test rax, rax
jne 0x18000dd11
lea r8, [0x18002c774]
call fcn.18001b94c
jmp 0x18000dd29
lea rax, [rbp + 0x360]
lea r8, [0x18002c78c]
mov qword [rsp + 0x20], rax
call fcn.18001b94c
mov ecx, 1
call fcn.180018188
mov ecx, 0x1a
and al, 8
neg al
sbb ebx, ebx
and ebx, 0x803000
add ebx, 0x84680200
call fcn.180018154
mov rcx, qword [0x18003f458]
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.18000dec4
lea rax, [rsp + 0x60]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x18000dd94
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.1800167b4
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 0x18000ddfe
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, r14d
jmp 0x18000dea1
lea rcx, [rbp + 0xb80]
call fcn.18001c694
cmp eax, 0xc8
jne 0x18000dded
lea rdx, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000de96
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x18000de96
cmp eax, esi
jae 0x18000de96
test esi, esi
je 0x18000de8e
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 0x18000de64
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000de64
add edi, eax
cmp edi, esi
jb 0x18000de39
cmp edi, esi
jae 0x18000de8e
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, reloc.WS2_32.dll_inet_addr
call fcn.180018154
mov r9d, esi
mov r8d, edi
mov rcx, rax
mov rdx, r15
call fcn.1800168c8
jmp 0x18000dea1
mov r14d, r12d
jmp 0x18000dded
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.18001be40
add rsp, 0x1198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret