Function at 0x14006b7b0
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
lea rdi, [0x14007210e]
lea rbp, str.e__a_
mov rbx, rdx
mov esi, ecx
call dbg.__main
mov rcx, rdi
call sym.strdup
mov rcx, rdi
lea rdi, str.a:c:Dhp:Px:qr:R:s:t:T:o:u:O:V
mov qword [0x1400824b8], rax
call sym.strdup
mov r12, qword [str.p._b_]
mov qword [0x1400824b0], rax
jmp 0x14006b80c
mov rdx, qword [r12]
mov r8, qword [rbx]
call sym.parse_arg
mov ecx, esi
mov r9, rbp
mov r8, rdi
mov rdx, rbx
mov qword [rsp + 0x20], 0
call dbg.getopt_long
mov ecx, eax
test eax, eax
jns 0x14006b800
mov rax, qword [0x140079460]
movsxd rax, dword [rax]
cmp esi, eax
jg 0x14006bcdd
cmp byte [0x1400824d9], 0
je 0x14006ba61
cmp qword [0x1400824c0], 0
je 0x14006bae3
xor edx, edx
lea rcx, [0x140082080]
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x140082070]
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x140082200]
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x1400820d0]
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x140082350]
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x1400823e8]
call sym.pthread_mutex_init
cmp byte [0x1400824d9], 0
je 0x14006bab4
mov ecx, 2
call qword [sym.imp.libcurl_4.dll_curl_global_init]
test eax, eax
jne 0x14006baa4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov edx, 1
test eax, eax
cmovle eax, edx
cmp dword [0x1400824d4], 0
mov dword [0x1400824d0], eax
je 0x14006ba99
mov r8d, dword [0x1400824d4]
xor edx, edx
lea rcx, [0x140082078]
call sym.pthread_barrier_init
test eax, eax
jne 0x14006bd0e
movsxd rsi, dword [0x1400824d4]
mov edx, pe_nt_image_headers64
mov rcx, rsi
mov rdi, rsi
call sym.calloc
mov qword [0x140082088], rax
test rax, rax
je 0x14006ba4f
lea ecx, [rsi + 3]
mov edx, 0x18
movsxd rcx, ecx
call sym.calloc
mov qword [0x140082090], rax
mov rbx, rax
test rax, rax
je 0x14006ba4f
mov edx, 8
mov rcx, rsi
call sym.calloc
mov qword [0x1400821f0], rax
test rax, rax
je 0x14006ba4f
mov dword [0x1400823f0], esi
imul rsi, rsi, 0x18
add rbx, rsi
mov dword [rbx], edi
call sym.tq_new
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14006ba4f
lea rcx, [rbx + 8]
mov r9, rbx
lea r8, [sym.workio_thread]
xor edx, edx
call sym.pthread_create
mov edi, eax
test eax, eax
jne 0x14006bc62
cmp byte [0x14006d01f], 0
mov r8d, dword [0x1400824d4]
jne 0x14006bb38
cmp byte [0x14006d01c], 0
jne 0x14006bbaa
test r8d, r8d
jle 0x14006bc75
xor esi, esi
xor ebp, ebp
lea r12, [sym.miner_thread]
jmp 0x14006ba0f
mov r8d, dword [0x1400824d4]
add esi, 1
add rbp, 0x18
cmp r8d, esi
jle 0x14006bc75
mov rbx, qword [0x140082090]
add rbx, rbp
mov dword [rbx], esi
call sym.tq_new
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14006ba4f
xor edx, edx
lea rcx, [rbx + 8]
mov r9, rbx
mov r8, r12
call sym.pthread_create
test eax, eax
je 0x14006b9f8
mov r8d, esi
lea rdx, str.thread__d_create_failed
xor ecx, ecx
call sym.applog
mov edi, 1
mov eax, edi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp qword [0x1400824c8], 0
jne 0x14006b84a
mov rbx, qword [rbx]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_no_URL_supplied_n
mov rcx, rax
mov r8, rbx
call sym.fprintf
mov ecx, 1
call sym.show_usage_and_exit
mov dword [0x1400824d4], eax
jmp 0x14006b8f8
lea rdx, [0x140072c66]
xor ecx, ecx
call sym.applog
jmp 0x14006ba4f
mov rcx, qword [0x1400824c8]
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov r8d, 8
lea rdx, str.https:__
call rbx
test eax, eax
jne 0x14006bc3f
mov ecx, 3
jmp 0x14006b8be
mov rsi, qword [0x1400824b8]
mov rcx, rsi
call sym.strlen
mov rdi, qword [0x1400824b0]
mov rbx, rax
mov rcx, rdi
call sym.strlen
lea rcx, [rbx + rax + 2]
call sym.malloc
mov qword [0x1400824c0], rax
mov rcx, rax
test rax, rax
je 0x14006ba4f
mov r9, rdi
mov r8, rsi
lea rdx, str._s:_s
call sym.sprintf
jmp 0x14006b858
cmp byte [0x1400820b5], 0
jne 0x14006b9d0
add r8d, 1
movsxd rbx, r8d
mov dword [0x14006d004], r8d
imul rbx, rbx, 0x18
add rbx, qword [0x140082090]
mov dword [rbx], r8d
call sym.tq_new
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14006ba4f
lea r8, [sym.longpoll_thread]
lea rcx, [rbx + 8]
mov r9, rbx
xor edx, edx
call sym.pthread_create
mov r8d, dword [0x1400824d4]
test eax, eax
je 0x14006b9d0
lea rdx, str.longpoll_thread_create_failed
xor ecx, ecx
call sym.applog
jmp 0x14006ba4f
add r8d, 2
movsxd rbx, r8d
mov dword [section..data], r8d
imul rbx, rbx, 0x18
add rbx, qword [0x140082090]
mov dword [rbx], r8d
call sym.tq_new
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14006ba4f
xor edx, edx
lea rcx, [rbx + 8]
lea r8, [sym.stratum_thread]
mov r9, rbx
call sym.pthread_create
test eax, eax
jne 0x14006bcca
cmp byte [0x1400820b5], 0
mov r8d, dword [0x1400824d4]
je 0x14006b9dd
mov rcx, qword [0x1400824c8]
call sym.strdup
movsxd rdx, dword [section..data]
imul rdx, rdx, 0x18
add rdx, qword [0x140082090]
mov rcx, qword [rdx + 0x10]
mov rdx, rax
call sym.tq_push
mov r8d, dword [0x1400824d4]
jmp 0x14006b9dd
mov rcx, qword [0x1400824c8]
mov r8d, 0xf
lea rdx, str.stratumtcps:__
call rbx
test eax, eax
je 0x14006bad9
jmp 0x14006b8b9
lea rdx, str.workio_thread_create_failed
xor ecx, ecx
call sym.applog
jmp 0x14006ba4f
mov edx, dword [0x14006d00c]
lea rax, str.scrypt
mov ecx, 3
mov r9, qword [rax + rdx*8]
lea rdx, str._d_miner_threads_started__using__s_algorithm.
call sym.applog
movsxd rax, dword [0x1400823f0]
xor edx, edx
imul rax, rax, 0x18
add rax, qword [0x140082090]
mov rcx, qword [rax + 8]
call sym.pthread_join
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 3
call sym.applog
jmp 0x14006ba54
lea rdx, str.stratum_thread_create_failed
xor ecx, ecx
call sym.applog
jmp 0x14006ba4f
mov rsi, qword [rbx + rax*8]
mov rbx, qword [rbx]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str._s:_unsupported_non_option_argument_____s_n
mov rcx, rax
mov r9, rsi
mov r8, rbx
call sym.fprintf
mov ecx, 1
call sym.show_usage_and_exit
lea rcx, str.pthread_barrier_init_failed__n
call sym.printf
mov ecx, 1
call sym.exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop