Function at 0x40df60
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 r15d, r15d
xor ebp, ebp
lea rax, [rcx + 0x118]
mov qword [rsp + 0x38], rax
mov rdi, rcx
lea r13, [rcx + 0x130]
lea r14, [rcx + 8]
jmp 0x40e023
lea rax, [rsp + 0x68]
mov rcx, qword [rdi + 0x118]
mov qword [rsp + 0x68], 0x1e
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x178], rcx
xor r9d, r9d
inc ecx
xor r8d, r8d
lea rdx, [rsp + 0x170]
mov dword [rsp + 0x170], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x40e0f0
mov ecx, 1
lea rdx, str.stratum_subscribe_timed_out
call fcn.0040a7e0
mov rcx, r12
call sub.msvcrt.dll_free
test r15, r15
jne 0x40e0c1
test rbp, rbp
setne al
xor ebx, 1
and al, bl
je 0x40e1c7
mov ebx, 1
mov rsi, qword [rdi + 0x148]
test rsi, rsi
je 0x40e278
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x80]
call sub.msvcrt.dll_malloc
mov r12, rax
test bl, bl
jne 0x40e200
mov r8, rsi
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_opt_3.23.3_____s__
mov rcx, rax
call sub.msvcrt.dll_sprintf
mov rax, qword [0x00748f80]
cmp byte [rax], 0
jne 0x40e1e0
mov rcx, r13
call fcn.006b5820
mov rdx, qword [rsp + 0x38]
mov rcx, r14
mov r8, r12
call fcn.0040a710
mov esi, eax
mov rcx, r13
call fcn.006b6750
test sil, sil
jne 0x40dfa0
mov ecx, 1
lea rdx, str.stratum_subscribe_send_failed
call fcn.0040a7e0
mov rcx, r12
call sub.msvcrt.dll_free
test r15, r15
je 0x40e00d
mov rax, qword [r15 + 8]
cmp rax, 0xffffffffffffffff
je 0x40e00d
dec rax
mov qword [r15 + 8], rax
jne 0x40e00d
mov rcx, r15
call fcn.006af760
jmp 0x40e00d
mov rcx, rdi
call fcn.0040d8e0
mov rbp, rax
test rax, rax
je 0x40e330
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x70]
call fcn.006adf80
mov r15, rax
mov rcx, rbp
call sub.msvcrt.dll_free
test r15, r15
je 0x40e4e8
lea rdx, str.result
mov rcx, r15
call fcn.006aefe0
mov rsi, rax
lea rdx, str.error
mov rcx, r15
mov qword [rsp + 0x40], rax
call fcn.006aefe0
test rsi, rsi
je 0x40e4a8
cmp dword [rsi], 7
je 0x40e4a8
test rax, rax
je 0x40e360
cmp dword [rax], 7
je 0x40e360
mov rdx, qword [0x00748f10]
cmp byte [rdx], 0
jne 0x40e540
test bl, bl
jne 0x40e540
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [r15 + 8]
cmp rax, 0xffffffffffffffff
je 0x40e01e
dec rax
mov qword [r15 + 8], rax
jne 0x40e00d
xor eax, eax
mov rcx, r15
mov byte [rsp + 0x40], al
call fcn.006af760
movzx eax, byte [rsp + 0x40]
test al, al
je 0x40e00d
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, [0x006ee196]
mov ecx, 5
call fcn.0040a940
jmp 0x40e074
movabs rdx, 0x6f6874656d22202c
movabs rax, 0x31203a226469227b
mov qword [r12 + 8], rdx
movabs rdx, 0x736275732e676e69
mov qword [r12], rax
mov qword [r12 + 0x18], rdx
movabs rax, 0x6e696d22203a2264
movabs rdx, 0x22736d6172617022
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x28], rdx
movabs rax, 0x202c226562697263
mov edx, 0x7d
mov qword [r12 + 0x20], rax
mov dword [r12 + 0x30], 0x5d5b203a
mov word [r12 + 0x34], dx
jmp 0x40e064
mov ecx, pe_nt_image_headers64
call sub.msvcrt.dll_malloc
mov r12, rax
test bl, bl
jne 0x40e200
movabs rax, 0x31203a226469227b
mov qword [r12], rax
movabs rax, 0x6e696d22203a2264
movabs rdx, 0x6f6874656d22202c
mov qword [r12 + 0x10], rax
movabs rax, 0x202c226562697263
mov qword [r12 + 8], rdx
mov qword [r12 + 0x20], rax
movabs rdx, 0x736275732e676e69
movabs rax, 0x6d757063225b203a
mov qword [r12 + 0x18], rdx
mov qword [r12 + 0x30], rax
movabs rdx, 0x22736d6172617022
movabs rax, 0x22332e33322e332f
mov qword [r12 + 0x28], rdx
mov qword [r12 + 0x40], rax
movabs rdx, 0x74706f2d72656e69
mov eax, 0x7d5d
mov qword [r12 + 0x38], rdx
mov word [r12 + 0x48], ax
mov byte [r12 + 0x4a], 0
jmp 0x40e064
mov rcx, r12
call sub.msvcrt.dll_free
test r15, r15
je 0x40e598
mov rax, qword [r15 + 8]
cmp rax, 0xffffffffffffffff
jne 0x40e0cf
xor eax, eax
jmp 0x40e1c7
mov rcx, qword [rsp + 0x40]
xor edx, edx
call fcn.006af230
lea rsi, [rdi + 0x480]
mov qword [rsp + 0x48], rsi
test rax, rax
je 0x40e518
cmp dword [rax], 1
jne 0x40e518
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.006af210
test eax, eax
jle 0x40e425
lea edx, [rax - 1]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x3d0], rdi
mov rbp, qword [rsp + 0x50]
xor esi, esi
mov qword [rsp + 0x50], r14
mov r14, rdx
jmp 0x40e400
cmp dword [rax], 1
jne 0x40e413
xor edx, edx
mov rcx, rax
call fcn.006af230
mov rcx, rax
call fcn.006af450
mov rcx, rax
test rax, rax
je 0x40e3f4
lea rdx, str.mining.notify
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x40e59f
lea rax, [rsi + 1]
cmp r14, rsi
je 0x40e413
mov rsi, rax
mov rdx, rsi
mov rcx, rbp
call fcn.006af230
mov rdi, rax
test rax, rax
jne 0x40e3c0
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x3d0]
mov rcx, qword [rsp + 0x48]
call fcn.006b5820
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x40e440
call sub.msvcrt.dll_free
xor eax, eax
mov qword [rdi + 0x148], rax
mov rax, qword [0x006ef0a0]
mov rcx, qword [rsp + 0x48]
mov qword [rdi + 0x138], rax
call fcn.006b6750
mov rdx, qword [rsp + 0x40]
mov r8d, 1
mov rcx, rdi
call fcn.0040c5b0
mov rcx, r12
mov byte [rsp + 0x40], al
call sub.msvcrt.dll_free
mov rdx, qword [r15 + 8]
movzx eax, byte [rsp + 0x40]
cmp rdx, 0xffffffffffffffff
je 0x40e1bf
dec rdx
mov qword [r15 + 8], rdx
jne 0x40e1bf
jmp 0x40e1ae
mov rdx, qword [0x00748f10]
cmp byte [rdx], 0
jne 0x40e4bc
test bl, bl
je 0x40e189
mov rcx, r12
mov qword [rsp + 0x40], rax
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x40e552
lea rcx, str._unknown_reason_
call sub.msvcrt.dll__strdup
mov r12, rax
jmp 0x40e562
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0xcc]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, 1
call fcn.0040a7e0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x40e00d
lea rcx, [rdi + 0x480]
call fcn.006b5820
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x40e440
call sub.msvcrt.dll_free
jmp 0x40e440
mov rcx, r12
mov qword [rsp + 0x40], rax
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x40]
mov edx, 3
mov rcx, rax
call fcn.006abb50
mov r12, rax
mov r8, r12
lea rdx, str.JSON_RPC_call_failed:__s
mov ecx, 1
call fcn.0040a7e0
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, qword [r15 + 8]
cmp rax, 0xffffffffffffffff
jne 0x40e19f
jmp 0x40e00d
xor eax, eax
jmp 0x40e1c7
mov r8, rdi
mov rcx, r8
mov edx, 1
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x3d0]
call fcn.006af230
mov rcx, rax
call fcn.006af450
mov rsi, rax
mov rax, qword [0x00748f10]
cmp byte [rax], 0
je 0x40e626
test rsi, rsi
je 0x40e425
mov r8, rsi
lea rdx, str.Stratum_session_id:__s
mov ecx, 5
call fcn.0040a940
mov rcx, qword [rsp + 0x48]
call fcn.006b5820
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x40e619
call sub.msvcrt.dll_free
test rsi, rsi
je 0x40e440
mov rcx, rsi
call sub.msvcrt.dll__strdup
jmp 0x40e442
mov rcx, qword [rsp + 0x48]
call fcn.006b5820
mov rcx, qword [rdi + 0x148]
test rcx, rcx
jne 0x40e60b
jmp 0x40e610