Function at 0x4a6193
Capabilities:
Get socket status

Disassembly:
push rbp
sub rsp, 0x490
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], rcx
mov qword [rbp + 0x428], rdx
mov dword [rbp + 0x408], 0
mov rax, qword [rbp + 0x420]
mov dword [rax + 0x220], 0
lea rax, [rbp + 0x3d8]
mov rdx, rax
mov rcx, qword [rbp + 0x420]
call sym.minerd.exe_libssh2_keepalive_send
mov dword [rbp + 0x3ec], eax
cmp dword [rbp + 0x3ec], 0
jns 0x4a61fc
mov eax, dword [rbp + 0x3ec]
jmp 0x4a6534
mov eax, dword [rbp + 0x3d8]
imul eax, eax, 0x3e8
mov dword [rbp + 0x408], eax
mov rcx, qword [rbp + 0x420]
call sym.minerd.exe_libssh2_session_block_directions
mov dword [rbp + 0x3e8], eax
cmp dword [rbp + 0x3e8], 0
jne 0x4a6233
mov dword [rbp + 0x408], 0x3e8
mov rax, qword [rbp + 0x420]
mov eax, dword [rax + 0x98]
test eax, eax
jle 0x4a62ff
mov eax, dword [rbp + 0x3d8]
test eax, eax
je 0x4a626d
mov rax, qword [rbp + 0x420]
mov edx, dword [rax + 0x98]
mov eax, dword [rbp + 0x3d8]
cmp edx, eax
jge 0x4a62ff
mov ecx, 0
call sub.msvcrt.dll__time64_1
mov qword [rbp + 0x3e0], rax
mov rdx, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x428]
mov rcx, rax
call fcn.0064b180
movsd xmm1, qword [0x00760da0]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [rbp + 0x3dc], eax
mov rax, qword [rbp + 0x420]
mov eax, dword [rax + 0x98]
cmp eax, dword [rbp + 0x3dc]
jge 0x4a62da
mov rax, qword [rbp + 0x420]
mov dword [rax + 0x220], 0xfffffff7
mov eax, 0xfffffff7
jmp 0x4a6534
mov rax, qword [rbp + 0x420]
mov eax, dword [rax + 0x98]
sub eax, dword [rbp + 0x3dc]
mov dword [rbp + 0x408], eax
mov dword [rbp + 0x40c], 1
jmp 0x4a631e
cmp dword [rbp + 0x408], 0
jle 0x4a6314
mov dword [rbp + 0x40c], 1
jmp 0x4a631e
mov dword [rbp + 0x40c], 0
mov qword [rbp + 0x400], 0
mov qword [rbp + 0x3f8], 0
mov ecx, dword [rbp + 0x408]
mov edx, 0x10624dd3
mov eax, ecx
imul edx
sar edx, 6
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
mov dword [rbp + 0x3d0], eax
mov eax, dword [rbp + 0x3d0]
imul edx, eax, 0xfffffc18
mov eax, dword [rbp + 0x408]
add eax, edx
imul eax, eax, 0x3e8
mov dword [rbp + 0x3d4], eax
mov eax, dword [rbp + 0x3e8]
and eax, 1
test eax, eax
je 0x4a640b
mov dword [rbp - 0x50], 0
mov dword [rbp + 0x3f4], 0
jmp 0x4a63c0
mov eax, dword [rbp + 0x3f4]
mov rdx, qword [rbp + rax*8 - 0x48]
mov rax, qword [rbp + 0x420]
mov rax, qword [rax + 0x200]
cmp rdx, rax
jne 0x4a63b9
jmp 0x4a63cb
add dword [rbp + 0x3f4], 1
mov eax, dword [rbp - 0x50]
cmp eax, dword [rbp + 0x3f4]
ja 0x4a6399
mov eax, dword [rbp - 0x50]
cmp eax, dword [rbp + 0x3f4]
jne 0x4a6400
mov eax, dword [rbp - 0x50]
cmp eax, 0x3f
ja 0x4a6400
mov rax, qword [rbp + 0x420]
mov rdx, qword [rax + 0x200]
mov eax, dword [rbp + 0x3f4]
mov qword [rbp + rax*8 - 0x48], rdx
mov eax, dword [rbp - 0x50]
add eax, 1
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x3f8], rax
mov eax, dword [rbp + 0x3e8]
and eax, 2
test eax, eax
je 0x4a64bc
mov dword [rbp + 0x1c0], 0
mov dword [rbp + 0x3f0], 0
jmp 0x4a645c
mov eax, dword [rbp + 0x3f0]
mov rdx, qword [rbp + rax*8 + 0x1c8]
mov rax, qword [rbp + 0x420]
mov rax, qword [rax + 0x200]
cmp rdx, rax
jne 0x4a6455
jmp 0x4a646a
add dword [rbp + 0x3f0], 1
mov eax, dword [rbp + 0x1c0]
cmp eax, dword [rbp + 0x3f0]
ja 0x4a6432
mov eax, dword [rbp + 0x1c0]
cmp eax, dword [rbp + 0x3f0]
jne 0x4a64ae
mov eax, dword [rbp + 0x1c0]
cmp eax, 0x3f
ja 0x4a64ae
mov rax, qword [rbp + 0x420]
mov rdx, qword [rax + 0x200]
mov eax, dword [rbp + 0x3f0]
mov qword [rbp + rax*8 + 0x1c8], rdx
mov eax, dword [rbp + 0x1c0]
add eax, 1
mov dword [rbp + 0x1c0], eax
lea rax, [rbp + 0x1c0]
mov qword [rbp + 0x400], rax
cmp dword [rbp + 0x40c], 0
je 0x4a64ce
lea rax, [rbp + 0x3d0]
jmp 0x4a64d3
mov eax, 0
mov rdx, qword [rbp + 0x420]
mov rdx, qword [rdx + 0x200]
add edx, 1
mov ecx, edx
mov r8, qword [rbp + 0x400]
mov rdx, qword [rbp + 0x3f8]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x3ec], eax
cmp dword [rbp + 0x3ec], 0
jg 0x4a652f
mov rax, qword [rbp + 0x420]
mov dword [rax + 0x220], 0xfffffff7
mov eax, 0xfffffff7
jmp 0x4a6534
mov eax, 0
add rsp, 0x490
pop rbp
ret