Function at 0x1800110d2
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
jmp 0x180016330
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2d8]
mov rax, qword [0x18002a040]
xor rax, rbp
mov qword [rbp + 0x278], rax
lea rcx, [0x180031095]
call fcn.180011893
mov dword [rbp + 0x64], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.User_Agent
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x180016415
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.InternetOpen_failed._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800110e6
mov ecx, dword [rbp + 0x274]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x180011055]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x180016651
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x2a0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x180016499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.InternetOpenUrlA_failed._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800110e6
mov ecx, dword [rbp + 0x274]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x180011055]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x180016651
lea rax, [rbp + 0xa4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xc4]
lea r8, [rbp + 0x84]
mov edx, 0x20000005
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
mov edx, 0x20
lea rcx, [rbp + 0xe8]
call fcn.18001176c
mov byte [rbp + 0x204], 0
lea rcx, [rbp + 0x1e4]
call fcn.1800111f9
mov ecx, dword [rbp + 0x84]
inc ecx
mov ecx, ecx
mov r9, rax
lea r8, [rbp + 0x204]
mov edx, ecx
lea rcx, [rbp + 0xe8]
call fcn.1800111a9
nop
xor edx, edx
lea rcx, [rbp + 0xe8]
call fcn.1800111d1
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x84]
mov rdx, rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180016578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.InternetReadFile_failed._Error:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1800110e6
mov ecx, dword [rbp + 0x274]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x180011055]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x180016615
cmp dword [rbp + 0x44], 0
jbe 0x180016615
mov eax, dword [rbp + 0x44]
mov edx, eax
lea rcx, [rbp + 0xe8]
call fcn.1800111d1
mov byte [rax], 0
xor edx, edx
mov eax, dword [rbp + 0x44]
mov ecx, 2
div ecx
mov eax, eax
mov edx, eax
mov rcx, qword [rbp + 0x2a8]
call fcn.18001148d
xor edx, edx
lea rcx, [rbp + 0xe8]
call fcn.1800111d1
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.1800113e3
nop
xor edx, edx
mov eax, dword [rbp + 0x44]
mov ecx, 2
div ecx
mov dword [rbp + 0x274], eax
xor edx, edx
mov rcx, qword [rbp + 0x2a8]
call fcn.18001187a
mov ecx, dword [rbp + 0x274]
mov r8d, ecx
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.18001150a
nop
lea rcx, [rbp + 0x228]
call fcn.18001118b
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
mov eax, dword [rbp + 0x44]
mov ecx, 2
div ecx
mov eax, eax
mov qword [rbp + 0x268], rax
lea rcx, [rbp + 0xe8]
call fcn.1800117e9
mov rax, qword [rbp + 0x268]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180023c10]
call fcn.180011744
mov rax, rdi
mov rcx, qword [rbp + 0x278]
xor rcx, rbp
call fcn.180011447
lea rsp, [rbp + 0x288]
pop rdi
pop rbp
ret