Function at 0x140320a00
Capabilities:
Get system information on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rdi, [0x140323490]
lea rbp, [0x140324f80]
mov ebx, ecx
mov rsi, rdx
call dbg.__main
xor edx, edx
lea rcx, [0x14039c060]
call sym.pthread_mutex_init
lea rcx, str._n___________cpuminer_flex_1.0____n
call sym.winansi_printf
lea rcx, str._____A_CPU_miner_with_multi_algo_support_and_optimized_for_CPUs_n
call sym.winansi_printf
lea rcx, str._____with_AVX512__SHA_and_VAES_extensions_by_JayDDee__n
call sym.winansi_printf
lea rcx, str._____modified_by_JayBitron._n
call sym.winansi_printf
lea rcx, str._____BTC_donation_address:_bc1qm83mf2l7cm3sff6prn9hqdkfs04ptfwvhz0xca_n_n
call sym.winansi_printf
mov rcx, rdi
call sym.strdup
mov rcx, rdi
lea rdi, str.a:b:Bc:CDf:hK:m:n:N:p:Px:qr:R:s:t:T:o:u:O:V
mov qword [0x14039c618], rax
call sym.strdup
lea rcx, [rsp + 0x50]
mov qword [0x14039c610], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, 1
mov eax, dword [rsp + 0x70]
mov r12, qword [0x140386da0]
test eax, eax
cmovle eax, edx
mov dword [0x14032205c], eax
mov dword [0x14039c638], eax
jmp 0x140320ad9
mov rdx, qword [r12]
call sym.parse_arg
mov ecx, ebx
mov qword [rsp + 0x20], 0
mov r9, rbp
mov r8, rdi
mov rdx, rsi
call dbg.getopt_long
mov ecx, eax
test eax, eax
jns 0x140320ad0
mov rax, qword [0x140386db0]
movsxd rax, dword [rax]
cmp ebx, eax
jg 0x1403214a4
mov ecx, dword [0x14039c650]
test ecx, ecx
je 0x140321473
mov r8d, dword [0x14039cca4]
test r8d, r8d
je 0x140320f87
mov edx, dword [0x14039ccac]
test edx, edx
jne 0x140320fc2
lea rdx, [0x14039c660]
call sym.register_algo_gate
test al, al
je 0x14032144a
xor ecx, ecx
call sym.cpu_capability
test al, al
je 0x14032144a
cmp byte [0x14039c65a], 0
je 0x140320f48
cmp qword [0x14039c620], 0
je 0x140321211
mov r8, qword [0x14039c600]
test r8, r8
je 0x140320ba3
movsxd rdx, dword [0x140322054]
lea rcx, [0x14039cc70]
call sym.address_to_script
mov qword [0x14039cc68], rax
test rax, rax
je 0x140320fa3
lea rbp, [0x14039c058]
xor edx, edx
mov rcx, rbp
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x14039c048]
call sym.pthread_rwlock_init
xor edx, edx
lea rcx, [0x14039c230]
call sym.pthread_mutex_init
xor edx, edx
lea rcx, [0x14039c580]
call sym.pthread_mutex_init
cmp byte [0x14039c65a], 0
je 0x140320ff7
mov ecx, 3
call qword [sym.imp.libcurl_4.dll_curl_global_init]
test eax, eax
jne 0x140320fe1
mov edx, 1
lea rcx, [sym.ConsoleHandler]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp byte [0x14039ccb0], 0
jne 0x14032107a
mov eax, dword [0x14039c630]
test eax, eax
jle 0x140320c48
dec eax
mov ebx, 0x20
cmp eax, 4
jbe 0x140321099
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
movsxd rcx, dword [0x14039c638]
mov edx, 1
mov rdi, rcx
call sym.calloc
mov ebx, dword [0x14032205c]
mov qword [0x14039c090], rax
cmp edi, ebx
cmovl edi, ebx
movsxd rsi, edi
shl rsi, 2
mov rcx, rsi
call sym.malloc
mov r10, rax
mov qword [0x14039c9e0], rax
test rax, rax
je 0x140321454
mov r8, qword [0x140322060]
test r8, r8
je 0x140320d05
test edi, edi
jle 0x140321406
lea r11, [rax + rsi]
xor ecx, ecx
mov esi, dword [0x14032205c]
xor r9d, r9d
jmp 0x140320cc2
inc ecx
bt r8, rcx
jae 0x140320cc0
mov eax, ecx
cdq
idiv ebx
xor eax, eax
cmp esi, ecx
mov ebx, esi
setg al
add r10, 4
inc ecx
add r9d, eax
mov dword [r10 - 4], edx
cmp r10, r11
jne 0x140320cc2
mov r8d, dword [0x14039c638]
cmp r8d, r9d
jg 0x1403210b7
cmp byte [0x14039c655], 0
je 0x1403210cd
movsxd rsi, dword [0x14039c638]
mov edx, pe_nt_image_headers64
mov rcx, rsi
mov rdi, rsi
call sym.calloc
mov qword [0x14039c5c0], rax
test rax, rax
je 0x140320f2f
lea ecx, [rsi + 4]
mov edx, 0x50
movsxd rcx, ecx
call sym.calloc
mov rbx, rax
mov qword [0x14039c5d0], rax
test rax, rax
je 0x140320f2f
mov edx, 8
mov rcx, rsi
call sym.calloc
mov qword [0x14039c0d8], rax
test rax, rax
je 0x140320f2f
mov dword [0x14039c5cc], esi
imul rsi, rsi, 0x50
add rbx, rsi
mov dword [rbx], edi
call sym.tq_new
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140320f2f
mov rcx, qword [0x14039c610]
test rcx, rcx
je 0x140320dcf
mov rsi, qword [0x14039c618]
test rsi, rsi
je 0x140320dcf
lea rdx, str.stats
call sym.strstr
mov rdx, rax
mov eax, 1
test rdx, rdx
je 0x1403211dc
mov byte [0x14039c0f9], al
and byte [0x14039c0f9], 1
lea rdx, [sym.workio_thread]
mov rcx, rbx
call sym.thread_create
mov r12d, eax
test eax, eax
jne 0x140321274
cmp byte [0x14039c659], 0
movzx eax, byte [0x14039c657]
je 0x140320e57
movzx edx, byte [0x14039c65d]
test al, al
jne 0x140321144
test dl, dl
jne 0x1403213f0
mov eax, dword [0x14039c638]
inc eax
movsxd rbx, eax
mov dword [0x140322050], eax
imul rbx, rbx, 0x50
add rbx, qword [0x14039c5d0]
mov dword [rbx], eax
call sym.tq_new
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140320f2f
lea rdx, [sym.longpoll_thread]
mov rcx, rbx
call sym.thread_create
test eax, eax
jne 0x1403213a0
cmp byte [0x14039c657], 0
jne 0x140321144
cmp byte [0x14039cbe0], 0
je 0x140320ecf
cmp byte [0x14039c65d], 0
jne 0x14032138a
mov eax, dword [0x14039c638]
add eax, 3
movsxd rbx, eax
mov dword [0x140322048], eax
imul rbx, rbx, 0x50
add rbx, qword [0x14039c5d0]
mov dword [rbx], eax
call sym.tq_new
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140320f2f
mov rdx, qword [sym.api_thread]
mov rcx, rbx
call sym.thread_create
test eax, eax
jne 0x140321424
cmp byte [0x14039c655], 0
je 0x1403213cc
mov rcx, rbp
xor esi, esi
xor edi, edi
lea r13, [sym.miner_thread]
call sym.pthread_mutex_lock
cmp dword [0x14039c638], 0
jg 0x140320f15
jmp 0x14032128a
mov rdx, r13
mov rcx, rbx
call sym.thread_create
test eax, eax
jne 0x140321352
inc esi
add rdi, 0x50
cmp dword [0x14039c638], esi
jle 0x14032128a
mov rbx, qword [0x14039c5d0]
add rbx, rdi
mov dword [rbx], esi
call sym.tq_new
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140320ef0
mov r12d, 1
mov eax, r12d
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp qword [0x14039c608], 0
jne 0x140320b66
mov r8, qword [rsi]
mov ecx, 2
mov qword [rsp + 0x30], r8
call qword [dbg.__acrt_iob_func]
mov r8, qword [rsp + 0x30]
lea rdx, str._s:_no_URL_supplied_n
mov rcx, rax
call sym.winansi_fprintf
mov ecx, 1
call sym.show_usage_and_exit
cmp byte [0x14039c657], 0
je 0x140321062
mov dword [0x14039cca4], 0x1e
jmp 0x140320b28
mov r8, qword [0x14039c600]
mov ecx, 1
lea rdx, str.Invalid_coinbase_address:__s
call sym.applog
xor ecx, ecx
call sym.exit
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
add eax, dword [0x14039ccac]
mov ecx, dword [0x14039c650]
mov dword [0x14039cca8], eax
jmp 0x140320b36
lea rdx, [0x140323f10]
mov ecx, 1
call sym.applog
jmp 0x140320f2f
mov rcx, qword [0x14039c628]
mov rbx, qword [sym.imp.msvcrt.dll__strnicmp]
mov r8d, 6
lea rdx, str.https:
call rbx
test eax, eax
je 0x140320beb
mov rcx, qword [0x14039c628]
mov r8d, 0xe
lea rdx, str.stratumssl:__
call rbx
test eax, eax
je 0x140320beb
mov rcx, qword [0x14039c628]
mov r8d, 0xf
lea rdx, str.stratumtcps:__
call rbx
test eax, eax
je 0x140320beb
mov ecx, 2
jmp 0x140320bf0
cmp byte [0x14039c658], 0
je 0x1403210a8
mov dword [0x14039cca4], 0x3c
jmp 0x140320b28
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14032136b
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140320c1d
lea rdx, [0x140324bf0]
mov ebx, dword [rdx + rax*4]
jmp 0x140320c37
mov dword [0x14039cca4], 5
jmp 0x140320b28
lea rdx, str.Affinity:_more_threads___d__than_active_CPUs___d_
mov ecx, 2
call sym.applog
jmp 0x140320cf8
mov eax, dword [0x14032205c]
mov r9d, 0x40
mov rdx, qword [0x140322060]
cmp eax, r9d
cmovle r9d, eax
test eax, eax
jle 0x14032143a
xor eax, eax
lea r8, [rsp + 0x80]
nop dword [rax]
test dl, 1
jne 0x1403211f8
mov byte [r8 + rax], 0x2e
inc rax
shr rdx, 1
cmp r9d, eax
jg 0x140321100
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 sym.applog
jmp 0x140320d05
cmp byte [0x14039c65d], 0
jne 0x1403213b6
mov eax, dword [0x14039c638]
mov byte [0x14039c58c], 0
add eax, 2
movsxd rbx, eax
mov dword [0x14032204c], eax
imul rbx, rbx, 0x50
add rbx, qword [0x14039c5d0]
mov dword [rbx], eax
call sym.tq_new
mov qword [rbx + 0x20], rax
test rax, rax
je 0x140320f2f
lea rdx, [sym.stratum_thread]
mov rcx, rbx
call sym.thread_create
test eax, eax
jne 0x14032140e
cmp byte [0x14039c657], 0
je 0x140320e64
mov rcx, qword [0x14039c628]
call sym.strdup
movsxd rdx, dword [0x14032204c]
imul rdx, rdx, 0x50
add rdx, qword [0x14039c5d0]
mov rcx, qword [rdx + 0x20]
mov rdx, rax
call sym.tq_push
jmp 0x140320e64
lea rdx, str.benchmark
mov rcx, rsi
call sym.strcmp
test eax, eax
sete al
movzx eax, al
jmp 0x140320dc2
mov byte [r8 + rax], 0x21
inc rax
shr rdx, 1
cmp r9d, eax
jg 0x140321100
jmp 0x140321119
mov r8, qword [0x14039c618]
mov rcx, r8
mov qword [rsp + 0x38], r8
call sym.strlen
mov r9, qword [0x14039c610]
mov rbx, rax
mov rcx, r9
mov qword [rsp + 0x30], r9
call sym.strlen
lea rcx, [rbx + rax + 2]
call sym.malloc
mov rcx, rax
mov qword [0x14039c620], rax
test rax, rax
je 0x140320f2f
mov r9, qword [rsp + 0x30]
lea rdx, str._s:_s
mov r8, qword [rsp + 0x38]
call sym.sprintf
jmp 0x140320b74
lea rdx, str.work_thread_create_failed
mov ecx, 1
call sym.applog
jmp 0x140320f2f
mov r8d, 0x2c0
xor edx, edx
lea rcx, [0x14039c720]
call sym.memset
xor edx, edx
lea rcx, [0x14039c708]
call dbg.gettimeofday
mov rax, qword [0x14039c708]
mov rcx, rbp
mov qword [0x14039cbd0], rax
mov qword [0x14039cbd8], rax
mov qword [0x14039cc98], rax
mov qword [0x14039cc90], rax
mov qword [0x14039c0c0], rax
call sym.pthread_mutex_unlock
lea rax, [0x1403277e0]
mov ecx, 4
mov edx, dword [0x14039c650]
mov r9d, dword [0x14032205c]
mov r8d, dword [0x14039c638]
mov rax, qword [rax + rdx*8]
lea rdx, str._d_of__d_miner_threads_started_using__s_algorithm
mov qword [rsp + 0x20], rax
call sym.applog
lea rcx, [rsp + 0x40]
xor edx, edx
movsxd rax, dword [0x14039c5cc]
imul rax, rax, 0x50
add rax, qword [0x14039c5d0]
vmovdqu xmm0, xmmword [rax + 8]
vmovdqu xmmword [rsp + 0x40], xmm0
call sym.pthread_join
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 2
call sym.applog
jmp 0x140320f35
mov r8d, esi
lea rdx, str.Miner_thread__d_create_failed
mov ecx, 1
call sym.applog
jmp 0x140320f2f
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 0x140320c1d
lea rdx, str.Creating_API_thread
mov ecx, 4
call sym.applog
jmp 0x140320e7a
lea rdx, str.Long_poll_thread_create_failed
mov ecx, 1
call sym.applog
jmp 0x140320f2f
lea rdx, str.Creating_stratum_thread
mov ecx, 4
call sym.applog
jmp 0x140321151
mov r9d, dword [0x14039c06c]
mov r8, qword [0x14039c070]
lea rdx, str.API_listening_to__s:_d
mov ecx, 4
call sym.applog
jmp 0x140320ecf
lea rdx, str.Creating_long_poll_thread
mov ecx, 4
call sym.applog
jmp 0x140320e10
xor r9d, r9d
jmp 0x140320ce8
lea rdx, str.Stratum_thread_create_failed
mov ecx, 1
call sym.applog
jmp 0x140320f2f
lea rdx, str.API_thread_create_failed
mov ecx, 1
call sym.applog
jmp 0x140320f2f
xor r9d, r9d
lea r8, [rsp + 0x80]
jmp 0x140321119
mov ecx, 1
call sym.exit
lea rdx, str.CPU_Affinity_disabled__memory_allocation_failed
mov ecx, 1
call sym.applog
xor eax, eax
mov qword [0x140322060], rax
jmp 0x140320d05
mov r8, qword [rsi]
mov ecx, 2
mov qword [rsp + 0x30], r8
call qword [dbg.__acrt_iob_func]
mov r8, qword [rsp + 0x30]
lea rdx, str._s:_No_algo_parameter_specified_n
mov rcx, rax
call sym.winansi_fprintf
mov ecx, 1
call sym.show_usage_and_exit
mov r9, qword [rsi + rax*8]
mov r8, qword [rsi]
mov ecx, 2
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r8
call qword [dbg.__acrt_iob_func]
mov r9, qword [rsp + 0x38]
mov rcx, rax
lea rdx, str._s:_unsupported_non_option_argument_____s_n
mov r8, qword [rsp + 0x30]
call sym.winansi_fprintf
mov ecx, 1
call sym.show_usage_and_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop