Function at 0x140001c04
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x40], rcx
mov rax, rsp
mov rsi, rax
mov dword [rbp - 0x10], 0x2000
mov eax, dword [rbp - 0x10]
cdqe
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp + 0x40], 0
je 0x140001c63
cmp qword [rbp - 8], 0
je 0x140001c63
cmp dword [rbp - 0x10], 0
jne 0x140001c6d
mov eax, 0
jmp 0x140001e93
mov eax, dword [rbp - 0x10]
movsxd rdx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp - 0xa], 0
mov r8d, 7
lea rax, str.http:__
mov rdx, rax
mov rcx, qword [rbp + 0x40]
mov rax, qword [sym.imp.msvcrt.dll__strnicmp]
call rax
test eax, eax
jne 0x140001cb4
mov word [rbp - 0xa], 7
movzx edx, word [rbp - 0xa]
mov rax, qword [rbp + 0x40]
add rax, rdx
mov r8d, 4
lea rdx, str.www.
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__strnicmp]
call rax
test eax, eax
jne 0x140001ce1
add word [rbp - 0xa], 4
mov rcx, qword [rbp + 0x40]
call sym.strlen
movzx edx, word [rbp - 0xa]
sub rax, rdx
add rax, 1
mov rdx, rax
sub rdx, 1
mov qword [rbp - 0x18], rdx
mov r14, rax
mov r15d, 0
mov r12, rax
mov r13d, 0
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002b30
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x20], rax
movzx edx, word [rbp - 0xa]
mov rax, qword [rbp + 0x40]
add rax, rdx
mov rcx, rax
call sym.strdup
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp - 0x20]
lea rdx, [0x14000807e]
mov rcx, rax
call sym.strtok
mov qword [rbp - 0x28], rax
movzx ebx, word [rbp - 0xa]
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.strlen
lea rdx, [rbx + rax]
mov rax, qword [rbp + 0x40]
add rax, rdx
mov rcx, rax
call sym.strdup
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.HTTPConnectToServer
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x38]
mov r8, rcx
mov rcx, rax
call sym.HTTPRequestPage
mov ecx, dword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x38]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0x3c], eax
mov edx, dword [rbp - 0x3c]
mov eax, dword [rbp - 0x10]
mov r8d, edx
mov edx, eax
lea rax, str.Max___d__ret___d__n
mov rcx, rax
call sym.printf
mov edx, dword [rbp - 0x3c]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.GetContentSize
mov dword [rbp - 0x40], eax
cmp dword [rbp - 0x40], 0
jle 0x140001e5c
mov eax, dword [rbp - 0x40]
cmp eax, dword [rbp - 0x10]
jle 0x140001e5c
mov eax, dword [rbp - 0x10]
movsxd rdx, eax
mov rax, qword [rbp - 8]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, dword [rbp - 0x40]
add eax, 0xa
cdqe
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov ecx, dword [rbp - 0x40]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x38]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [rbp - 8]
mov rsp, rsi
mov rsp, rbp
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret