Function at 0x140044750
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140076040]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov rsi, rdx
mov rbx, rcx
mov dword [rbp - 0x38], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [0x14004fac7]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r13, rax
test rax, rax
je 0x1400447f2
cmp qword [rbx + 0x18], 0xf
jbe 0x1400447be
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r12, rax
test rax, rax
jne 0x1400447f9
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x140044ed2
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xor r14d, r14d
mov qword [rbp + 8], r14
mov r15d, 0xf
mov qword [rbp + 0x10], r15
mov byte [rbp - 8], r14b
lea r9, [rbp - 0x10]
mov r8d, 0x200
lea rdx, [rbp + 0x110]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400448bd
mov eax, dword [rbp - 0x10]
test eax, eax
je 0x1400448bd
mov edi, eax
mov rax, r15
sub rax, r14
cmp rdi, rax
ja 0x14004487b
lea rax, [r14 + rdi]
mov qword [rbp + 8], rax
lea rbx, [rbp - 8]
cmp r15, 0xf
cmova rbx, qword [rbp - 8]
add rbx, r14
mov r8d, edi
lea rdx, [rbp + 0x110]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140044893
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x110]
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.14004b4d0
lea r9, [rbp - 0x10]
mov r8d, 0x200
lea rdx, [rbp + 0x110]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r15, qword [rbp + 0x10]
mov r14, qword [rbp + 8]
test eax, eax
jne 0x140044837
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14006dad0]
mov qword [rbp + 0x20], rax
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov ebx, 0x40
mov dword [rbp - 0x38], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x1c], edx
lea rax, [rbp + 0x30]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x30], rax
lea rdx, [rbp - 8]
cmp r15, 0xf
cmova rdx, qword [rbp - 8]
lea r9d, [rbx - 0x3e]
mov r8, r14
lea rcx, [rbp + 0x30]
call fcn.14004af90
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.14004ba80
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x140044ce2
movabs rdi, 0x7fffffffffffffff
lea r14, [0x14006d294]
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
mov qword [rsp + 0x20], 2
lea r9, [0x14006d290]
mov rdx, qword [rbp - 0x20]
call fcn.14004b410
test rax, rax
je 0x140044ca2
mov rcx, qword [rsi + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 1
jb 0x140044efc
mov r9, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140044a41
mov r9, qword [rsi]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x80]
call fcn.14004b960
or ebx, 8
or ebx, 1
mov dword [rbp - 0x38], ebx
lea r9, [rbp - 0x80]
mov r14, qword [rbp - 0x80]
mov r13, qword [rbp - 0x68]
cmp r13, 0xf
cmova r9, r14
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov rdx, qword [rbp - 0x20]
call fcn.14004b410
test rax, rax
je 0x140044b75
mov rcx, qword [rsi + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 1
jb 0x140044f02
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140044ac4
mov rax, qword [rsi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
lea r9, [0x14006d29c]
lea rcx, [rsp + 0x60]
call fcn.14004b960
or ebx, 0x10
or ebx, 2
mov dword [rbp - 0x38], ebx
mov r8d, 1
lea rdx, [0x14006d298]
lea rcx, [rsp + 0x60]
call fcn.14004ab30
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or ebx, 0x24
lea r9, [rbp - 0x60]
movq rdi, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r15, xmm0
cmp r15, 0xf
cmova r9, rdi
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
movq qword [rsp + 0x20], xmm1
mov rdx, qword [rbp - 0x20]
call fcn.14004b410
cmp rax, 0xffffffffffffffff
jne 0x140044b7d
xor r12b, r12b
jmp 0x140044b80
mov r15, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x60]
mov r12b, 1
test bl, 4
je 0x140044bc0
and ebx, 0xfffffffb
cmp r15, 0xf
jbe 0x140044bc0
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140044bb7
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044d29
mov rcx, rdi
call fcn.14004d22c
nop
test bl, 2
je 0x140044c1c
and ebx, 0xfffffffd
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140044c05
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044c00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044d30
call fcn.14004d22c
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
test bl, 1
je 0x140044c5b
and ebx, 0xfffffffe
cmp r13, 0xf
jbe 0x140044c5b
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140044c53
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140044d37
mov rcx, r14
call fcn.14004d22c
test r12b, r12b
je 0x140044c91
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rcx, qword [rbp - 0x30]
mov qword [rsp + 0x20], 1
lea r9, [0x14006d2a0]
mov rdx, qword [rbp - 0x20]
call fcn.14004b410
cmp rax, 0xffffffffffffffff
jne 0x140044d3e
lea r14, [0x14006d294]
movabs rdi, 0x7fffffffffffffff
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.14004ba80
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x1400449f0
xor edi, edi
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140044e36
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044e31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044e31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp qword [rbp - 0x20], rcx
jb 0x140044f08
mov rax, qword [rbp - 0x20]
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
add rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14004b660
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rbx, qword [rsp + 0x40]
mov dword [rax], 0
xor r8d, r8d
lea rdx, [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov rdi, rax
cmp rbx, qword [rbp - 0x38]
jne 0x140044dd5
lea rcx, str.invalid_stoull_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x140044de8
lea rcx, str.stoull_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140044ce4
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044e27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044e27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004d22c
jmp 0x140044ce4
call fcn.14004d22c
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x30]
call fcn.14004aa70
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140044ecf
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044eca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044eca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004d22c
mov rax, rdi
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.14004d090
mov rbx, qword [rsp + 0x470]
add rsp, 0x420
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140044630
nop
call fcn.140044630
nop
call fcn.14004b0d0
int3