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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
test byte [rcx + 0x18d], 0x20
mov rdi, rcx
mov r15d, edx
jne 0x46ccc3
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x46cd90
xor edx, edx
jmp 0x46ca46
mov edx, ebx
mov rax, qword [rax]
lea ebx, [rdx + 1]
test rax, rax
jne 0x46ca44
lea ecx, [rdx + 3]
mov edx, 0x10
call sub.msvcrt.dll_calloc
test rax, rax
mov rsi, rax
je 0x46cd9c
mov rbp, qword [rdi + 0x150]
cmp rbp, 0xffffffffffffffff
je 0x46ccf2
movzx eax, byte [rdi + 0x171]
test al, al
je 0x46cc70
mov r12d, 1
xor r14d, r14d
xor r13d, r13d
mov ebp, 0xffffffff
xor edx, edx
mov rax, qword [rdi + 0x160]
cmp rax, 0xffffffffffffffff
je 0x46cce0
lea rdx, [rsi + r13]
xor ecx, ecx
mov qword [rdx], rax
mov eax, 0x300
mov word [rdx + 0xa], cx
mov word [rdx + 8], ax
test r15d, r15d
jne 0x46cc50
mov rdx, qword [rdi + 0x18]
test rdx, rdx
je 0x46cb40
mov ecx, r12d
xor r9d, r9d
jmp 0x46cb04
jb 0x46cc40
cmp r8d, 2
je 0x46cc30
cmp r8d, 3
cmove r15d, r9d
mov rdx, qword [rdx + 8]
add ecx, 1
test rdx, rdx
je 0x46cb40
mov r8, qword [rdx + 0x110]
mov eax, ecx
shl rax, 4
add rax, rsi
mov qword [rax], r8
mov r8d, dword [rdx + 0x124]
cmp r8d, 1
jne 0x46cae0
or word [rax + 8], 0x210
add ecx, 1
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x46cb04
nop word cs:[rax + rax]
mov edx, r12d
add edx, ebx
je 0x46cc11
mov r8d, r15d
mov rcx, rsi
call sub.WS2_32.dll_WSAPoll
test eax, eax
js 0x46cdc2
cmp r14d, 0xffffffff
mov byte [rdi + 0x174], 0
je 0x46cb79
test word [rsi + r13 + 0xa], 0x300
jne 0x46cd05
movzx eax, byte [rdi + 0x170]
test al, al
jne 0x46cd3a
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x46cc00
test ebx, ebx
mov r13, qword [rcx + 8]
je 0x46cc00
xor r14d, r14d
jmp 0x46cbb4
test r13, r13
je 0x46cc00
cmp r14d, ebx
mov rax, qword [r13 + 8]
mov rcx, r13
jae 0x46cc00
mov r13, rax
lea eax, [r12 + r14]
mov rdx, qword [rcx + 0x110]
shl rax, 4
add rax, rsi
cmp qword [rax], rdx
jne 0x46cba0
movzx eax, word [rax + 0xa]
xor r9d, r9d
mov r8d, eax
test ax, 0x607
setne r9b
shr r8w, 4
xor edx, edx
test ah, 3
setne dl
and r8d, 1
add r14d, 1
call fcn.00469bf0
test r13, r13
jne 0x46cba5
nop dword [rax]
cmp ebp, 0xffffffff
je 0x46cc11
test word [rsi + 0xa], 0x300
jne 0x46cd49
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
or word [rax + 8], 0x200
jmp 0x46caf8
or word [rax + 8], 0x300
jmp 0x46caf8
test byte [rdi + 0x18c], 4
je 0x46cd60
mov r15d, 0xffffffff
jmp 0x46cacd
mov eax, dword [rdi + 0x17c]
cmp dword [rdi + 0x178], eax
jae 0x46ca8a
cmp byte [rdi + 0x172], 0
jne 0x46ca8a
mov r8d, 0x300
xor r9d, r9d
mov qword [rsi], rbp
mov word [rsi + 8], r8w
mov word [rsi + 0xa], r9w
mov r12d, 2
mov r14d, 1
mov r13d, 0x10
xor ebp, ebp
mov edx, 1
jmp 0x46ca9d
call fcn.00469980
cmp eax, 1
mov eax, 0
cmove r15d, eax
jmp 0x46ca33
mov r12d, edx
mov r13, 0xfffffffffffffff0
mov r14d, eax
jmp 0x46cac4
mov r12d, 1
xor r14d, r14d
xor r13d, r13d
xor edx, edx
jmp 0x46ca9d
mov r13, qword [sym.imp.WS2_32.dll_recv]
lea r14, [rsp + 0x24]
xor r9d, r9d
mov rcx, qword [rdi + 0x160]
mov r8d, 4
mov rdx, r14
call r13
test eax, eax
jg 0x46cd11
movzx eax, byte [rdi + 0x170]
test al, al
je 0x46cb88
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x46cc1e
mov rcx, rdi
call fcn.0046b5b0
jmp 0x46cc11
lea rdx, [rsp + 0x28]
mov rcx, rdi
call sym.xmrig.exe_MHD_get_timeout
cmp eax, 1
jne 0x46cc5d
mov r15, qword [rsp + 0x28]
mov eax, 0x7fffffff
cmp r15, 0x7fffffff
cmova r15d, eax
jmp 0x46cacd
mov ecx, 2
xor ebx, ebx
jmp 0x46ca54
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea rdx, str.Error_allocating_memory:__s_n
mov r8, rax
mov rcx, rdi
call fcn.0046f900
xor eax, eax
jmp 0x46cc1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x46cc11
mov ecx, eax
call fcn.00470690
lea rdx, str.poll_failed:__s_n
mov r8, rax
mov rcx, rdi
call fcn.0046f900
mov rcx, rsi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x46cc1e