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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x3e8]
sub rsp, 0x4d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140058690]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.time
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
je 0x1400031f6
call fcn.140002700
mov rcx, rax
call fcn.140002500
mov r12, rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x140002e1c
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400031f6
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r13
mov byte [rsp + 0x48], r13b
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002e85
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002e85
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003850
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002e50
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
lea rbx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 0x10
cmovae rbx, r8
nop
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rax, rcx
cmp rbx, rax
je 0x140002efd
movzx edx, byte [rbx]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140002ef8
lea rcx, [rsp + 0x70]
call fcn.140003760
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
inc rbx
jmp 0x140002ec0
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rbx, qword [rsp + 0x70]
mov dword [rsp + 0x34], r13d
lea r9, [rsp + 0x34]
mov r8d, 0xa
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000f6bc
mov rsi, rax
cmp rbx, qword [rsp + 0x38]
jne 0x140002f41
lea rcx, str.invalid_stoll_argument
call fcn.140006a94
int3
cmp dword [rsp + 0x34], 0
je 0x140002f55
lea rcx, str.stoll_argument_out_of_range
call fcn.140006b4c
int3
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.time
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
jne 0x140002fab
cmp qword [rbp - 0x78], 0x10
jb 0x140002f95
mov rcx, qword [rsp + 0x70]
call fcn.14002cf50
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
jmp 0x1400031e4
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x140003003
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rbp - 0x78], 0x10
jb 0x140002fed
mov rcx, qword [rsp + 0x70]
call fcn.14002cf50
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
jmp 0x1400031e4
mov qword [rsp + 0x58], r13
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rax, qword [rsp + 0x48]
mov byte [rax], 0
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000306d
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000306d
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003850
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140003038
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], 0
lea rbx, [rsp + 0x48]
mov r8, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 0x10
cmovae rbx, r8
nop word [rax + rax]
lea rcx, [rsp + 0x48]
cmp r9, 0x10
cmovae rcx, r8
mov rax, qword [rsp + 0x58]
add rax, rcx
cmp rbx, rax
je 0x1400030ec
movzx edx, byte [rbx]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400030e7
lea rcx, [rbp - 0x68]
call fcn.140003760
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
inc rbx
jmp 0x1400030b0
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rbx, qword [rbp - 0x68]
mov dword [rsp + 0x34], r13d
lea r9, [rsp + 0x34]
mov r8d, 0xa
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000f6bc
cmp rbx, qword [rsp + 0x38]
jne 0x14000312b
lea rcx, str.invalid_stoll_argument
call fcn.140006a94
int3
cmp dword [rsp + 0x34], 0
je 0x14000313f
lea rcx, str.stoll_argument_out_of_range
call fcn.140006b4c
int3
sub rax, rsi
cmp rax, 0x2328
jle 0x1400031a2
cmp qword [rbp - 0x50], 0x10
jb 0x14000315a
mov rcx, qword [rbp - 0x68]
call fcn.14002cf50
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], 0
cmp qword [rbp - 0x78], 0x10
jb 0x14000317b
mov rcx, qword [rsp + 0x70]
call fcn.14002cf50
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
cmp qword [rsp + 0x60], 0x10
jb 0x14000319e
mov rcx, qword [rsp + 0x48]
call fcn.14002cf50
mov al, 1
jmp 0x1400031f8
cmp qword [rbp - 0x50], 0x10
jb 0x1400031b2
mov rcx, qword [rbp - 0x68]
call fcn.14002cf50
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], 0
cmp qword [rbp - 0x78], 0x10
jb 0x1400031d3
mov rcx, qword [rsp + 0x70]
call fcn.14002cf50
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
cmp qword [rsp + 0x60], 0x10
jb 0x1400031f6
mov rcx, qword [rsp + 0x48]
call fcn.14002cf50
xor al, al
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14002c0a0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret