Function at 0x5dfd10
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, [0x005e3f40]
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.005d77a0
xor edx, edx
lea rcx, [0x006545f0]
call fcn.005ac880
lea rcx, str._n___________cpuminer_opt_23.15____n
call fcn.005a4400
lea rcx, str._____A_CPU_miner_with_multi_algo_support_and_optimized_for_CPUs_n
call fcn.005a4400
lea rcx, str._____with_AVX512__SHA_and_VAES_extensions_by_JayDDee._n
call fcn.005a4400
lea rcx, str._____BTC_donation_address:_12tdvfF7KmAsihBXQXynT6E6th2c2pByTT_n_n
call fcn.005a4400
lea rcx, [0x005e2019]
call sub.msvcrt.dll__strdup
lea rcx, [0x005e2019]
mov qword [0x00654600], rax
call sub.msvcrt.dll__strdup
lea rcx, [rsp + 0x40]
mov qword [0x00654058], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov edx, 1
mov r12, qword [0x0063f880]
test eax, eax
cmovle eax, edx
mov dword [0x005e105c], eax
mov dword [0x00651110], eax
jmp 0x5dfdd9
mov rdx, qword [r12]
call fcn.004094d0
mov ecx, ebx
mov r9, rbp
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call fcn.005d9e30
mov ecx, eax
test eax, eax
jns 0x5dfdd0
mov rax, qword [0x0063f890]
movsxd rax, dword [rax]
cmp ebx, eax
jg 0x5e07bb
mov ecx, dword [0x00651128]
test ecx, ecx
je 0x5e0791
mov edx, dword [0x006516e4]
test edx, edx
je 0x5e0290
mov eax, dword [0x006516ec]
test eax, eax
jne 0x5e02cb
lea rdx, [0x00654540]
call fcn.004130e0
test al, al
je 0x5e0766
xor ecx, ecx
call fcn.00401de0
test al, al
je 0x5e0766
cmp byte [0x00651132], 0
je 0x5e0258
cmp qword [0x006510f8], 0
je 0x5e051e
mov r8, qword [0x00654040]
test r8, r8
je 0x5dfea1
movsxd rdx, dword [0x005e1054]
lea rcx, [0x006516b0]
call fcn.0040c830
mov qword [0x006516a8], rax
test rax, rax
je 0x5e02ac
lea r12, [0x006545f8]
xor edx, edx
mov rcx, r12
call fcn.005ac880
xor edx, edx
lea rcx, [0x00654050]
call fcn.005b3320
xor edx, edx
lea rcx, [0x006541b0]
call fcn.005ac880
xor edx, edx
lea rcx, [0x00654500]
call fcn.005ac880
cmp byte [0x00651132], 0
je 0x5e0306
mov ecx, 3
call qword [sym.imp.libcurl_4.dll_curl_global_init]
test eax, eax
jne 0x5e02ea
mov edx, 1
lea rcx, [0x00404150]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp byte [0x006516f0], 0
jne 0x5e0389
mov eax, dword [0x00651108]
test eax, eax
jle 0x5dff49
sub eax, 1
mov r13d, 0x20
cmp eax, 4
jbe 0x5e03a8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
movsxd rcx, dword [0x00651110]
mov edx, 1
mov rsi, rcx
call sub.msvcrt.dll_calloc
mov ebx, dword [0x005e105c]
mov qword [0x00651070], rax
cmp esi, ebx
cmovl esi, ebx
movsxd rcx, esi
shl rcx, 2
call sub.msvcrt.dll_malloc
mov qword [0x00651420], rax
mov r10, rax
test rax, rax
je 0x5e0770
mov r8, qword [0x005e1060]
test r8, r8
je 0x5e0009
test esi, esi
jle 0x5e0724
lea eax, [rsi - 1]
mov r11d, dword [0x005e105c]
xor ecx, ecx
xor r9d, r9d
lea rsi, [r10 + rax*4 + 4]
jmp 0x5dffc3
add ecx, 1
bt r8, rcx
jae 0x5dffc0
mov eax, ecx
cdq
idiv ebx
xor eax, eax
cmp r11d, ecx
mov ebx, r11d
setg al
add r10, 4
add ecx, 1
add r9d, eax
mov dword [r10 - 4], edx
cmp rsi, r10
jne 0x5dffc3
mov r8d, dword [0x00651110]
cmp r8d, r9d
jg 0x5e03c7
cmp byte [0x0065112d], 0
je 0x5e03dd
movsxd r13, dword [0x00651110]
mov edx, pe_nt_image_headers64
mov rcx, r13
mov rsi, r13
call sub.msvcrt.dll_calloc
mov qword [0x006510d8], rax
test rax, rax
je 0x5e023d
lea ecx, [r13 + 4]
mov edx, 0x50
movsxd rcx, ecx
call sub.msvcrt.dll_calloc
mov qword [0x006545e8], rax
mov rbx, rax
test rax, rax
je 0x5e023d
mov edx, 8
mov rcx, r13
call sub.msvcrt.dll_calloc
mov qword [0x00654610], rax
test rax, rax
je 0x5e023d
mov dword [0x00654060], r13d
imul r13, r13, 0x50
add r13, rbx
mov dword [r13], esi
call fcn.00410c30
mov qword [r13 + 0x20], rax
test rax, rax
je 0x5e023d
mov rcx, qword [0x00654058]
test rcx, rcx
je 0x5e00d7
mov r14, qword [0x00654600]
test r14, r14
je 0x5e00d7
lea rdx, str.stats
call sub.msvcrt.dll_strstr
mov r8, rax
mov eax, 1
test r8, r8
je 0x5e0502
mov byte [0x006510d1], al
and byte [0x006510d1], 1
mov rcx, r13
lea rdx, [0x00406ee0]
call fcn.00403770
mov r13d, eax
test eax, eax
jne 0x5e0581
cmp byte [0x00651131], 0
je 0x5e015d
cmp byte [0x0065112f], 0
jne 0x5e0469
cmp byte [0x00651135], 0
jne 0x5e070e
mov eax, dword [0x00651110]
add eax, 1
movsxd r14, eax
mov dword [0x005e1050], eax
imul r14, r14, 0x50
add r14, qword [0x006545e8]
mov dword [r14], eax
call fcn.00410c30
mov qword [r14 + 0x20], rax
test rax, rax
je 0x5e023d
lea rdx, [0x00403b10]
mov rcx, r14
call fcn.00403770
test eax, eax
jne 0x5e06b8
cmp byte [0x0065112f], 0
jne 0x5e0469
cmp byte [0x00651620], 0
je 0x5e01d6
cmp byte [0x00651135], 0
jne 0x5e06a2
mov eax, dword [0x00651110]
add eax, 3
movsxd r14, eax
mov dword [0x005e1048], eax
imul r14, r14, 0x50
add r14, qword [0x006545e8]
mov dword [r14], eax
call fcn.00410c30
mov qword [r14 + 0x20], rax
test rax, rax
je 0x5e023d
lea rdx, [0x00412d90]
mov rcx, r14
call fcn.00403770
test eax, eax
jne 0x5e0748
cmp byte [0x0065112d], 0
je 0x5e06ea
mov rcx, r12
call fcn.005af490
cmp dword [0x00651110], 0
jle 0x5e059d
xor ebx, ebx
xor esi, esi
lea rdi, [0x006545e8]
lea rbp, [0x00405050]
jmp 0x5e0226
mov rdx, rbp
mov rcx, r14
call fcn.00403770
test eax, eax
jne 0x5e0664
add ebx, 1
add rsi, 0x50
cmp dword [0x00651110], ebx
jle 0x5e059d
mov r14, qword [rdi]
add r14, rsi
mov dword [r14], ebx
call fcn.00410c30
mov qword [r14 + 0x20], rax
test rax, rax
jne 0x5e0200
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 [0x006510f0], 0
jne 0x5dfe64
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.005df960]
lea rdx, str._s:_no_URL_supplied_n
mov rcx, rax
mov r8, rbx
call fcn.005a43d0
mov ecx, 1
call fcn.00409320
cmp byte [0x0065112f], 0
je 0x5e0371
mov dword [0x006516e4], 0x1e
jmp 0x5dfe26
mov r8, qword [0x00654040]
mov ecx, 1
lea rdx, str.Invalid_coinbase_address:__s
call fcn.0040ac90
xor ecx, ecx
call sub.msvcrt.dll_exit
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
add eax, dword [0x006516ec]
mov ecx, dword [0x00651128]
mov dword [0x006516e8], eax
jmp 0x5dfe34
lea rdx, [0x005e2ef0]
mov ecx, 1
mov r13d, 1
call fcn.0040ac90
jmp 0x5e0243
mov rcx, qword [0x00651100]
mov rbx, qword [sym.imp.msvcrt.dll__strnicmp]
mov r8d, 6
lea rdx, str.https:
call rbx
test eax, eax
je 0x5dfee9
mov rcx, qword [0x00651100]
mov r8d, 0xe
lea rdx, str.stratumssl:__
call rbx
test eax, eax
je 0x5dfee9
mov rcx, qword [0x00651100]
mov r8d, 0xf
lea rdx, str.stratumtcps:__
call rbx
mov ecx, 2
test eax, eax
jne 0x5dfeee
jmp 0x5dfee9
cmp byte [0x00651130], 0
je 0x5e03b8
mov dword [0x006516e4], 0x3c
jmp 0x5dfe26
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
test rax, rax
je 0x5e0683
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5dff1b
lea rdx, [0x005e3bb0]
mov r13d, dword [rdx + rax*4]
jmp 0x5dff37
mov dword [0x006516e4], 5
jmp 0x5dfe26
lea rdx, str.Affinity:_more_threads___d__than_active_CPUs___d_
mov ecx, 2
call fcn.0040ac90
jmp 0x5dfffc
mov eax, dword [0x005e105c]
mov r9d, 0x40
lea r8, [rsp + 0x70]
mov rcx, qword [0x005e1060]
cmp eax, 0x40
cmovle r9d, eax
xor edx, edx
test eax, eax
jle 0x5e075e
nop word cs:[rax + 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
add rdx, 1
cmp r9d, edx
jg 0x5e0410
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.0040ac90
jmp 0x5e0009
cmp byte [0x00651135], 0
jne 0x5e06d4
mov eax, dword [0x00651110]
mov byte [0x0065450c], 0
add eax, 2
movsxd r14, eax
mov dword [0x005e104c], eax
imul r14, r14, 0x50
add r14, qword [0x006545e8]
mov dword [r14], eax
call fcn.00410c30
mov qword [r14 + 0x20], rax
test rax, rax
je 0x5e023d
lea rdx, [0x004069b0]
mov rcx, r14
call fcn.00403770
test eax, eax
jne 0x5e072c
cmp byte [0x0065112f], 0
je 0x5e016a
mov rcx, qword [0x00651100]
call sub.msvcrt.dll__strdup
mov rdx, rax
movsxd rax, dword [0x005e104c]
imul rax, rax, 0x50
add rax, qword [0x006545e8]
mov rcx, qword [rax + 0x20]
call fcn.00410d80
jmp 0x5e016a
lea rdx, str.benchmark
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
jmp 0x5e00ca
mov rbp, qword [0x00654600]
or r8, 0xffffffffffffffff
xor eax, eax
mov r12, qword [0x00654058]
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 [0x006510f8], rax
mov rcx, rax
test rax, rax
je 0x5e023d
mov r9, r12
mov r8, rbp
lea rdx, str._s:_s
call sub.msvcrt.dll_sprintf
jmp 0x5dfe72
lea rdx, str.work_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ac90
jmp 0x5e0243
lea rdx, [0x00651160]
xor eax, eax
mov ecx, 0x58
mov rdi, rdx
xor edx, edx
rep stosq qword [rdi], rax
lea rcx, [0x00651138]
call fcn.005d9f10
mov rax, qword [0x00651138]
mov rcx, r12
mov qword [0x00651610], rax
mov qword [0x00651618], rax
mov qword [0x006516d8], rax
mov qword [0x006516d0], rax
mov qword [0x006510a0], rax
call fcn.005b03c0
mov edx, dword [0x00651128]
lea rax, [0x005e6760]
mov r9d, dword [0x005e105c]
mov r8d, dword [0x00651110]
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.0040ac90
movsxd rax, dword [0x00654060]
lea rcx, [rsp + 0x30]
xor edx, edx
imul rax, rax, 0x50
add rax, qword [0x006545e8]
movdqu xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x30], xmm0
call fcn.005b7db0
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 2
call fcn.0040ac90
jmp 0x5e0243
mov r8d, ebx
lea rdx, str.Miner_thread__d_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ac90
jmp 0x5e0243
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 0x5dff1b
lea rdx, str.Creating_API_thread
mov ecx, 4
call fcn.0040ac90
jmp 0x5e0180
lea rdx, str.Long_poll_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ac90
jmp 0x5e0243
lea rdx, str.Creating_stratum_thread
mov ecx, 4
call fcn.0040ac90
jmp 0x5e0476
mov r9d, dword [0x0065104c]
mov r8, qword [0x00651050]
mov ecx, 4
lea rdx, str.API_listening_to__s:_d
call fcn.0040ac90
jmp 0x5e01d6
lea rdx, str.Creating_long_poll_thread
mov ecx, 4
call fcn.0040ac90
jmp 0x5e0114
xor r9d, r9d
jmp 0x5dffec
lea rdx, str.Stratum_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040ac90
jmp 0x5e0243
lea rdx, str.API_thread_create_failed
mov ecx, 1
call fcn.0040ac90
jmp 0x5e023d
xor r9d, r9d
jmp 0x5e043e
mov ecx, 1
call sub.msvcrt.dll_exit
lea rdx, str.CPU_Affinity_disabled__memory_allocation_failed
mov ecx, 1
call fcn.0040ac90
mov qword [0x005e1060], 0
jmp 0x5e0009
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.005df960]
lea rdx, str._s:_No_algo_parameter_specified_n
mov rcx, rax
mov r8, rbx
call fcn.005a43d0
mov ecx, 1
call fcn.00409320
mov rdi, qword [rsi + rax*8]
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.005df960]
lea rdx, str._s:_unsupported_non_option_argument_____s_n
mov rcx, rax
mov r9, rdi
mov r8, rbx
call fcn.005a43d0
mov ecx, 1
call fcn.00409320
nop
nop
nop
nop
sub rsp, 0x28
lea rcx, [0x00651e40]
call fcn.005d76e8
lea rcx, [0x004e8cc0]
add rsp, 0x28
jmp fcn.00401520