Function at 0x66c530
Capabilities:
Get system information on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
lea rbp, [0x00671f80]
lea rdi, str.a:b:Bc:CDf:hK:m:n:N:p:Px:qr:R:s:t:T:o:u:O:V
mov ebx, ecx
mov rsi, rdx
call fcn.00663fa0
xor edx, edx
lea rcx, [0x006fa230]
call fcn.00639080
lea rcx, str._n___________cpuminer_opt_3.23.3____n
call fcn.00630b00
lea rcx, str._____A_CPU_miner_with_multi_algo_support_and_optimized_for_CPUs_n
call fcn.00630b00
lea rcx, str._____with_AVX512__SHA_and_VAES_extensions_by_JayDDee._n
call fcn.00630b00
lea rcx, str._____BTC_donation_address:_12tdvfF7KmAsihBXQXynT6E6th2c2pByTT_n_n
call fcn.00630b00
lea rcx, [0x00670672]
call sub.msvcrt.dll__strdup
lea rcx, [0x00670672]
mov qword [0x006fa240], rax
call sub.msvcrt.dll__strdup
lea rcx, [rsp + 0x40]
mov qword [0x006f9c98], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov edx, 1
mov r12, qword [0x006d04f0]
test eax, eax
cmovle eax, edx
mov dword [0x0066e05c], eax
mov dword [0x006e3118], eax
jmp 0x66c5f9
mov rdx, qword [r12]
call fcn.00409490
mov ecx, ebx
mov r9, rbp
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call fcn.00666630
mov ecx, eax
test eax, eax
jns 0x66c5f0
mov rax, qword [0x006d0500]
movsxd rax, dword [rax]
cmp ebx, eax
jg 0x66cfc3
mov ecx, dword [0x006e3130]
test ecx, ecx
je 0x66cf99
mov edx, dword [0x006e36e4]
test edx, edx
je 0x66ca9f
mov eax, dword [0x006e36ec]
test eax, eax
jne 0x66cada
lea rdx, [0x006fa180]
call fcn.004135b0
test al, al
je 0x66cf6e
xor ecx, ecx
call fcn.00401e50
test al, al
je 0x66cf6e
cmp byte [0x006e313a], 0
je 0x66ca67
cmp qword [0x006e3100], 0
je 0x66cd25
mov r8, qword [0x006f9c80]
test r8, r8
je 0x66c6c1
movsxd rdx, dword [0x0066e054]
lea rcx, [0x006e36b0]
call fcn.0040c6b0
mov qword [0x006e36a8], rax
test rax, rax
je 0x66cabb
lea r12, [0x006fa238]
xor edx, edx
mov rcx, r12
call fcn.00639080
xor edx, edx
lea rcx, [0x006f9c90]
call fcn.0063fb20
xor edx, edx
lea rcx, [0x006f9df0]
call fcn.00639080
xor edx, edx
lea rcx, [0x006fa140]
call fcn.00639080
cmp byte [0x006e313a], 0
je 0x66cb15
mov ecx, 3
call qword [sym.imp.libcurl_4.dll_curl_global_init]
test eax, eax
jne 0x66caf9
mov edx, 1
lea rcx, [0x00404220]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp byte [0x006e36f0], 0
jne 0x66cb98
mov eax, dword [0x006e3110]
test eax, eax
jle 0x66c768
dec eax
mov r13d, 0x20
cmp eax, 4
jbe 0x66cbb7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ebx, dword [0x0066e05c]
cmp dword [0x006e3118], ebx
mov esi, ebx
cmovge esi, dword [0x006e3118]
movsxd rcx, esi
shl rcx, 2
call sub.msvcrt.dll_malloc
mov qword [0x006e3420], rax
mov r10, rax
test rax, rax
je 0x66cf78
mov r8, qword [0x0066e060]
test r8, r8
je 0x66c817
test esi, esi
jle 0x66cf2c
lea eax, [rsi - 1]
mov r11d, dword [0x0066e05c]
xor ecx, ecx
xor r9d, r9d
lea rsi, [r10 + rax*4 + 4]
jmp 0x66c7d2
inc ecx
bt r8, rcx
jae 0x66c7d0
mov eax, ecx
cdq
idiv ebx
xor eax, eax
cmp r11d, ecx
mov ebx, r11d
setg al
add r10, 4
inc ecx
add r9d, eax
mov dword [r10 - 4], edx
cmp rsi, r10
jne 0x66c7d2
mov r8d, dword [0x006e3118]
cmp r8d, r9d
jg 0x66cbd6
cmp byte [0x006e3135], 0
je 0x66cbec
movsxd r13, dword [0x006e3118]
mov edx, pe_nt_image_headers64
mov rcx, r13
mov rsi, r13
call sub.msvcrt.dll_calloc
mov qword [0x006e30e0], rax
test rax, rax
je 0x66ca4c
lea ecx, [r13 + 4]
mov edx, 0x50
movsxd rcx, ecx
call sub.msvcrt.dll_calloc
mov qword [0x006fa228], rax
mov rbx, rax
test rax, rax
je 0x66ca4c
mov edx, 8
mov rcx, r13
call sub.msvcrt.dll_calloc
mov qword [0x006fa250], rax
test rax, rax
je 0x66ca4c
mov dword [0x006f9ca0], r13d
imul r13, r13, 0x50
add r13, rbx
mov dword [r13], esi
call fcn.00410ab0
mov qword [r13 + 0x20], rax
test rax, rax
je 0x66ca4c
mov rcx, qword [0x006f9c98]
test rcx, rcx
je 0x66c8e5
mov r14, qword [0x006fa240]
test r14, r14
je 0x66c8e5
lea rdx, str.stats
call sub.msvcrt.dll_strstr
mov r8, rax
mov eax, 1
test r8, r8
je 0x66cd09
mov byte [0x006e30d9], al
and byte [0x006e30d9], 1
mov rcx, r13
lea rdx, [0x00406ec0]
call fcn.00403830
mov r13d, eax
test eax, eax
jne 0x66cd88
cmp byte [0x006e3139], 0
je 0x66c96a
cmp byte [0x006e3137], 0
jne 0x66cc70
cmp byte [0x006e313d], 0
jne 0x66cf16
mov eax, dword [0x006e3118]
inc eax
movsxd r14, eax
mov dword [0x0066e050], eax
imul r14, r14, 0x50
add r14, qword [0x006fa228]
mov dword [r14], eax
call fcn.00410ab0
mov qword [r14 + 0x20], rax
test rax, rax
je 0x66ca4c
lea rdx, [0x00403bd0]
mov rcx, r14
call fcn.00403830
test eax, eax
jne 0x66cec0
cmp byte [0x006e3137], 0
jne 0x66cc70
cmp byte [0x006e3620], 0
je 0x66c9e3
cmp byte [0x006e313d], 0
jne 0x66ceaa
mov eax, dword [0x006e3118]
add eax, 3
movsxd r14, eax
mov dword [0x0066e048], eax
imul r14, r14, 0x50
add r14, qword [0x006fa228]
mov dword [r14], eax
call fcn.00410ab0
mov qword [r14 + 0x20], rax
test rax, rax
je 0x66ca4c
lea rdx, [0x00412dd0]
mov rcx, r14
call fcn.00403830
test eax, eax
jne 0x66cf50
cmp byte [0x006e3135], 0
je 0x66cef2
mov rcx, r12
call fcn.0063bc90
cmp dword [0x006e3118], 0
jle 0x66cda4
xor ebx, ebx
xor esi, esi
lea rdi, [0x006fa228]
lea rbp, [0x004050b0]
jmp 0x66ca35
mov rdx, rbp
mov rcx, r14
call fcn.00403830
test eax, eax
jne 0x66ce6c
inc ebx
add rsi, 0x50
cmp dword [0x006e3118], ebx
jle 0x66cda4
mov r14, qword [rdi]
add r14, rsi
mov dword [r14], ebx
call fcn.00410ab0
mov qword [r14 + 0x20], rax
test rax, rax
jne 0x66ca10
mov r13d, 1
mov eax, r13d
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp qword [0x006e30f8], 0
jne 0x66c684
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.0066c180]
lea rdx, str._s:_no_URL_supplied_n
mov rcx, rax
mov r8, rbx
call fcn.00630ad0
mov ecx, 1
call fcn.004092e0
cmp byte [0x006e3137], 0
je 0x66cb80
mov dword [0x006e36e4], 0x1e
jmp 0x66c646
mov r8, qword [0x006f9c80]
mov ecx, 1
lea rdx, str.Invalid_coinbase_address:__s
call fcn.0040ab00
xor ecx, ecx
call sub.msvcrt.dll_exit
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
add eax, dword [0x006e36ec]
mov ecx, dword [0x006e3130]
mov dword [0x006e36e8], eax
jmp 0x66c654
lea rdx, [0x00670f20]
mov ecx, 1
mov r13d, 1
call fcn.0040ab00
jmp 0x66ca52
mov rcx, qword [0x006e3108]
mov rbx, qword [sym.imp.msvcrt.dll__strnicmp]
mov r8d, 6
lea rdx, str.https:
call rbx
test eax, eax
je 0x66c709
mov rcx, qword [0x006e3108]
mov r8d, 0xe
lea rdx, str.stratumssl:__
call rbx
test eax, eax
je 0x66c709
mov rcx, qword [0x006e3108]
mov r8d, 0xf
lea rdx, str.stratumtcps:__
call rbx
mov ecx, 2
test eax, eax
jne 0x66c70e
jmp 0x66c709
cmp byte [0x006e3138], 0
je 0x66cbc7
mov dword [0x006e36e4], 0x3c
jmp 0x66c646
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
test rax, rax
je 0x66ce8b
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x66c73b
lea rdx, [0x00671be0]
mov r13d, dword [rdx + rax*4]
jmp 0x66c756
mov dword [0x006e36e4], 5
jmp 0x66c646
lea rdx, str.Affinity:_more_threads___d__than_active_CPUs___d_
mov ecx, 2
call fcn.0040ab00
jmp 0x66c80a
mov eax, dword [0x0066e05c]
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rcx, qword [0x0066e060]
cmp eax, 0x40
cmovle r9d, eax
xor edx, edx
test eax, eax
jle 0x66cf66
nop dword [rax]
mov rax, rcx
and eax, 1
cmp rax, 1
sbb eax, eax
shr rcx, 1
and eax, 0xd
add eax, 0x21
mov byte [r8 + rdx], al
inc rdx
cmp r9d, edx
jg 0x66cc18
test r9d, r9d
mov eax, 1
cmovle r9d, eax
movsxd rdx, r9d
mov ecx, 0x40
xor eax, eax
add rdx, r8
sub ecx, r9d
mov rdi, rdx
lea rdx, str.CPU_affinity___s_
rep stosb byte [rdi], al
mov ecx, 4
call fcn.0040ab00
jmp 0x66c817
cmp byte [0x006e313d], 0
jne 0x66cedc
mov eax, dword [0x006e3118]
mov byte [0x006fa14c], 0
add eax, 2
movsxd r14, eax
mov dword [0x0066e04c], eax
imul r14, r14, 0x50
add r14, qword [0x006fa228]
mov dword [r14], eax
call fcn.00410ab0
mov qword [r14 + 0x20], rax
test rax, rax
je 0x66ca4c
lea rdx, [0x00406990]
mov rcx, r14
call fcn.00403830
test eax, eax
jne 0x66cf34
cmp byte [0x006e3137], 0
je 0x66c977
mov rcx, qword [0x006e3108]
call sub.msvcrt.dll__strdup
mov rdx, rax
movsxd rax, dword [0x0066e04c]
imul rax, rax, 0x50
add rax, qword [0x006fa228]
mov rcx, qword [rax + 0x20]
call fcn.00410c00
jmp 0x66c977
lea rdx, str.benchmark
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
jmp 0x66c8d8
mov rbp, qword [0x006fa240]
or r8, 0xffffffffffffffff
xor eax, eax
mov r12, qword [0x006f9c98]
mov rcx, r8
mov rdi, rbp
repne scasb al, byte [rdi]
mov rdi, r12
mov rdx, rcx
mov rcx, r8
repne scasb al, byte [rdi]
not rdx
mov rax, rcx
not rax
lea rcx, [rdx + rax]
call sub.msvcrt.dll_malloc
mov qword [0x006e3100], rax
mov rcx, rax
test rax, rax
je 0x66ca4c
mov r9, r12
mov r8, rbp
lea rdx, str._s:_s
call sub.msvcrt.dll_sprintf
jmp 0x66c692
lea rdx, str.work_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ab00
jmp 0x66ca52
mov r8d, 0x2c0
xor edx, edx
lea rcx, [0x006e3160]
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [0x006e3140]
call fcn.00666710
mov rax, qword [0x006e3140]
mov rcx, r12
mov qword [0x006e3610], rax
mov qword [0x006e3618], rax
mov qword [0x006e36d8], rax
mov qword [0x006e36d0], rax
mov qword [0x006e30a8], rax
call fcn.0063cbc0
mov edx, dword [0x006e3130]
lea rax, [0x006747a0]
mov r9d, dword [0x0066e05c]
mov r8d, dword [0x006e3118]
mov ecx, 4
mov rax, qword [rax + rdx*8]
lea rdx, str._d_of__d_miner_threads_started_using__s_algorithm
mov qword [rsp + 0x20], rax
call fcn.0040ab00
movsxd rax, dword [0x006f9ca0]
lea rcx, [rsp + 0x30]
xor edx, edx
imul rax, rax, 0x50
add rax, qword [0x006fa228]
vmovdqu xmm0, xmmword [rax + 8]
vmovups xmmword [rsp + 0x30], xmm0
call fcn.006445b0
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 2
call fcn.0040ab00
jmp 0x66ca52
mov r8d, ebx
lea rdx, str.Miner_thread__d_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ab00
jmp 0x66ca52
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
jmp 0x66c73b
lea rdx, str.Creating_API_thread
mov ecx, 4
call fcn.0040ab00
jmp 0x66c98d
lea rdx, str.Long_poll_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ab00
jmp 0x66ca52
lea rdx, str.Creating_stratum_thread
mov ecx, 4
call fcn.0040ab00
jmp 0x66cc7d
mov r9d, dword [0x006e304c]
mov r8, qword [0x006e3050]
mov ecx, 4
lea rdx, str.API_listening_to__s:_d
call fcn.0040ab00
jmp 0x66c9e3
lea rdx, str.Creating_long_poll_thread
mov ecx, 4
call fcn.0040ab00
jmp 0x66c922
xor r9d, r9d
jmp 0x66c7fa
lea rdx, str.Stratum_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ab00
jmp 0x66ca52
lea rdx, str.API_thread_create_failed
mov ecx, 1
call fcn.0040ab00
jmp 0x66ca4c
xor r9d, r9d
jmp 0x66cc45
mov ecx, 1
call sub.msvcrt.dll_exit
lea rdx, str.CPU_Affinity_disabled__memory_allocation_failed
mov ecx, 1
call fcn.0040ab00
mov qword [0x0066e060], 0
jmp 0x66c817
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.0066c180]
lea rdx, str._s:_No_algo_parameter_specified_n
mov rcx, rax
mov r8, rbx
call fcn.00630ad0
mov ecx, 1
call fcn.004092e0
mov rdi, qword [rsi + rax*8]
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.0066c180]
lea rdx, str._s:_unsupported_non_option_argument_____s_n
mov rcx, rax
mov r9, rdi
mov r8, rbx
call fcn.00630ad0
mov ecx, 1
call fcn.004092e0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub rsp, 0x28
lea rcx, [0x006edac0]
call fcn.00663ee8
lea rcx, [0x0051bcd0]
add rsp, 0x28
jmp fcn.00401520