Function at 0x140035110
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x14017f8e0]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov r12, qword [rsp + 0x30]
xor r13b, r13b
mov r14, qword [rsp + 0x30]
xor r15b, r15b
mov qword [r11 + 0x10], rbx
mov rbp, rcx
mov qword [r11 + 0x18], rdi
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x14003516c
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x140035161
jmp 0x14003516e
xor ecx, ecx
sub rcx, 0xffffffffffffff80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14003547f
test r15b, r15b
je 0x140035192
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
jmp 0x1400351b3
mov r8, qword [rbp + 0x40]
test r8, r8
je 0x1400351ac
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_8.15_KlausT_____s__
mov rcx, rsi
call fcn.140029280
jmp 0x1400351bb
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_8.15_KlausT__
mov rcx, rsi
call fcn.140029280
cmp byte [0x140190371], 0
je 0x1400351d8
mov r8, rsi
lea rdx, [0x14016e328]
mov ecx, 4
call fcn.140033450
lea rcx, [rbp + 0x30]
call fcn.1400c6570
mov rcx, qword [rbp + 0x18]
mov rdx, rsi
call fcn.140034580
lea rcx, [rbp + 0x30]
movzx ebx, al
call fcn.1400c6b50
test bl, bl
je 0x140035401
mov rax, qword [rbp + 0x18]
lea rdx, [rsp + 0x140]
mov qword [rsp + 0x148], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x30], 0xa
lea ecx, [rax + 1]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140035259
lea rdx, str.stratum_subscribe_timed_out
xor ecx, ecx
call fcn.140033450
jmp 0x140035401
mov rcx, rbp
call fcn.140034740
mov r12, rax
test rax, rax
je 0x140035401
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.14010d050
mov rcx, r12
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x1400352ad
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.140033450
jmp 0x140035401
lea rdx, [0x14016d844]
mov rcx, r14
call fcn.14010e800
mov rcx, rax
call fcn.14010e730
cmp rax, 1
je 0x1400352db
lea rdx, str.Stratum_subscribe_answer_id_is_not_correct_
mov ecx, 1
call fcn.140033450
lea rdx, str.result
mov rcx, r14
call fcn.14010e800
lea rdx, str.error
mov rcx, r14
mov rdi, rax
call fcn.14010e800
mov rbx, rax
test rdi, rdi
je 0x1400353b5
cmp dword [rdi], 7
je 0x1400353b5
test rax, rax
je 0x14003531f
cmp dword [rax], 7
jne 0x1400353b5
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call fcn.140034fa0
test al, al
je 0x140035401
mov rcx, rdi
mov r13b, 1
call fcn.140034ed0
cmp byte [0x140190372], 0
mov rbx, rax
je 0x140035368
test rax, rax
je 0x140035368
mov r8, rax
lea rdx, str.Stratum_session_id:__s
mov ecx, 4
call fcn.140033450
lea rcx, [rbp + 0xd0]
call fcn.1400c6570
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140035383
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140035393
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
jmp 0x140035395
xor eax, eax
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0xd0]
movabs rax, 0x3ff0000000000000
mov qword [rbp + 0x38], rax
call fcn.1400c6b50
jmp 0x140035401
cmp byte [0x140190372], 0
jne 0x1400353c3
test r15b, r15b
je 0x140035401
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400353e0
mov edx, 3
mov rcx, rbx
call fcn.14010f610
jmp 0x1400353ed
lea rcx, str._unknown_reason_
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r8, rax
lea rdx, str.JSON_RPC_call_failed:__s
xor ecx, ecx
mov rsi, rax
call fcn.140033450
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x14003542b
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x14003542b
sub rax, 1
mov qword [r14 + 8], rax
jne 0x14003542b
mov rcx, r14
call fcn.14010e600
test r13b, r13b
jne 0x140035442
test r12, r12
je 0x140035442
test r15b, r15b
jne 0x140035442
mov r15b, 1
jmp 0x140035154
mov rdi, qword [rsp + 0x3a0]
movzx eax, r13b
mov rbx, qword [rsp + 0x398]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140111120
mov rbp, qword [rsp + 0x3a8]
add rsp, 0x360
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
lea rdx, str.Out_of_memory_
xor ecx, ecx
call fcn.140033450
mov ecx, 2
call fcn.1400293c0
int3