Function at 0x14000a910
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x338
vmovups xmmword [rsp + 0x320], xmm6
vmovq xmm6, qword [0x14016f730]
xor edi, edi
xor ebp, ebp
xor r13d, r13d
mov rsi, rcx
lea r15, [rcx + 0x130]
jmp 0x14000aa17
mov rcx, r15
call fcn.140099de0
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140007530
mov rcx, r15
mov r14d, eax
call fcn.14009a0b0
lea rdx, str.stratum_subscribe_send_failed
test r14b, r14b
je 0x14000a9cc
mov rcx, qword [rsi + 0x118]
lea rbx, [rsp + 0x58]
lea rdx, [rsp + 0x110]
mov dword [rsp + 0x110], 1
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x118], rcx
add ecx, 1
vmovq qword [rsp + 0x58], xmm6
call qword [sym.imp.WS2_32.dll_select]
lea rdx, str.stratum_subscribe_timed_out
test eax, eax
jg 0x14000aa90
xor ecx, ecx
call fcn.140007630
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
test rbp, rbp
je 0x14000aa00
mov r8d, dword [rbp + 4]
cmp r8d, 0xffffffff
je 0x14000aa00
sub r8d, 1
mov dword [rbp + 4], r8d
je 0x14000afef
nop word [rax + rax]
test r13, r13
je 0x14000abd7
test dil, dil
jne 0x14000abd7
mov edi, 1
mov r12, qword [rsi + 0x140]
test r12, r12
je 0x14000ab80
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rcx, [rax + 0x80]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x30], rax
test dil, dil
jne 0x14000ab68
mov rcx, rax
mov r8, r12
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_scash_3.0.8_____s__
call fcn.140006ff0
mov rax, qword [0x140185620]
cmp byte [rax], 0
je 0x14000a950
mov r8, qword [rsp + 0x30]
lea rdx, [0x14016f190]
mov ecx, 4
call fcn.140007630
jmp 0x14000a950
mov rcx, rsi
call fcn.14000a360
mov r13, rax
test rax, rax
je 0x14000abb0
lea r12, [rsp + 0x60]
mov rcx, rax
mov rdx, r12
call fcn.1400958b0
mov rcx, r13
mov rbp, rax
call fcn.1400b5948
test rbp, rbp
je 0x14000ae00
lea rdx, str.result
mov rcx, rbp
call fcn.140096430
lea rdx, str.error
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov rbx, rax
call fcn.140096430
mov r12, rax
test rbx, rbx
je 0x14000adc0
cmp dword [rbx], 7
je 0x14000adc0
test rax, rax
je 0x14000ac00
cmp dword [rax], 7
je 0x14000ac00
mov rdx, qword [0x140185610]
cmp byte [rdx], 0
jne 0x14000afa0
test dil, dil
jne 0x14000afa0
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
mov r12d, dword [rbp + 4]
cmp r12d, 0xffffffff
je 0x14000aa12
sub r12d, 1
mov dword [rbp + 4], r12d
jne 0x14000aa12
mov rcx, rbp
call fcn.140096ab0
jmp 0x14000aa12
mov rcx, qword [rsp + 0x30]
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
call fcn.140006ff0
jmp 0x14000aa5b
mov ecx, pe_nt_image_headers64
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x30], rax
test dil, dil
jne 0x14000ab68
mov rcx, rax
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_scash_3.0.8__
call fcn.140006ff0
jmp 0x14000aa5b
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
test rbp, rbp
je 0x14000abd7
mov ecx, dword [rbp + 4]
cmp ecx, 0xffffffff
je 0x14000abd7
sub ecx, 1
mov dword [rbp + 4], ecx
jne 0x14000abd7
mov rcx, rbp
call fcn.140096ab0
xor r14d, r14d
vmovups xmm6, xmmword [rsp + 0x320]
mov eax, r14d
add rsp, 0x338
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
xor edx, edx
call fcn.140096670
test rax, rax
je 0x14000ae30
cmp dword [rax], 1
jne 0x14000ae30
mov rcx, rax
mov qword [rsp + 0x48], rax
xor ebx, ebx
call fcn.140096650
mov dword [rsp + 0x40], eax
test eax, eax
jle 0x14000ad7b
test al, 1
mov r8, qword [rsp + 0x48]
je 0x14000acaf
xor edx, edx
mov rcx, r8
mov qword [rsp + 0x48], r8
call fcn.140096670
mov rbx, rax
test rax, rax
je 0x14000ad7b
cmp dword [rax], 1
jne 0x14000ad7b
xor edx, edx
mov rcx, rax
call fcn.140096670
mov rcx, rax
call fcn.140096880
mov r8, qword [rsp + 0x48]
test rax, rax
mov rcx, rax
je 0x14000ac9f
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov r8, qword [rsp + 0x48]
test eax, eax
je 0x14000b08f
cmp dword [rsp + 0x40], 1
mov ebx, 1
je 0x14000ad7b
mov qword [rsp + 0x380], rsi
mov r12, r8
mov esi, dword [rsp + 0x40]
mov byte [rsp + 0x48], dil
jmp 0x14000ad58
cmp dword [rax], 1
jne 0x14000ad6e
xor edx, edx
mov rcx, rax
call fcn.140096670
mov rcx, rax
call fcn.140096880
mov rcx, rax
test rax, rax
je 0x14000ad08
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000b07f
add ebx, 1
mov rcx, r12
mov edx, ebx
call fcn.140096670
mov rdi, rax
test rax, rax
je 0x14000ad6e
cmp dword [rax], 1
jne 0x14000ad6e
xor edx, edx
mov rcx, rax
call fcn.140096670
mov rcx, rax
call fcn.140096880
mov rcx, rax
test rax, rax
je 0x14000ad51
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000b07f
add ebx, 1
cmp esi, ebx
je 0x14000ad6e
mov edx, ebx
mov rcx, r12
call fcn.140096670
mov rdi, rax
test rax, rax
jne 0x14000acd0
movzx edi, byte [rsp + 0x48]
mov rsi, qword [rsp + 0x380]
mov qword [rsp + 0x40], 0
mov edx, r14d
mov r12, qword [0x140185610]
cmp byte [r12], 0
je 0x14000ae4b
test dl, dl
je 0x14000ae4b
nop dword [rax]
lea rdx, str.Failed_to_get_Stratum_session_id
mov ecx, 4
call fcn.140007630
jmp 0x14000ae42
mov rbx, qword [0x140185610]
cmp byte [rbx], 0
jne 0x14000add5
test dil, dil
je 0x14000ab2e
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
test r12, r12
jne 0x14000afaa
lea rcx, str._unknown_reason_
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov r14, rax
jmp 0x14000afba
mov r8d, dword [rsp + 0x100]
xor ecx, ecx
mov r9, r12
lea rdx, str.JSON_decode_failed__d_:__s
call fcn.140007630
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
jmp 0x14000aa00
mov r12, qword [0x140185610]
cmp byte [r12], 0
jne 0x14000ada8
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x38]
mov edx, 1
call fcn.140096670
mov rcx, rax
call fcn.140096880
lea rdx, str.Failed_to_get_extranonce1
mov rbx, rax
test rax, rax
je 0x14000b007
mov rcx, qword [rsp + 0x38]
mov edx, 2
call fcn.140096670
mov rcx, rax
call fcn.140096970
lea rdx, str.Failed_to_get_extranonce2_size
test eax, eax
je 0x14000b007
cmp eax, 0x64
ja 0x14000b000
lea rdi, [rsi + 0x1c8]
mov r13, rbx
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov rcx, rdi
movsxd r12, eax
call fcn.140099de0
mov rcx, qword [rsi + 0x140]
call fcn.1400b5948
mov rcx, qword [rsi + 0x150]
call fcn.1400b5948
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000b020
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov rcx, r13
mov qword [rsi + 0x140], rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r15, rax
shr r15, 1
mov qword [rsi + 0x148], r15
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, r15
mov rdx, r13
mov qword [rsi + 0x150], rax
mov rcx, rax
call fcn.140008910
mov r11, qword [0x14016f6e0]
mov qword [rsi + 0x158], r12
mov rcx, rdi
mov qword [rsi + 0x138], r11
call fcn.14009a0b0
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0
je 0x14000af66
mov r8, qword [rsi + 0x140]
lea rdx, str.Stratum_session_id:__s
mov ecx, 4
call fcn.140007630
mov rcx, rbx
call fcn.1400b5948
mov r9d, dword [rbp + 4]
cmp r9d, 0xffffffff
je 0x14000abda
sub r9d, 1
mov dword [rbp + 4], r9d
jne 0x14000abda
mov rcx, rbp
call fcn.140096ab0
jmp 0x14000abda
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
mov edx, 3
mov rcx, r12
call fcn.140094240
mov r14, rax
mov r8, r14
lea rdx, str.JSON_RPC_call_failed:__s
xor ecx, ecx
call fcn.140007630
mov rcx, r14
call fcn.1400b5948
mov r8d, dword [rbp + 4]
cmp r8d, 0xffffffff
je 0x14000aa00
sub r8d, 1
mov dword [rbp + 4], r8d
jne 0x14000aa00
mov rcx, rbp
call fcn.140096ab0
jmp 0x14000aa00
lea rdx, str.Invalid_value_of_extranonce2_size
xor ecx, ecx
call fcn.140007630
mov rcx, qword [rsp + 0x30]
call fcn.1400b5948
jmp 0x14000a9e2
mov qword [rsi + 0x140], 0
mov rcx, r13
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
shr rax, 1
mov qword [rsi + 0x148], rax
mov rcx, rax
mov r15, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, r15
mov rdx, r13
mov qword [rsi + 0x150], rax
mov rcx, rax
call fcn.140008910
mov r10, qword [0x14016f6e0]
mov qword [rsi + 0x158], r12
mov rcx, rdi
mov qword [rsi + 0x138], r10
call fcn.14009a0b0
jmp 0x14000af66
mov rbx, rdi
mov rsi, qword [rsp + 0x380]
movzx edi, byte [rsp + 0x48]
mov edx, 1
mov rcx, rbx
call fcn.140096670
mov rcx, rax
call fcn.140096880
test rax, rax
mov qword [rsp + 0x40], rax
sete dl
jmp 0x14000ad87