Function at 0x1400dfa90
Capabilities:
Get socket status

Disassembly:
push rbp
sub rsp, 0x480
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], rcx
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x3e8], rax
call sym.pthread_self
mov rcx, rax
call sym.pthread_detach
mov rax, qword [rbp + 0x3e8]
mov edx, dword [rax]
lea rax, [rbp + 0x3d0]
mov r9d, edx
lea r8, str._d_RStratum
mov edx, 0x10
mov rcx, rax
call sym.snprintf_3
lea rax, [rbp + 0x3d0]
mov rcx, rax
call dbg.RenameThread
mov rax, qword [rbp + 0x3e8]
movzx eax, byte [rax + 0x69]
test al, al
je 0x1400dfb1b
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.suspend_stratum
jmp 0x1400e0010
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.sock_full
xor eax, 1
test al, al
je 0x1400dfbda
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.cnx_needed
xor eax, 1
test al, al
je 0x1400dfbda
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.suspend_stratum
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.clear_stratum_shares
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.clear_pool_work
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.wait_lpcurrent
jmp 0x1400dfbc4
mov rax, qword [rbp + 0x3e8]
movzx eax, byte [rax + 0x69]
test al, al
jne 0x1400e000c
lea rax, [0x140133828]
mov eax, dword [rax]
cmp eax, 1
jle 0x1400dfbba
mov ecx, 0x7530
call dbg.cgsleep_ms
jmp 0x1400dfbc4
mov ecx, 0xbb8
call dbg.cgsleep_ms
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.restart_stratum
xor eax, 1
test al, al
jne 0x1400dfb8d
mov dword [rbp + 0x1b0], 0
mov dword [rbp + 0x3f4], 0
jmp 0x1400dfc18
mov eax, dword [rbp + 0x3f4]
mov rdx, qword [rbp + rax*8 + 0x1b8]
mov rax, qword [rbp + 0x3e8]
mov rax, qword [rax + 0x228]
cmp rdx, rax
je 0x1400dfc26
add dword [rbp + 0x3f4], 1
mov eax, dword [rbp + 0x1b0]
cmp dword [rbp + 0x3f4], eax
jb 0x1400dfbf0
mov eax, dword [rbp + 0x1b0]
cmp dword [rbp + 0x3f4], eax
jne 0x1400dfc6a
mov eax, dword [rbp + 0x1b0]
cmp eax, 0x3f
ja 0x1400dfc6a
mov rax, qword [rbp + 0x3e8]
mov rdx, qword [rax + 0x228]
mov eax, dword [rbp + 0x3f4]
mov qword [rbp + rax*8 + 0x1b8], rdx
mov eax, dword [rbp + 0x1b0]
add eax, 1
mov dword [rbp + 0x1b0], eax
mov dword [rbp + 0x3c8], 0x5a
mov dword [rbp + 0x3cc], 0
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.sock_full
xor eax, 1
test al, al
je 0x1400dfd73
mov rax, qword [rbp + 0x3e8]
mov rax, qword [rax + 0x228]
add eax, 1
mov ecx, eax
lea rax, [rbp + 0x1b0]
lea rdx, [rbp + 0x3c8]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.WSOCK32.dll_select]
call rax
mov dword [rbp + 0x3e4], eax
cmp dword [rbp + 0x3e4], 0
jg 0x1400dfd73
mov rax, qword [0x14011bd40]
movzx eax, byte [rax]
test al, al
je 0x1400dfd66
lea rax, [0x140133918]
movzx eax, byte [rax]
test al, al
jne 0x1400dfd21
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x1400dfd21
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 3
jle 0x1400dfd66
mov rax, qword [rbp + 0x3e8]
mov ecx, dword [rax]
lea rax, [rbp - 0x50]
mov edx, dword [rbp + 0x3e4]
mov dword [rsp + 0x20], edx
mov r9d, ecx
lea r8, str.Stratum_select_failed_on_pool__d_with_value__d
mov edx, 0x200
mov rcx, rax
call sym.snprintf_3
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 4
call dbg._applog
mov qword [rbp + 0x3f8], 0
jmp 0x1400dfd89
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.recv_line
mov qword [rbp + 0x3f8], rax
cmp qword [rbp + 0x3f8], 0
jne 0x1400dfebd
lea rax, [0x140133918]
movzx eax, byte [rax]
test al, al
jne 0x1400dfdc1
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x1400dfdc1
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 1
jle 0x1400dfdfc
mov rax, qword [rbp + 0x3e8]
mov edx, dword [rax]
lea rax, [rbp - 0x50]
mov r9d, edx
lea r8, str.Stratum_connection_to_pool__d_interrupted
mov edx, 0x200
mov rcx, rax
call sym.snprintf_3
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 2
call dbg._applog
mov rax, qword [rbp + 0x3e8]
mov eax, dword [rax + 0x8c]
lea edx, [rax + 1]
mov rax, qword [rbp + 0x3e8]
mov dword [rax + 0x8c], edx
lea rax, [0x140133700]
mov eax, dword [rax]
lea edx, [rax + 1]
lea rax, [0x140133700]
mov dword [rax], edx
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.supports_resume
xor eax, 1
test al, al
jne 0x1400dfe52
lea rax, [0x140133908]
movzx eax, byte [rax]
test al, al
je 0x1400dfe61
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.clear_stratum_shares
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.clear_pool_work
call dbg.current_pool
cmp qword [rbp + 0x3e8], rax
jne 0x1400dfea2
call dbg.restart_threads
jmp 0x1400dfea2
mov rax, qword [rbp + 0x3e8]
movzx eax, byte [rax + 0x69]
test al, al
jne 0x1400e000f
mov ecx, 0x7530
call dbg.cgsleep_ms
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.restart_stratum
xor eax, 1
test al, al
jne 0x1400dfe85
jmp 0x1400e0007
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.stratum_resumed
mov rdx, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.parse_method
xor eax, 1
test al, al
je 0x1400dff76
mov rdx, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.parse_stratum_response
xor eax, 1
test al, al
je 0x1400dff76
lea rax, [0x140133918]
movzx eax, byte [rax]
test al, al
jne 0x1400dff38
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x1400dff38
mov rax, qword [0x14011be10]
mov eax, dword [rax]
cmp eax, 2
jle 0x1400dfff8
mov rdx, qword [rbp + 0x3f8]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str.Unknown_stratum_msg:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf_3
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 3
call dbg._applog
jmp 0x1400dfff8
mov rax, qword [rbp + 0x3e8]
movzx eax, byte [rax + 0x298]
test al, al
je 0x1400dfff8
call dbg.make_work
mov qword [rbp + 0x3c0], rax
mov rax, qword [rbp + 0x3e8]
mov byte [rax + 0x298], 0
mov rdx, qword [rbp + 0x3c0]
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call dbg.gen_stratum_work
mov rax, qword [rbp + 0x3c0]
mov byte [rax + 0x288], 1
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
call dbg.test_work_current
lea rax, [rbp + 0x3c0]
mov r9d, 0x1b69
lea r8, global___func__.104
lea rdx, str..._.._cgminer_4.9.1_cgminer.c
mov rcx, rax
call dbg._free_work
mov rax, qword [rbp + 0x3f8]
mov rcx, rax
call sym.free
jmp 0x1400dfaf8
nop
jmp 0x1400e0010
nop
mov eax, 0
add rsp, 0x480
pop rbp
ret