Function at 0x140035da0
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 [0x1401858e0]
xor rax, rsp
mov qword [rsp + 0x350], rax
movzx r15d, byte [reloc.WS2_32.dll_accept]
xor r14d, r14d
mov rbx, qword [0x1401965d0]
xor r12b, r12b
mov rsi, qword [0x140196160]
or rax, 0xffffffffffffffff
mov rdi, rcx
mov rcx, rax
inc rcx
cmp byte [rsi + rcx], r14b
jne 0x140035df1
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], r14b
jne 0x140035e00
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 0x1400361d4
mov r9, rbx
lea rdx, str._id_:_2___method_:__mining.authorize____params_:____s_____s__
mov r8, rsi
mov rcx, rax
call fcn.140029290
cmp byte [0x1401965d9], r14b
je 0x140035e54
mov r8, rbp
lea rdx, [0x140174018]
mov ecx, 4
call fcn.140033bd0
lea rcx, [rdi + 0x30]
call fcn.1400ca5e0
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call fcn.140034e70
lea rcx, [rdi + 0x30]
movzx ebx, al
call fcn.1400cabc0
test bl, bl
jne 0x140035e85
lea rdx, str.Error:_couldnt_send_stratum_authorization_request
jmp 0x140036173
mov rcx, rdi
call fcn.140035030
mov rbx, rax
test rax, rax
je 0x14003617a
nop dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.140037950
mov rcx, rbx
test al, al
je 0x140035ecd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call fcn.140035030
mov rbx, rax
test rax, rax
jne 0x140035ea0
jmp 0x14003617a
lea r8, [rsp + 0x40]
xor edx, edx
call fcn.1401110d0
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x140035f0a
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.140033bd0
jmp 0x14003617a
lea rdx, [0x140173494]
mov rcx, r14
call fcn.140112820
mov rcx, rax
call fcn.140112750
cmp rax, 2
je 0x140035f38
lea rdx, str.Stratum_authorize_answer_id_is_not_correct_
mov ecx, 1
call fcn.140033bd0
lea rdx, str.result
mov rcx, r14
call fcn.140112820
lea rdx, str.error
mov rcx, r14
mov rbx, rax
call fcn.140112820
test rbx, rbx
je 0x14003613a
cmp dword [rbx], 6
je 0x14003613a
test rax, rax
je 0x140035f79
cmp dword [rax], 7
jne 0x14003613a
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 0x14003617a
lea rdx, str._id_:_3___method_:__mining.extranonce.subscribe____params_:___
mov rcx, rbp
call fcn.140029290
cmp byte [0x1401965d9], 0
je 0x140035fc0
mov r8, rbp
lea rdx, [0x140174018]
mov ecx, 4
call fcn.140033bd0
lea rcx, [rdi + 0x30]
call fcn.1400ca5e0
mov rcx, qword [rdi + 0x18]
mov rdx, rbp
call fcn.140034e70
lea rcx, [rdi + 0x30]
movzx ebx, al
call fcn.1400cabc0
test bl, bl
je 0x14003617a
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 0x140036051
cmp byte [0x1401965da], 0
je 0x14003617a
lea rdx, str.stratum_extranonce_subscribe_timed_out
mov ecx, 4
call fcn.140033bd0
jmp 0x14003617a
mov rcx, rdi
call fcn.140035030
mov rsi, rax
test rax, rax
je 0x14003617a
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rax
call fcn.1401110d0
mov rbx, rax
test rax, rax
jne 0x1400360a6
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
lea ecx, [rax + 1]
call fcn.140033bd0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14003617a
lea rdx, [0x140173494]
mov rcx, rbx
call fcn.140112820
mov rcx, rax
call fcn.140112750
cmp rax, 3
je 0x1400360e0
mov rdx, rsi
mov rcx, rdi
call fcn.140037950
test al, al
jne 0x140036113
lea rdx, str.Stratum_extranonce_answer_id_was_not_correct_
mov ecx, 1
jmp 0x14003610e
lea rdx, str.result
mov rcx, rbx
call fcn.140112820
cmp byte [0x1401965da], 0
je 0x140036113
test rax, rax
je 0x140036102
cmp dword [rax], 6
jne 0x140036113
lea rdx, str.extranonce_subscribe_not_supported
mov ecx, 4
call fcn.140033bd0
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14003612f
sub rax, 1
mov qword [rbx + 8], rax
jne 0x14003612f
mov rcx, rbx
call fcn.140112620
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14003617a
test rax, rax
je 0x14003616c
cmp dword [rax], 1
jne 0x14003616c
mov edx, 1
mov rcx, rax
call fcn.140112530
mov rcx, rax
call fcn.140112ac0
mov r8, rax
lea rdx, str.Stratum_authentication_failed___s_
xor ecx, ecx
call fcn.140033bd0
jmp 0x14003617a
lea rdx, str.Stratum_authentication_failed
xor ecx, ecx
call fcn.140033bd0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x1400361a4
mov rcx, qword [r14 + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400361a4
sub rcx, 1
mov qword [r14 + 8], rcx
jne 0x1400361a4
mov rcx, r14
call fcn.140112620
movzx eax, r12b
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1401150e0
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.140033bd0
mov ecx, 2
call fcn.1400293d0
int3