Function at 0x180058c90
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 0x180058dc0
mov dword [rsp + 0x30], r12d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180058d7f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058d7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005903c
call fcn.1800f2580
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.1800f21e0
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 0x180058dca
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 0x180058f9a
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 0x180058f49
mov eax, dword [rsp + 0x44]
cmp eax, 0xc8
jb 0x180058f49
cmp eax, 0x12c
jae 0x180058f49
mov dword [rsp + 0x40], r12d
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x70]
call fcn.1800f4bb0
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 0x180058f8f
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180058f8f
cmp rax, 0x400
jae 0x180059036
mov byte [rsp + rax + 0x70], 0
lea rax, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180058ea0
mov rax, qword [rsp + 0x60]
cmp rbx, rax
ja 0x180058edd
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.1800f4f70
mov byte [rdi + rbx], 0
jmp 0x180058eef
lea r9, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18002beb0
mov edx, 0x400
lea rcx, [rsp + 0x70]
call fcn.18011c6b0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, rax
mov rcx, r14
call fcn.18002b8f0
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 0x180058e74
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180058fe7
lea rdx, str.HTTP_query_failed:_Status_code_
lea rcx, [0x18018ca70]
call fcn.18005cfc0
mov edx, dword [rsp + 0x44]
mov rcx, rax
call fcn.18005a410
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.18001fff0
movzx edx, al
mov rcx, rbx
call fcn.18005dd40
mov rcx, rbx
call fcn.18004a5b0
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180058fe7
lea rdx, str.URL_open_failed:
lea rcx, [0x18018ca70]
call fcn.18005cfc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.18005a410
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.18001fff0
movzx edx, al
mov rcx, rbx
call fcn.18005dd40
mov rcx, rbx
call fcn.18004a5b0
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rsp + 0x30], r12d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x180058d7f
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180058d7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005903c
jmp 0x180058d7a
call fcn.1800f2700
nop
call fcn.1800f9714
int3