Function at 0x14001d2a0
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x14008d0f8]
xor rax, rsp
mov qword [rsp + 0x350], rax
xor ebp, ebp
mov rdi, rcx
or rax, 0xffffffffffffffff
mov rsi, r8
mov rcx, rax
mov rbx, rdx
mov r14d, ebp
mov r15d, ebp
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], bpl
jne 0x14001d2e0
nop dword [rax]
inc rax
cmp byte [rdx + rax], bpl
jne 0x14001d2f0
add rax, 0x50
add rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rsi
lea rdx, str._id_:_2___method_:__mining.authorize____params_:____s_____s__
mov rcx, rax
mov r8, rbx
mov r12, rax
call fcn.14000b920
cmp dword [0x1400a7850], ebp
je 0x14001d33a
mov r8, r12
lea rdx, [0x140082d50]
mov ecx, 4
call fcn.14001ae00
lea rcx, [0x14008ed00]
call fcn.140027690
mov rcx, qword [rdi + 0x118]
mov rdx, r12
call fcn.14001c290
lea rcx, [0x14008ed00]
mov ebx, eax
call fcn.140027c70
test ebx, ebx
je 0x14001d68a
mov rcx, rdi
call fcn.14001c450
mov rbx, rax
test rax, rax
je 0x14001d68a
nop
mov rdx, rbx
mov rcx, rdi
call fcn.14001f660
mov rcx, rbx
test eax, eax
je 0x14001d3ad
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.14001c450
mov rbx, rax
test rax, rax
jne 0x14001d380
jmp 0x14001d68a
lea r8, [rsp + 0x40]
call fcn.14000e130
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x14001d3e8
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.14001ae00
jmp 0x14001d68a
cmp dword [r14], ebp
jne 0x14001d40e
lea rcx, [r14 + 0x10]
lea rdx, [0x140082358]
call fcn.14000ca40
test rax, rax
je 0x14001d40e
cmp dword [rax], 3
jne 0x14001d40e
cmp qword [rax + 0x10], 2
je 0x14001d41f
lea rdx, str.Stratum_authorize_answer_id_is_not_correct_
mov ecx, 1
call fcn.14001ae00
mov esi, dword [r14]
test esi, esi
jne 0x14001d43b
lea rcx, [r14 + 0x10]
lea rdx, str.result
call fcn.14000ca40
mov rbx, rax
jmp 0x14001d43e
mov rbx, rbp
test esi, esi
jne 0x14001d454
lea rcx, [r14 + 0x10]
lea rdx, str.error
call fcn.14000ca40
jmp 0x14001d457
mov rax, rbp
test rbx, rbx
je 0x14001d642
cmp dword [rbx], 6
je 0x14001d642
test rax, rax
je 0x14001d477
cmp dword [rax], 7
jne 0x14001d642
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
cmp dword [reloc.WS2_32.dll_accept], ebp
mov r15d, 1
mov qword [rdi + 0x768], rax
je 0x14001d68a
lea rdx, str._id_:_3___method_:__mining.extranonce.subscribe____params_:___
mov rcx, r12
call fcn.14000b920
cmp dword [0x1400a7850], ebp
je 0x14001d4c2
mov r8, r12
lea rdx, [0x140082d50]
lea ecx, [r15 + 3]
call fcn.14001ae00
lea rcx, [0x14008ed00]
call fcn.140027690
mov rcx, qword [rdi + 0x118]
mov rdx, r12
call fcn.14001c290
lea rcx, [0x14008ed00]
mov ebx, eax
call fcn.140027c70
test ebx, ebx
je 0x14001d68a
mov rax, qword [rdi + 0x118]
lea rdx, [rsp + 0x140]
mov qword [rsp + 0x148], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x140], r15d
mov qword [rsp + 0x30], r15
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 0x14001d556
cmp dword [0x1400a7b1c], ebp
je 0x14001d68a
lea rdx, str.stratum_extranonce_subscribe_timed_out
mov ecx, 4
call fcn.14001ae00
jmp 0x14001d68a
mov rcx, rdi
call fcn.14001c450
mov rsi, rax
test rax, rax
je 0x14001d68a
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.14000e130
mov rbx, rax
test rax, rax
jne 0x14001d5a9
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, r15d
call fcn.14001ae00
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001d68a
cmp dword [rax], ebp
jne 0x14001d5fe
lea rdx, [0x140082358]
lea rcx, [rax + 0x10]
call fcn.14000ca40
test rax, rax
je 0x14001d5fe
cmp dword [rax], 3
jne 0x14001d5fe
cmp qword [rax + 0x10], 3
jne 0x14001d5fe
lea rdx, str.result
lea rcx, [rbx + 0x10]
call fcn.14000ca40
cmp dword [0x1400a7b1c], ebp
je 0x14001d61c
test rax, rax
je 0x14001d5f0
cmp dword [rax], 6
jne 0x14001d61c
lea rdx, str.extranonce_subscribe_not_supported
mov ecx, 4
jmp 0x14001d617
mov rdx, rsi
mov rcx, rdi
call fcn.14001f660
test eax, eax
jne 0x14001d61c
lea rdx, str.Stratum_extranonce_answer_id_was_not_correct_
mov ecx, r15d
call fcn.14001ae00
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14001d637
sub rax, r15
mov qword [rbx + 8], rax
jne 0x14001d637
mov rcx, rbx
call fcn.14000ed90
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001d68a
test rax, rax
je 0x14001d67c
cmp dword [rax], 1
jne 0x14001d67c
cmp qword [rax + 0x18], 1
jbe 0x14001d669
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001d669
cmp dword [rcx], 2
jne 0x14001d669
mov rbp, qword [rcx + 0x10]
mov r8, rbp
lea rdx, str.Stratum_authentication_failed___s_
xor ecx, ecx
call fcn.14001ae00
jmp 0x14001d68a
lea rdx, str.Stratum_authentication_failed
xor ecx, ecx
call fcn.14001ae00
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x14001d6b4
mov rcx, qword [r14 + 8]
cmp rcx, 0xffffffffffffffff
je 0x14001d6b4
sub rcx, 1
mov qword [r14 + 8], rcx
jne 0x14001d6b4
mov rcx, r14
call fcn.14000ed90
mov eax, r15d
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.14006df60
add rsp, 0x360
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret