Function at 0x140029250
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xa8
mov rax, qword [0x140064018]
xor rax, rsp
mov qword [rbp + 0x2f], rax
lea rdx, [rbp - 0x11]
lea rcx, [0x14005e060]
call fcn.14002a0e0
mov rbx, qword [rbp - 0x11]
test rbx, rbx
jne 0x14002928d
xor eax, eax
jmp 0x1400296a5
xor ecx, ecx
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rdi
lea rax, [0x14005e0a4]
mov qword [rsp + 0xd0], r12
lea rdx, [rbp - 9]
mov qword [rsp + 0xa0], r13
mov r12d, ecx
mov qword [rsp + 0x98], r14
mov edi, ecx
mov qword [rbp - 0x11], rcx
mov r14d, ecx
mov qword [rbp + 0x27], rcx
mov qword [rsp + 0x90], r15
lea r15d, [rcx + 7]
lea rcx, [0x14005e0a8]
mov qword [rbp + 0x1f], rax
call fcn.14002a0e0
mov rdx, qword [rbp - 9]
test rdx, rdx
je 0x140029658
mov rcx, rbx
call fcn.140036f5c
cmp rax, rbx
mov ecx, 8
cmove r15d, ecx
mov r12d, r15d
mov ecx, r15d
add r12, rbx
mov rax, r12
nop dword [rax + rax]
movsxd rsi, ecx
lea rax, [rax + 1]
inc ecx
cmp byte [rax], 0x2f
jne 0x140029320
mov rax, 0xffffffffffffffff
mov r13d, esi
sub r13d, r15d
mov ecx, r13d
add ecx, 2
lea edx, [rax + 2]
cmovb rcx, rax
call fcn.14003853c
mov qword [rbp - 9], rax
test rax, rax
je 0x140029655
lea ecx, [r13 + 1]
movsxd r8, ecx
test ecx, ecx
jle 0x140029370
mov rdx, r12
mov rcx, rax
call fcn.1400372c0
mov r12, 0xffffffffffffffff
mov rcx, r12
nop word [rax + rax]
inc rcx
cmp byte [rbx + rcx], dil
jne 0x140029380
mov eax, 1
mov edx, 1
sub rax, rsi
add rcx, rax
call fcn.14003853c
mov qword [rbp - 0x19], rax
mov rcx, rax
test rax, rax
jne 0x1400293bf
mov rcx, qword [rbp - 9]
call fcn.140038520
xor r12d, r12d
mov r13, qword [rbp - 0x19]
jmp 0x14002965b
mov rax, r12
inc rax
cmp byte [rbx + rax], dil
jne 0x1400293c2
sub eax, esi
movsxd r8, eax
test eax, eax
jle 0x1400293e0
lea rdx, [rbx + 1]
add rdx, rsi
call fcn.1400372c0
lea rdx, [rbp - 0x11]
lea rcx, [0x14005e0e0]
call fcn.14002a0e0
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14002964b
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
test rax, rax
je 0x14002964b
lea r9, [rbp + 3]
mov dword [rbp + 3], SafeArrayCopy
lea r8, [rbp + 7]
mov rcx, rax
lea edx, [rsi + 0x26]
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
mov r12, qword [rbp - 9]
lea r8d, [rsi + 0x50]
mov qword [rsp + 0x38], 1
mov rdx, r12
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov dword [rsp + 0x28], 3
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rbx, rax
test rax, rax
je 0x1400293b6
lea rdx, [rbp - 0x11]
lea rcx, [0x14005e128]
call fcn.14002a0e0
mov rdx, qword [rbp - 0x11]
mov r13, qword [rbp - 0x19]
test rdx, rdx
je 0x14002965b
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0x1f]
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, r13
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r15, rax
test rax, rax
je 0x14002965b
lea rdx, [rbp - 0x11]
lea rcx, [0x14005e160]
call fcn.14002a0e0
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x14002965b
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], sil
jne 0x1400294f0
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rbx
call fcn.140038520
mov edx, 1
mov ecx, edx
call fcn.14003853c
mov r14, rax
test rax, rax
je 0x14002965b
mov esi, 1
lea r13, [rsi - 2]
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rbp - 1]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
jne 0x14002962b
mov eax, dword [rbp - 1]
test eax, eax
je 0x14002962b
add eax, 1
mov dword [rbp - 9], 0
mov ecx, eax
mov edx, 1
cmovb rcx, r13
call fcn.14003853c
mov rbx, rax
test rax, rax
je 0x140029621
mov ecx, dword [rbp - 1]
lea r9, [rbp - 9]
mov rdx, rax
mov byte [rcx + rax], 0
mov rcx, r15
mov r8d, dword [rbp - 1]
call qword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x140029619
mov edx, dword [rbp - 9]
mov rcx, r14
mov esi, edi
add rdx, rsi
add rdx, 1
cmovb rdx, r13
call fcn.140038518
mov r9, rax
test rax, rax
je 0x14002960c
mov edx, dword [rbp - 9]
xor r8d, r8d
mov r14, rax
lea rcx, [rdx + 1]
add rsi, rcx
test edx, edx
je 0x140029608
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rbx]
lea ecx, [r8 + rdi]
mov byte [rcx + r9], al
inc r8d
mov edx, dword [rbp - 9]
cmp r8d, edx
jb 0x1400295f0
add edi, edx
jmp 0x140029619
mov rcx, r14
call fcn.140038520
xor r14d, r14d
xor esi, esi
mov rcx, rbx
call fcn.140038520
cmp dword [rbp - 1], 0
ja 0x140029540
mov r13, qword [rbp - 0x19]
test r14, r14
je 0x140029640
mov ecx, edi
cmp rsi, rcx
jbe 0x140029640
mov byte [rcx + r14], 0
test edi, edi
je 0x14002965b
mov eax, 1
jmp 0x140029675
mov r12, qword [rbp - 9]
mov r13, qword [rbp - 0x19]
jmp 0x14002965b
mov r12, rax
mov r13, rdi
mov rcx, r14
call fcn.140038520
mov rcx, r12
call fcn.140038520
mov rcx, r13
call fcn.140038520
xor eax, eax
mov r14, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140036180
add rsp, 0xa8
pop rbx
pop rbp
ret