Function at 0x1400354a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x14017f8e0]
xor rax, rsp
mov qword [rsp + 0x350], rax
movzx r15d, byte [reloc.WS2_32.dll_accept]
xor r14d, r14d
mov rbx, qword [0x140190380]
xor r12b, r12b
mov rsi, qword [0x14018ffa0]
or rax, 0xffffffffffffffff
mov rdi, rcx
mov rcx, rax
inc rcx
cmp byte [rbx + rcx], r14b
jne 0x1400354f1
nop word [rax + rax]
inc rax
cmp byte [rsi + rax], r14b
jne 0x140035500
add rax, 0x50
add rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x1400358a2
mov r9, rbx
lea rdx, str._id_:_2___method_:__mining.authorize____params_:____s_____s__
mov r8, rsi
mov rcx, rax
call fcn.140029280
cmp byte [0x140190371], r14b
je 0x140035554
mov r8, rbp
lea rdx, [0x14016e328]
mov ecx, 4
call fcn.140033450
lea rcx, [rdi + 0x30]
call fcn.1400c6570
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call fcn.140034580
lea rcx, [rdi + 0x30]
movzx ebx, al
call fcn.1400c6b50
test bl, bl
jne 0x140035585
lea rdx, str.Error:_couldnt_send_stratum_authorization_request
jmp 0x140035841
mov rcx, rdi
call fcn.140034740
mov rbx, rax
test rax, rax
je 0x140035848
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.140037020
mov rcx, rbx
test al, al
je 0x1400355cd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.140034740
mov rbx, rax
test rax, rax
jne 0x1400355a0
jmp 0x140035848
lea r8, [rsp + 0x40]
xor edx, edx
call fcn.14010d050
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x14003560a
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.140033450
jmp 0x140035848
lea rdx, [0x14016d844]
mov rcx, r14
call fcn.14010e800
mov rcx, rax
call fcn.14010e730
cmp rax, 2
je 0x140035638
lea rdx, str.Stratum_authorize_answer_id_is_not_correct_
mov ecx, 1
call fcn.140033450
lea rdx, str.result
mov rcx, r14
call fcn.14010e800
lea rdx, str.error
mov rcx, r14
mov rbx, rax
call fcn.14010e800
test rbx, rbx
je 0x14003583a
cmp dword [rbx], 6
je 0x14003583a
test rax, rax
je 0x140035679
cmp dword [rax], 7
jne 0x14003583a
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rdi + 0xe8], rax
mov r12b, 1
test r15b, r15b
je 0x140035848
lea rdx, str._id_:_3___method_:__mining.extranonce.subscribe____params_:___
mov rcx, rbp
call fcn.140029280
cmp byte [0x140190371], 0
je 0x1400356c0
mov r8, rbp
lea rdx, [0x14016e328]
mov ecx, 4
call fcn.140033450
lea rcx, [rdi + 0x30]
call fcn.1400c6570
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call fcn.140034580
lea rcx, [rdi + 0x30]
movzx ebx, al
call fcn.1400c6b50
test bl, bl
je 0x140035848
mov rax, qword [rdi + 0x18]
lea rdx, [rsp + 0x140]
mov qword [rsp + 0x148], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x30], 0xa
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 0x140035751
cmp byte [0x140190372], 0
je 0x140035848
lea rdx, str.stratum_extranonce_subscribe_timed_out
mov ecx, 4
call fcn.140033450
jmp 0x140035848
mov rcx, rdi
call fcn.140034740
mov rsi, rax
test rax, rax
je 0x140035848
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.14010d050
mov rbx, rax
test rax, rax
jne 0x1400357a6
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
lea ecx, [rax + 1]
call fcn.140033450
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140035848
lea rdx, [0x14016d844]
mov rcx, rbx
call fcn.14010e800
mov rcx, rax
call fcn.14010e730
cmp rax, 3
je 0x1400357e0
mov rdx, rsi
mov rcx, rdi
call fcn.140037020
test al, al
jne 0x140035813
lea rdx, str.Stratum_extranonce_answer_id_was_not_correct_
mov ecx, 1
jmp 0x14003580e
lea rdx, str.result
mov rcx, rbx
call fcn.14010e800
cmp byte [0x140190372], 0
je 0x140035813
test rax, rax
je 0x140035802
cmp dword [rax], 6
jne 0x140035813
lea rdx, str.extranonce_subscribe_not_supported
mov ecx, 4
call fcn.140033450
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14003582f
sub rax, 1
mov qword [rbx + 8], rax
jne 0x14003582f
mov rcx, rbx
call fcn.14010e600
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140035848
lea rdx, str.Stratum_authentication_failed
xor ecx, ecx
call fcn.140033450
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x140035872
mov rcx, qword [r14 + 8]
cmp rcx, 0xffffffffffffffff
je 0x140035872
sub rcx, 1
mov qword [r14 + 8], rcx
jne 0x140035872
mov rcx, r14
call fcn.14010e600
movzx eax, r12b
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140111120
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Out_of_memory_
xor ecx, ecx
call fcn.140033450
mov ecx, 2
call fcn.1400293c0
int3