Function at 0x40e580
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x388
xor r14d, r14d
xor ebp, ebp
xor r15d, r15d
lea rax, [rcx + 8]
mov rbx, rcx
lea r13, [rcx + 0x130]
mov qword [rsp + 0x38], rax
lea rax, [rcx + 0x118]
mov qword [rsp + 0x40], rax
jmp 0x40e64d
mov rcx, qword [rbx + 0x118]
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x170], 1
mov qword [rsp + 0x68], 0x1e
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x178], rcx
inc ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x40e720
mov ecx, 1
lea rdx, str.stratum_subscribe_timed_out
call fcn.0040a9e0
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
jne 0x40e6f2
test r15, r15
setne al
xor r14d, 1
and r14d, eax
mov esi, r14d
and r14d, 1
je 0x40e7f5
mov r14d, 1
mov rsi, qword [rbx + 0x148]
test rsi, rsi
je 0x40e8a0
mov rcx, rsi
movzx edi, r14b
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x80]
call sub.msvcrt.dll_malloc
mov r12, rax
test di, di
jne 0x40e830
mov r8, rsi
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_opt_23.7_x64W_____s__
mov rcx, rax
call sub.msvcrt.dll_sprintf
mov rax, qword [0x00713880]
cmp byte [rax], 0
jne 0x40e810
mov rcx, r13
call fcn.0067e290
mov rcx, qword [rsp + 0x38]
mov r8, r12
mov rdx, qword [rsp + 0x40]
call fcn.0040a910
mov rcx, r13
mov esi, eax
call fcn.0067f1c0
test sil, sil
jne 0x40e5c0
mov ecx, 1
lea rdx, str.stratum_subscribe_send_failed
call fcn.0040a9e0
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
je 0x40e62d
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
je 0x40e62d
dec rax
mov qword [rbp + 8], rax
jne 0x40e62d
mov rcx, rbp
call fcn.00678260
jmp 0x40e62d
mov rcx, rbx
call fcn.0040ded0
mov r15, rax
test rax, rax
je 0x40e960
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x70]
call fcn.006769b0
mov rcx, r15
mov rbp, rax
call sub.msvcrt.dll_free
test rbp, rbp
je 0x40eb10
lea rdx, str.result
mov rcx, rbp
call fcn.00677a90
lea rdx, str.error
mov rcx, rbp
mov qword [rsp + 0x48], rax
call fcn.00677a90
mov rsi, rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x40ead0
cmp dword [rax], 7
je 0x40ead0
test rsi, rsi
je 0x40e990
cmp dword [rsi], 7
je 0x40e990
mov rax, qword [0x00713810]
cmp byte [rax], 0
jne 0x40eb70
test di, di
jne 0x40eb70
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
je 0x40e647
dec rax
mov qword [rbp + 8], rax
jne 0x40e62d
xor esi, esi
mov rcx, rbp
call fcn.00678260
test sil, sil
je 0x40e62d
mov eax, esi
add rsp, 0x388
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, r12
lea rdx, [0x006b71de]
mov ecx, 5
call fcn.0040ab70
jmp 0x40e6a3
movabs rax, 0x31203a226469227b
movabs rdx, 0x6f6874656d22202c
mov dword [r12 + 0x30], 0x5d5b203a
mov word [r12 + 0x34], 0x7d
mov qword [r12], rax
mov qword [r12 + 8], rdx
movabs rax, 0x6e696d22203a2264
movabs rdx, 0x736275732e676e69
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x18], rdx
movabs rax, 0x202c226562697263
movabs rdx, 0x22736d6172617022
mov qword [r12 + 0x20], rax
mov qword [r12 + 0x28], rdx
jmp 0x40e693
mov ecx, pe_nt_image_headers64
movzx edi, r14b
call sub.msvcrt.dll_malloc
mov r12, rax
test di, di
jne 0x40e830
movabs rax, 0x31203a226469227b
movabs rdx, 0x6f6874656d22202c
mov dword [r12 + 0x48], 0x5d225734
mov word [r12 + 0x4c], 0x7d
mov qword [r12], rax
movabs rax, 0x6e696d22203a2264
mov qword [r12 + 8], rdx
movabs rdx, 0x736275732e676e69
mov qword [r12 + 0x10], rax
movabs rax, 0x202c226562697263
mov qword [r12 + 0x18], rdx
movabs rdx, 0x22736d6172617022
mov qword [r12 + 0x20], rax
movabs rax, 0x6d757063225b203a
mov qword [r12 + 0x28], rdx
movabs rdx, 0x74706f2d72656e69
mov qword [r12 + 0x30], rax
movabs rax, 0x36782d372e33322d
mov qword [r12 + 0x38], rdx
mov qword [r12 + 0x40], rax
jmp 0x40e693
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
je 0x40e980
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
jne 0x40e700
nop dword [rax + rax]
xor esi, esi
jmp 0x40e7f5
mov rcx, qword [rsp + 0x48]
xor edx, edx
lea rdi, [rbx + 0x480]
call fcn.00677d10
mov qword [rsp + 0x50], rdi
test rax, rax
je 0x40eb40
cmp dword [rax], 1
mov rdi, rax
jne 0x40eb40
mov rcx, rax
call fcn.00677cf0
test eax, eax
jle 0x40ea51
dec eax
mov byte [rsp + 0x5f], r14b
xor esi, esi
mov r14, rdi
mov qword [rsp + 0x3d0], rbx
mov rdi, rax
jmp 0x40ea30
cmp dword [rax], 1
jne 0x40ea43
xor edx, edx
mov rcx, rax
call fcn.00677d10
mov rcx, rax
call fcn.00677f30
mov rcx, rax
test rax, rax
je 0x40ea24
lea rdx, str.mining.notify
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x40ebb7
lea rax, [rsi + 1]
cmp rdi, rsi
je 0x40ea43
mov rsi, rax
mov rdx, rsi
mov rcx, r14
call fcn.00677d10
mov rbx, rax
test rax, rax
jne 0x40e9f0
movzx r14d, byte [rsp + 0x5f]
mov rbx, qword [rsp + 0x3d0]
mov rcx, qword [rsp + 0x50]
call fcn.0067e290
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x40ea6c
call sub.msvcrt.dll_free
xor eax, eax
mov qword [rbx + 0x148], rax
mov rax, qword [0x006b8040]
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 0x138], rax
call fcn.0067f1c0
mov r8d, 1
mov rcx, rbx
mov rdx, qword [rsp + 0x48]
call fcn.0040c960
mov rcx, r12
mov esi, eax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
je 0x40e7ec
dec rax
mov qword [rbp + 8], rax
jne 0x40e7ec
jmp 0x40e7e4
mov rax, qword [0x00713810]
cmp byte [rax], 0
jne 0x40eae5
test di, di
je 0x40e7bf
mov rcx, r12
call sub.msvcrt.dll_free
test rsi, rsi
jne 0x40eb78
lea rcx, str._unknown_reason_
call sub.msvcrt.dll__strdup
mov r12, rax
jmp 0x40eb88
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0xcc]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, 1
call fcn.0040a9e0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x40e62d
lea rcx, [rbx + 0x480]
call fcn.0067e290
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x40ea6c
call sub.msvcrt.dll_free
jmp 0x40ea6c
mov rcx, r12
call sub.msvcrt.dll_free
mov edx, 3
mov rcx, rsi
call fcn.006745a0
mov r12, rax
mov r8, r12
lea rdx, str.JSON_RPC_call_failed:__s
mov ecx, 1
call fcn.0040a9e0
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
jne 0x40e7d5
jmp 0x40e62d
mov rdi, rbx
mov edx, 1
movzx r14d, byte [rsp + 0x5f]
mov rbx, qword [rsp + 0x3d0]
mov rcx, rdi
call fcn.00677d10
mov rcx, rax
call fcn.00677f30
mov rsi, rax
mov rax, qword [0x00713810]
cmp byte [rax], 0
je 0x40ec3a
test rsi, rsi
je 0x40ea51
mov r8, rsi
lea rdx, str.Stratum_session_id:__s
mov ecx, 5
call fcn.0040ab70
mov rcx, qword [rsp + 0x50]
call fcn.0067e290
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x40ec2d
call sub.msvcrt.dll_free
test rsi, rsi
je 0x40ea6c
mov rcx, rsi
call sub.msvcrt.dll__strdup
jmp 0x40ea6e
mov rcx, qword [rsp + 0x50]
call fcn.0067e290
mov rcx, qword [rbx + 0x148]
test rcx, rcx
jne 0x40ec1f
jmp 0x40ec24