Function at 0x140002ac0
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 [0x14005c4f0]
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 0x140002f46
call fcn.140002450
mov rcx, rax
call fcn.140002250
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 0x140002b6c
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140002f46
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 0x140002bd5
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002bd5
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003760
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 0x140002ba0
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 0x140002c4d
movzx edx, byte [rbx]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140002c48
lea rcx, [rsp + 0x70]
call fcn.140003670
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
inc rbx
jmp 0x140002c10
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.140010f7c
mov rsi, rax
cmp rbx, qword [rsp + 0x38]
jne 0x140002c91
lea rcx, str.invalid_stoll_argument
call fcn.14000b324
int3
cmp dword [rsp + 0x34], 0
je 0x140002ca5
lea rcx, str.stoll_argument_out_of_range
call fcn.14000b3dc
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 0x140002cfb
cmp qword [rbp - 0x78], 0x10
jb 0x140002ce5
mov rcx, qword [rsp + 0x70]
call fcn.14002ef24
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
jmp 0x140002f34
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 0x140002d53
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
cmp qword [rbp - 0x78], 0x10
jb 0x140002d3d
mov rcx, qword [rsp + 0x70]
call fcn.14002ef24
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
jmp 0x140002f34
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 0x140002dbd
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140002dbd
mov r8d, eax
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x48]
call fcn.140003760
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 0x140002d88
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 0x140002e3c
movzx edx, byte [rbx]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140002e37
lea rcx, [rbp - 0x68]
call fcn.140003670
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x48]
inc rbx
jmp 0x140002e00
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.140010f7c
cmp rbx, qword [rsp + 0x38]
jne 0x140002e7b
lea rcx, str.invalid_stoll_argument
call fcn.14000b324
int3
cmp dword [rsp + 0x34], 0
je 0x140002e8f
lea rcx, str.stoll_argument_out_of_range
call fcn.14000b3dc
int3
sub rax, rsi
cmp rax, 0x2328
jle 0x140002ef2
cmp qword [rbp - 0x50], 0x10
jb 0x140002eaa
mov rcx, qword [rbp - 0x68]
call fcn.14002ef24
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], 0
cmp qword [rbp - 0x78], 0x10
jb 0x140002ecb
mov rcx, qword [rsp + 0x70]
call fcn.14002ef24
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
cmp qword [rsp + 0x60], 0x10
jb 0x140002eee
mov rcx, qword [rsp + 0x48]
call fcn.14002ef24
mov al, 1
jmp 0x140002f48
cmp qword [rbp - 0x50], 0x10
jb 0x140002f02
mov rcx, qword [rbp - 0x68]
call fcn.14002ef24
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r13
mov byte [rbp - 0x68], 0
cmp qword [rbp - 0x78], 0x10
jb 0x140002f23
mov rcx, qword [rsp + 0x70]
call fcn.14002ef24
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r13
mov byte [rsp + 0x70], 0
cmp qword [rsp + 0x60], 0x10
jb 0x140002f46
mov rcx, qword [rsp + 0x48]
call fcn.14002ef24
xor al, al
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14002d740
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