Function at 0x18000d608
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.18001b670
sub rsp, rax
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rbp + 0x1080], rax
xor r12d, r12d
mov rbx, rcx
lea rax, [0x18002d7b0]
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.18001aa50
lea rcx, [rbp + 0xc81]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0xc80], r12b
call fcn.18001aa50
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.18001756c
lea r8, [0x18002d7a8]
lea rcx, [rbp + 0x760]
mov r9, rbx
mov edx, 0x400
call fcn.18001ab5c
lea ecx, [r12 + 0xc]
call fcn.18001966c
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.180016dec
or r14, 0xffffffffffffffff
mov rax, r14
lea rcx, [rbp + 0x360]
inc rax
cmp byte [rcx + rax], r12b
jne 0x18000d702
lea r9, [rbp + 0x760]
mov edx, 0x400
lea rcx, [rbp + 0xc80]
test rax, rax
jne 0x18000d731
lea r8, [0x18002d7a8]
call fcn.18001ab5c
jmp 0x18000d749
lea rax, [rbp + 0x360]
lea r8, [0x18002d7b8]
mov qword [rsp + 0x20], rax
call fcn.18001ab5c
mov ecx, 0x1a
call fcn.18001966c
mov rcx, qword [0x180040480]
mov qword [rsp + 0x38], r12
mov rdx, rax
mov eax, dword [0x180040494]
lea r8, [rbp + 0xc80]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rbx, rax
call fcn.18000d8d0
lea rax, [rsp + 0x60]
mov r8, r14
inc r8
cmp byte [rax + r8], r12b
jne 0x18000d79e
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.18001752c
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 0x18000d808
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, r14d
jmp 0x18000d8ab
lea rcx, [rbp + 0xb80]
call fcn.18001b650
cmp eax, 0xc8
jne 0x18000d7f7
lea rdx, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000d8a0
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x18000d8a0
cmp eax, esi
jae 0x18000d8a0
test esi, esi
je 0x18000d898
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 0x18000d86e
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000d86e
add edi, eax
cmp edi, esi
jb 0x18000d843
cmp edi, esi
jae 0x18000d898
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, ntohl
call fcn.18001966c
mov r9d, esi
mov r8d, edi
mov rcx, rax
mov rdx, r15
call fcn.180017640
jmp 0x18000d8ab
mov r14d, r12d
jmp 0x18000d7f7
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.18001b630
add rsp, 0x1198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret