Function at 0x140016440
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x320
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0x310], rax
xor edi, edi
xor r12d, r12d
xor r15d, r15d
xor ebp, ebp
mov r13, rcx
lea rsi, [rcx + 0x130]
mov rbx, qword [r13 + 0x140]
mov dword [rsp + 0x30], ebp
test rbx, rbx
je 0x1400164ab
or rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400164a0
jmp 0x1400164ad
xor ecx, ecx
sub rcx, 0xffffffffffffff80
call qword [sym.imp.MSVCR120.dll_malloc]
mov r14, rax
test ebp, ebp
je 0x1400164c7
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
jmp 0x1400164e8
test rbx, rbx
je 0x1400164e1
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_cryptonight_1.03_____s__
mov r8, rbx
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
jmp 0x1400164f1
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_cryptonight_1.03__
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
cmp dword [0x140075210], 0
je 0x14001650e
lea rdx, [0x14006ac00]
mov r8, r14
mov ecx, 4
call fcn.140014db0
mov rcx, rsi
call fcn.14001a0a0
mov rcx, qword [r13 + 0x118]
mov rdx, r14
call fcn.140015c00
mov rcx, rsi
mov ebx, eax
call fcn.14001a680
test ebx, ebx
je 0x140016887
mov rax, qword [r13 + 0x118]
lea rdx, [rsp + 0x100]
xor r9d, r9d
lea ecx, [rax + 1]
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x100], 1
mov qword [rsp + 0x40], reloc.WLDAP32.dll_Ordinal_30
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140016592
lea rdx, str.stratum_subscribe_timed_out
xor ecx, ecx
call fcn.140014db0
jmp 0x140016887
mov rcx, r13
call fcn.140015d60
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016887
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140003d00
mov rcx, rdi
mov r12, rax
call qword [sym.imp.MSVCR120.dll_free]
test r12, r12
jne 0x1400165e9
mov r8d, dword [rsp + 0xf0]
lea r9, [rsp + 0x50]
lea rdx, [0x14006ae40]
xor ecx, ecx
call fcn.140014db0
jmp 0x140016887
cmp dword [r12], 0
jne 0x14001663a
lea rdi, [0x14006adc8]
lea rcx, [rdi - 4]
call qword [r12 + Ordinal_50]
mov r9d, dword [r12 + 0x18]
xor edx, edx
mov r10d, eax
lea rcx, [0x1400657f0]
lea r8, [rdi - 4]
div dword [rcx + r9*4]
lea rcx, [r12 + 8]
mov r9d, r10d
shl rdx, 4
add rdx, qword [r12 + 0x10]
call fcn.140002540
test rax, rax
je 0x14001663a
mov rsi, qword [rax + 8]
jmp 0x14001663c
xor esi, esi
cmp dword [r12], 0
jne 0x14001668d
lea rdi, [0x14006ae5c]
lea rcx, [rdi - 4]
call qword [r12 + Ordinal_50]
mov r9d, dword [r12 + 0x18]
xor edx, edx
mov r10d, eax
lea rcx, [0x1400657f0]
lea r8, [rdi - 4]
div dword [rcx + r9*4]
lea rcx, [r12 + 8]
mov r9d, r10d
shl rdx, 4
add rdx, qword [r12 + 0x10]
call fcn.140002540
test rax, rax
je 0x14001668d
mov rbx, qword [rax + 8]
jmp 0x14001668f
xor ebx, ebx
test rsi, rsi
je 0x140016830
cmp dword [rsi], 7
je 0x140016830
test rbx, rbx
je 0x1400166af
cmp dword [rbx], 7
jne 0x140016830
mov rcx, rsi
call fcn.140016330
cmp dword [0x140075268], 0
mov rbp, rax
je 0x1400166d7
test rax, rax
jne 0x1400166d7
lea rdx, str.Failed_to_get_Stratum_session_id
lea ecx, [rax + 4]
call fcn.140014db0
cmp dword [rsi], 1
jne 0x14001681c
mov ecx, dword [rsi + 0xc]
cmp ecx, 1
jbe 0x14001681c
mov rdx, qword [rsi + 0x10]
mov rax, qword [rdx + 8]
test rax, rax
je 0x14001681c
cmp dword [rax], 2
jne 0x14001681c
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x14001681c
cmp ecx, 2
jbe 0x140016808
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x140016808
cmp dword [rax], 3
jne 0x140016808
movsxd rsi, dword [rax + 8]
test esi, esi
je 0x140016808
lea rcx, [r13 + 0x320]
call fcn.14001a0a0
mov rcx, qword [r13 + 0x140]
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, qword [r13 + 0x150]
call qword [sym.imp.MSVCR120.dll_free]
test rbp, rbp
je 0x140016774
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll__strdup]
jmp 0x140016776
xor eax, eax
mov qword [r13 + 0x140], rax
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140016781
shr rbx, 1
mov rcx, rbx
mov qword [r13 + 0x148], rbx
call qword [sym.imp.MSVCR120.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [r13 + 0x150], rax
call fcn.140015920
movabs rax, 0x3ff0000000000000
lea rcx, [r13 + 0x320]
mov qword [r13 + 0x158], rsi
mov qword [r13 + 0x138], rax
call fcn.14001a680
cmp dword [0x140075268], 0
je 0x1400167fc
test rbp, rbp
je 0x1400167fc
mov r8, qword [r13 + 0x140]
lea rdx, str.Stratum_session_id:__s
mov ecx, 4
call fcn.140014db0
mov ebp, dword [rsp + 0x30]
mov r15d, 1
jmp 0x14001687b
lea rdx, str.Failed_to_get_extranonce2_size
xor ecx, ecx
call fcn.140014db0
mov ebp, dword [rsp + 0x30]
jmp 0x14001687b
lea rdx, str.Failed_to_get_extranonce1
xor ecx, ecx
call fcn.140014db0
mov ebp, dword [rsp + 0x30]
jmp 0x14001687b
cmp dword [0x140075268], 0
jne 0x14001683d
test ebp, ebp
je 0x14001687b
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
je 0x14001685a
mov edx, 3
mov rcx, rbx
call fcn.1400024a0
jmp 0x140016867
lea rcx, str._unknown_reason_
call qword [sym.imp.MSVCR120.dll__strdup]
lea rdx, str.JSON_RPC_call_failed:__s
mov r8, rax
xor ecx, ecx
mov r14, rax
call fcn.140014db0
mov rdi, qword [rsp + 0x38]
lea rsi, [r13 + 0x130]
mov rcx, r14
call qword [sym.imp.MSVCR120.dll_free]
test r12, r12
je 0x1400168b0
mov eax, dword [r12 + 4]
cmp eax, 0xffffffff
je 0x1400168b0
dec eax
mov dword [r12 + 4], eax
jne 0x1400168b0
mov rcx, r12
call fcn.140004750
test r15d, r15d
jne 0x1400168c7
test rdi, rdi
je 0x1400168c7
test ebp, ebp
jne 0x1400168c7
lea ebp, [r15 + 1]
jmp 0x140016485
mov eax, r15d
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140058040
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret