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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
mov ebp, r8d
mov rcx, qword [rcx + 0x50]
mov r14, r9
mov rdi, rdx
test rcx, rcx
jne 0x180002494
mov eax, 0x80004005
jmp 0x180002566
test r8d, r8d
je 0x18000259b
cmp rdi, rcx
jae 0x18000259b
lea rax, [rdx + rbp]
cmp rax, rcx
jbe 0x1800024b3
mov ebp, ecx
sub ebp, edi
cmp qword [rbx + 0x40], rdi
je 0x180002514
mov rcx, rbx
call fcn.180002bb0
test eax, eax
js 0x180002566
cmp eax, 1
je 0x180002566
mov rdx, rdi
mov rcx, rbx
call fcn.180002ef0
test eax, eax
js 0x180002566
cmp eax, 1
je 0x180002566
mov rcx, rbx
mov qword [rbx + 0x40], rdi
call fcn.180003010
test eax, eax
js 0x180002566
cmp eax, 1
je 0x180002566
mov rcx, rbx
call fcn.180002d00
test eax, eax
js 0x180002566
cmp eax, 1
je 0x180002566
mov qword [rsp + 0x30], rsi
mov esi, ebp
test ebp, ebp
je 0x180002584
nop
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x180002594
mov r8d, 0x1000
mov eax, esi
cmp esi, r8d
mov edx, ebp
cmovb r8d, esi
sub rdx, rax
add rdx, r14
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18000257c
xor edi, edi
call fcn.180002050
test eax, eax
js 0x180002561
cmp eax, 1
jne 0x180002580
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
add qword [rbx + 0x40], rdi
sub esi, edi
jne 0x180002520
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x180002590
mov dword [rax], ebp
xor eax, eax
jmp 0x180002561
mov eax, 0x80004005
jmp 0x180002561
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1800025ab
mov dword [rax], 0
xor eax, eax
jmp 0x180002566
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, r9
mov esi, r8d
test rbp, rbp
je 0x180007d48
mov rax, qword [rbp + 0x88]
test rax, rax
jne 0x180007ca0
mov ebx, 0x80004005
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x58], rdi
xor ebx, ebx
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x180007cb3
mov dword [rdi], ebx
test esi, esi
je 0x180007d33
cmp rdx, rax
ja 0x180007d33
mov rcx, rbp
call fcn.180005350
test eax, eax
js 0x180007d31
cmp eax, 1
je 0x180007d31
test esi, esi
je 0x180007d33
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbp + 0x10]
lea r9, [rsp + 0x50]
mov r8d, esi
mov dword [rsp + 0x50], ebx
mov rdx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180007d2c
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x180007d33
test rdi, rdi
je 0x180007d0c
add dword [rdi], ecx
add qword [rbp + 0x18], rcx
add r14, rcx
sub esi, ecx
jne 0x180007ce0
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
call fcn.180002050
mov ebx, eax
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x180007d63
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 0x180002460
mov eax, 0x80004005
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret