Function at 0x180058d80
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x180189e48]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov dword [rsp + 0x30], 1
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], r12b
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
jne 0x180058eb0
mov dword [rsp + 0x30], r12d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180058e6f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058e6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005912c
call fcn.1800f2740
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov rax, r14
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1800f23a0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [rbx + 0x18], 0x10
jb 0x180058eba
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
je 0x18005908a
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x44]
mov edx, 0x20000013
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180059039
mov eax, dword [rsp + 0x44]
cmp eax, 0xc8
jb 0x180059039
cmp eax, 0x12c
jae 0x180059039
mov dword [rsp + 0x40], r12d
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x70]
call fcn.1800f4d70
lea r9, [rsp + 0x40]
mov r8d, 0x3ff
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18005907f
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18005907f
cmp rax, 0x400
jae 0x180059126
mov byte [rsp + rax + 0x70], 0
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180058f90
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x180058fcd
lea rdi, [rsp + 0x48]
cmp rax, 0x10
cmovae rdi, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1800f5130
mov byte [rdi + rbx], 0
jmp 0x180058fdf
lea r9, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18002bdf0
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.18011c870
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, rax
mov rcx, r14
call fcn.18002b890
lea r9, [rsp + 0x40]
mov r8d, 0x3ff
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180058f64
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1800590d7
lea rdx, str.HTTP_query_failed:_Status_code_
lea rcx, [0x18018ca70]
call fcn.18005d0b0
mov edx, dword [rsp + 0x44]
mov rcx, rax
call fcn.18005a500
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.18001ff90
movzx edx, al
mov rcx, rbx
call fcn.18005de30
mov rcx, rbx
call fcn.18004a6a0
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1800590d7
lea rdx, str.URL_open_failed:
lea rcx, [0x18018ca70]
call fcn.18005d0b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.18005a500
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.18001ff90
movzx edx, al
mov rcx, rbx
call fcn.18005de30
mov rcx, rbx
call fcn.18004a6a0
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x30], r12d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180058e6f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058e6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005912c
jmp 0x180058e6a
call fcn.1800f28c0
nop
call fcn.1800f98d4
int3