Function at 0x40e250
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 ebx, ebx
xor ebp, ebp
xor r15d, r15d
lea rax, [rcx + 8]
mov rdi, rcx
mov qword [rsp + 0x38], rax
lea rax, [rcx + 0x118]
lea r13, [rcx + 0x130]
mov qword [rsp + 0x40], rax
jmp 0x40e314
mov rcx, qword [rdi + 0x118]
lea rax, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x170], 1
mov qword [rsp + 0x68], 0x1e
mov qword [rsp + 0x178], rcx
add ecx, 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x40e3e0
lea rdx, str.stratum_subscribe_timed_out
mov ecx, 1
call fcn.0040a7c0
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
jne 0x40e3b4
test r15, r15
setne al
xor ebx, 1
and al, bl
je 0x40e4b8
mov ebx, 1
mov rsi, qword [rdi + 0x148]
test rsi, rsi
je 0x40e568
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x80]
call sub.msvcrt.dll_malloc
mov r12, rax
test bl, bl
jne 0x40e4f0
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_opt_23.5_x64_W_____s__
mov r8, rsi
mov rcx, rax
call sub.msvcrt.dll_sprintf
mov rax, qword [0x0064c640]
cmp byte [rax], 0
jne 0x40e4d0
mov rcx, r13
call fcn.005bee00
mov rcx, qword [rsp + 0x38]
mov r8, r12
mov rdx, qword [rsp + 0x40]
call fcn.0040a6f0
mov rcx, r13
mov esi, eax
call fcn.005bfd30
test sil, sil
jne 0x40e290
lea rdx, str.stratum_subscribe_send_failed
mov ecx, 1
call fcn.0040a7c0
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
je 0x40e2fe
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
je 0x40e2fe
sub rax, 1
mov qword [rbp + 8], rax
jne 0x40e2fe
mov rcx, rbp
call fcn.005b8ec0
jmp 0x40e2fe
mov rcx, rdi
call fcn.0040dbd0
mov r15, rax
test rax, rax
je 0x40e628
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, rax
call fcn.005b76f0
mov rcx, r15
mov rbp, rax
call sub.msvcrt.dll_free
test rbp, rbp
je 0x40e7d8
lea rdx, str.result
mov rcx, rbp
call fcn.005b8740
lea rdx, str.error
mov rcx, rbp
mov rsi, rax
mov qword [rsp + 0x48], rax
call fcn.005b8740
test rsi, rsi
je 0x40e790
cmp dword [rsi], 7
je 0x40e790
test rax, rax
je 0x40e650
cmp dword [rax], 7
je 0x40e650
mov rdx, qword [0x0064c5d0]
cmp byte [rdx], 0
jne 0x40e830
test bl, bl
jne 0x40e830
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
je 0x40e30f
sub rax, 1
mov qword [rbp + 8], rax
jne 0x40e2fe
xor eax, eax
mov rcx, rbp
mov byte [rsp + 0x48], al
call fcn.005b8ec0
movzx eax, byte [rsp + 0x48]
test al, al
je 0x40e2fe
add rsp, 0x388
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x005f81de]
mov r8, r12
mov ecx, 5
call fcn.0040a950
jmp 0x40e365
movabs rdx, 0x6f6874656d22202c
movabs rax, 0x31203a226469227b
mov dword [r12 + 0x30], 0x5d5b203a
mov qword [r12 + 8], rdx
movabs rdx, 0x736275732e676e69
mov qword [r12], rax
movabs rax, 0x6e696d22203a2264
mov qword [r12 + 0x18], rdx
movabs rdx, 0x22736d6172617022
mov qword [r12 + 0x10], rax
movabs rax, 0x202c226562697263
mov qword [r12 + 0x28], rdx
mov edx, 0x7d
mov qword [r12 + 0x20], rax
mov word [r12 + 0x34], dx
jmp 0x40e355
mov ecx, pe_nt_image_headers64
call sub.msvcrt.dll_malloc
mov r12, rax
test bl, bl
jne 0x40e4f0
movabs rax, 0x31203a226469227b
mov byte [r12 + 0x4e], 0
movabs rdx, 0x6f6874656d22202c
mov qword [r12], rax
movabs rax, 0x6e696d22203a2264
mov qword [r12 + 0x10], rax
movabs rax, 0x202c226562697263
mov qword [r12 + 8], rdx
movabs rdx, 0x736275732e676e69
mov qword [r12 + 0x20], rax
movabs rax, 0x6d757063225b203a
mov qword [r12 + 0x18], rdx
movabs rdx, 0x22736d6172617022
mov qword [r12 + 0x30], rax
movabs rax, 0x36782d352e33322d
mov qword [r12 + 0x28], rdx
movabs rdx, 0x74706f2d72656e69
mov qword [r12 + 0x40], rax
mov eax, 0x7d5d
mov qword [r12 + 0x38], rdx
mov dword [r12 + 0x48], 0x22572d34
mov word [r12 + 0x4c], ax
jmp 0x40e355
mov rcx, r12
call sub.msvcrt.dll_free
test rbp, rbp
je 0x40e888
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
jne 0x40e3c2
xor eax, eax
jmp 0x40e4b8
mov rcx, qword [rsp + 0x48]
lea rsi, [rdi + 0x480]
xor edx, edx
call fcn.005b8990
mov qword [rsp + 0x50], rsi
test rax, rax
je 0x40e808
cmp dword [rax], 1
mov r14, rax
jne 0x40e808
mov rcx, rax
call fcn.005b8970
test eax, eax
jle 0x40e708
sub eax, 1
mov qword [rsp + 0x58], r15
xor esi, esi
mov r15, r14
mov qword [rsp + 0x3d0], rdi
mov r14, rax
jmp 0x40e6e8
cmp dword [rax], 1
jne 0x40e6fb
xor edx, edx
mov rcx, rax
call fcn.005b8990
mov rcx, rax
call fcn.005b8bb0
mov rcx, rax
test rax, rax
je 0x40e6dc
lea rdx, str.mining.notify
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x40e88f
lea rax, [rsi + 1]
cmp r14, rsi
je 0x40e6fb
mov rsi, rax
mov rdx, rsi
mov rcx, r15
call fcn.005b8990
mov rdi, rax
test rax, rax
jne 0x40e6a8
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x3d0]
mov rcx, qword [rsp + 0x50]
call fcn.005bee00
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x40e723
call sub.msvcrt.dll_free
xor eax, eax
mov qword [rdi + 0x148], rax
mov rax, qword [0x005f8fe0]
mov rcx, qword [rsp + 0x50]
mov qword [rdi + 0x138], rax
call fcn.005bfd30
mov rdx, qword [rsp + 0x48]
mov r8d, 1
mov rcx, rdi
call fcn.0040c8f0
mov rcx, r12
mov byte [rsp + 0x48], al
call sub.msvcrt.dll_free
mov rdx, qword [rbp + 8]
movzx eax, byte [rsp + 0x48]
cmp rdx, 0xffffffffffffffff
je 0x40e4b0
sub rdx, 1
mov qword [rbp + 8], rdx
jne 0x40e4b0
jmp 0x40e49f
mov rdx, qword [0x0064c5d0]
cmp byte [rdx], 0
jne 0x40e7a4
test bl, bl
je 0x40e479
mov rcx, r12
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x40e842
lea rcx, str._unknown_reason_
call sub.msvcrt.dll__strdup
mov r12, rax
jmp 0x40e852
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0xcc]
mov ecx, 1
lea rdx, str.JSON_decode_failed__d_:__s
call fcn.0040a7c0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x40e2fe
lea rcx, [rdi + 0x480]
call fcn.005bee00
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x40e723
call sub.msvcrt.dll_free
jmp 0x40e723
mov rcx, r12
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x48]
mov edx, 3
mov rcx, rax
call fcn.005b5280
mov r12, rax
lea rdx, str.JSON_RPC_call_failed:__s
mov r8, r12
mov ecx, 1
call fcn.0040a7c0
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [rbp + 8]
cmp rax, 0xffffffffffffffff
jne 0x40e48f
jmp 0x40e2fe
xor eax, eax
jmp 0x40e4b8
mov r14, rdi
mov edx, 1
mov r15, qword [rsp + 0x58]
mov rcx, r14
mov rdi, qword [rsp + 0x3d0]
call fcn.005b8990
mov rcx, rax
call fcn.005b8bb0
mov rsi, rax
mov rax, qword [0x0064c5d0]
cmp byte [rax], 0
je 0x40e911
test rsi, rsi
je 0x40e708
lea rdx, str.Stratum_session_id:__s
mov r8, rsi
mov ecx, 5
call fcn.0040a950
mov rcx, qword [rsp + 0x50]
call fcn.005bee00
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x40e904
call sub.msvcrt.dll_free
test rsi, rsi
je 0x40e723
mov rcx, rsi
call sub.msvcrt.dll__strdup
jmp 0x40e725
mov rcx, qword [rsp + 0x50]
call fcn.005bee00
mov rcx, qword [rdi + 0x148]
test rcx, rcx
jne 0x40e8f6
jmp 0x40e8fb