Function at 0x410a00
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x368
mov rsi, r8
mov r12, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_strlen
mov rcx, rsi
mov rdi, rax
call sub.msvcrt.dll_strlen
lea rcx, [rdi + rax + 0x50]
call sub.msvcrt.dll_malloc
mov rcx, rax
mov r9, rsi
mov r8, rbx
lea rdx, str._id_:_2___method_:__mining.authorize____params_:____s_____s__
mov r13, rax
call sub.msvcrt.dll_sprintf
mov rax, qword [0x0074c480]
cmp byte [rax], 0
jne 0x410b00
lea rbx, [r12 + 0x130]
mov rcx, rbx
lea rsi, [r12 + 8]
lea rdi, [r12 + 0x118]
mov qword [rsp + 0x30], rbx
call fcn.006b8320
mov rcx, rsi
mov r8, r13
mov rdx, rdi
call fcn.0040a820
mov r14d, eax
mov rcx, rbx
call fcn.006b9250
test r14b, r14b
jne 0x410abf
jmp 0x410ae0
mov rdx, rax
mov rcx, r12
call fcn.0040e9d0
test al, al
je 0x410b20
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.0040dba0
mov r15, rax
test rax, rax
jne 0x410aa8
mov rcx, r13
call sub.msvcrt.dll_free
xor r14d, r14d
jmp 0x410ae8
mov rcx, r13
call sub.msvcrt.dll_free
mov eax, r14d
add rsp, 0x368
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, r13
lea rdx, [0x006f017e]
mov ecx, 5
call fcn.0040aa80
jmp 0x410a61
lea rbp, [rsp + 0x50]
xor edx, edx
mov rcx, r15
mov r8, rbp
call fcn.006b0a80
mov rbx, rax
mov rcx, r15
call sub.msvcrt.dll_free
test rbx, rbx
je 0x410d04
lea rdx, str.result
mov rcx, rbx
call fcn.006b1ae0
lea rdx, str.error
mov rcx, rbx
mov qword [rsp + 0x38], rax
call fcn.006b1ae0
mov r8, qword [rsp + 0x38]
test r8, r8
je 0x410cc0
cmp dword [r8], 6
je 0x410cc0
test rax, rax
je 0x410b8f
cmp dword [rax], 7
jne 0x410cc0
mov rax, qword [0x0074c420]
cmp byte [rax], 0
je 0x410cd4
movabs rax, 0x33203a226469227b
mov qword [r13], rax
movabs rax, 0x6e696d22203a2264
mov qword [r13 + 0x10], rax
movabs rax, 0x732e65636e6f6e61
movabs rdx, 0x6f6874656d22202c
mov qword [r13 + 0x20], rax
movabs rax, 0x6172617022202c22
mov qword [r13 + 8], rdx
mov qword [r13 + 0x30], rax
movabs rdx, 0x727478652e676e69
mov rax, qword [0x0074c480]
mov qword [r13 + 0x18], rdx
movabs rdx, 0x6562697263736275
mov qword [r13 + 0x28], rdx
cmp byte [rax], 0
movabs rdx, 0x7d5d5b203a22736d
mov qword [r13 + 0x38], rdx
mov byte [r13 + 0x40], 0
jne 0x410d32
mov r15, qword [rsp + 0x30]
mov rcx, r15
call fcn.006b8320
mov rcx, rsi
mov r8, r13
mov rdx, rdi
call fcn.0040a820
mov esi, eax
mov rcx, r15
call fcn.006b9250
test sil, sil
je 0x410cd4
mov rax, qword [r12 + 0x118]
mov qword [rsp + 0x48], 3
mov qword [rsp + 0x158], rax
lea ecx, [rax + 1]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov dword [rsp + 0x150], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x410d4b
lea rdx, str.Extranonce_disabled__subscribe_timed_out
mov ecx, 2
call fcn.0040aec0
mov rax, qword [0x0074c420]
mov r14d, esi
mov byte [rax], 0
jmp 0x410cd4
lea rdx, str.Stratum_authentication_failed
mov ecx, 1
call fcn.0040a8f0
xor r14d, r14d
mov rcx, r13
call sub.msvcrt.dll_free
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x410ae8
dec rax
mov qword [rbx + 8], rax
jne 0x410ae8
mov rcx, rbx
call fcn.006b2260
jmp 0x410ae8
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0xac]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, 1
call fcn.0040a8f0
mov rcx, r13
call sub.msvcrt.dll_free
xor r14d, r14d
jmp 0x410ae8
mov r8, r13
lea rdx, [0x006f017e]
mov ecx, 5
call fcn.0040aa80
jmp 0x410c24
mov rcx, r12
call fcn.0040dba0
mov r15, rax
test rax, rax
je 0x410cd4
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.006b0a80
mov r14, rax
test rax, rax
je 0x410dc3
mov rcx, rax
lea rdx, [0x006f0395]
call fcn.006b1ae0
mov rcx, rax
call fcn.006b2050
cmp rax, 3
je 0x410de3
mov rdx, r15
mov rcx, r12
call fcn.0040e9d0
test al, al
je 0x410e1b
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x410db3
dec rax
mov qword [r14 + 8], rax
je 0x410e31
mov rcx, r15
call sub.msvcrt.dll_free
mov r14d, esi
jmp 0x410cd4
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0xac]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, 2
call fcn.0040aec0
jmp 0x410db3
lea rdx, str.result
mov rcx, r14
call fcn.006b1ae0
mov rdx, qword [0x0074c410]
cmp byte [rdx], 0
je 0x410da0
test rax, rax
je 0x410e08
cmp dword [rax], 6
jne 0x410da0
lea rdx, str.Method_extranonce.subscribe_is_not_supported
mov ecx, 5
call fcn.0040aa80
jmp 0x410da0
lea rdx, str.Stratum_answer_id_is_not_correct_
mov ecx, 2
call fcn.0040aec0
jmp 0x410da0
mov rcx, r14
call fcn.006b2260
jmp 0x410db3