Function at 0x4872e0
Capabilities:
Get system information on windows

Disassembly:
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
lea rbp, [0x0048bf60]
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.0047f870
lea rcx, [0x0049b0f0]
xor edx, edx
call fcn.004726b0
lea rcx, str._n___________cpuminer_opt_3.23.1____n
call fcn.0046a200
lea rcx, str._____A_CPU_miner_with_multi_algo_support_and_optimized_for_CPUs_n
call fcn.0046a200
lea rcx, str._____with_AVX512__SHA_and_VAES_extensions_by_JayDDee._n
call fcn.0046a200
lea rcx, str._____BTC_donation_address:_12tdvfF7KmAsihBXQXynT6E6th2c2pByTT_n_n
call fcn.0046a200
lea rcx, [0x0048a662]
call sub.msvcrt.dll__strdup
lea rcx, [0x0048a662]
mov qword [0x0049b100], rax
call sub.msvcrt.dll__strdup
lea rcx, [rsp + 0x40]
mov qword [0x0049ab58], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov edx, 1
mov r12, qword [0x00492260]
test eax, eax
cmovle eax, edx
mov dword [0x0048805c], eax
mov dword [0x00499118], eax
jmp 0x4873a9
mov rdx, qword [r12]
call fcn.00409460
mov ecx, ebx
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], 0
mov rdx, rsi
call fcn.004823f0
mov ecx, eax
test eax, eax
jns 0x4873a0
mov rax, qword [0x00492270]
movsxd rax, dword [rax]
cmp ebx, eax
jg 0x487d7b
mov ecx, dword [0x00499130]
test ecx, ecx
je 0x487d51
mov edx, dword [0x004996e4]
test edx, edx
je 0x487850
mov eax, dword [0x004996ec]
test eax, eax
jne 0x48788b
lea rdx, [0x0049b040]
call fcn.00413030
test al, al
je 0x487d26
xor ecx, ecx
call fcn.00401e40
test al, al
je 0x487d26
cmp byte [0x0049913a], 0
je 0x487818
cmp qword [0x00499100], 0
je 0x487ade
mov r8, qword [0x0049ab40]
test r8, r8
je 0x487471
movsxd rdx, dword [0x00488054]
lea rcx, [0x004996b0]
call fcn.0040c850
mov qword [0x004996a8], rax
test rax, rax
je 0x48786c
lea r12, [0x0049b0f8]
xor edx, edx
mov rcx, r12
call fcn.004726b0
lea rcx, [0x0049ab50]
xor edx, edx
call fcn.00479150
lea rcx, [0x0049acb0]
xor edx, edx
call fcn.004726b0
lea rcx, [0x0049b000]
xor edx, edx
call fcn.004726b0
cmp byte [0x0049913a], 0
je 0x4878c6
mov ecx, 3
call qword [sym.imp.libcurl_4.dll_curl_global_init]
test eax, eax
jne 0x4878aa
lea rcx, [0x00404140]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp byte [0x004996f0], 0
jne 0x487949
mov eax, dword [0x00499110]
test eax, eax
jle 0x487519
sub eax, 1
mov r13d, 0x20
cmp eax, 4
jbe 0x487968
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ebx, dword [0x0048805c]
cmp dword [0x00499118], ebx
mov esi, ebx
cmovge esi, dword [0x00499118]
movsxd rcx, esi
shl rcx, 2
call sub.msvcrt.dll_malloc
mov r10, rax
mov qword [0x00499420], rax
test rax, rax
je 0x487d30
mov r8, qword [0x00488060]
test r8, r8
je 0x4875c9
test esi, esi
jle 0x487ce4
lea eax, [rsi - 1]
mov r11d, dword [0x0048805c]
xor ecx, ecx
xor r9d, r9d
lea rsi, [r10 + rax*4 + 4]
jmp 0x487583
add ecx, 1
bt r8, rcx
jae 0x487580
mov eax, ecx
cdq
idiv ebx
xor eax, eax
cmp r11d, ecx
setg al
add r10, 4
mov ebx, r11d
add r9d, eax
add ecx, 1
mov dword [r10 - 4], edx
cmp rsi, r10
jne 0x487583
mov r8d, dword [0x00499118]
cmp r8d, r9d
jg 0x487987
cmp byte [0x00499135], 0
je 0x48799d
movsxd r13, dword [0x00499118]
mov edx, pe_nt_image_headers64
mov rcx, r13
mov rsi, r13
call sub.msvcrt.dll_calloc
mov qword [0x004990e0], rax
test rax, rax
je 0x4877fd
lea ecx, [r13 + 4]
mov edx, 0x50
movsxd rcx, ecx
call sub.msvcrt.dll_calloc
mov rbx, rax
mov qword [0x0049b0e8], rax
test rax, rax
je 0x4877fd
mov edx, 8
mov rcx, r13
call sub.msvcrt.dll_calloc
mov qword [0x0049b110], rax
test rax, rax
je 0x4877fd
mov dword [0x0049ab60], r13d
imul r13, r13, 0x50
add r13, rbx
mov dword [r13], esi
call fcn.00410b80
mov qword [r13 + 0x20], rax
test rax, rax
je 0x4877fd
mov rcx, qword [0x0049ab58]
test rcx, rcx
je 0x487697
mov r14, qword [0x0049b100]
test r14, r14
je 0x487697
lea rdx, str.stats
call sub.msvcrt.dll_strstr
mov r8, rax
mov eax, 1
test r8, r8
je 0x487ac2
mov byte [0x004990d9], al
and byte [0x004990d9], 1
mov rcx, r13
lea rdx, [0x00406e80]
call fcn.00403760
mov r13d, eax
test eax, eax
jne 0x487b41
cmp byte [0x00499139], 0
je 0x48771d
cmp byte [0x00499137], 0
jne 0x487a29
cmp byte [0x0049913d], 0
jne 0x487cce
mov eax, dword [0x00499118]
add eax, 1
movsxd r14, eax
mov dword [0x00488050], eax
imul r14, r14, 0x50
add r14, qword [0x0049b0e8]
mov dword [r14], eax
call fcn.00410b80
mov qword [r14 + 0x20], rax
test rax, rax
je 0x4877fd
lea rdx, [0x00403b00]
mov rcx, r14
call fcn.00403760
test eax, eax
jne 0x487c78
cmp byte [0x00499137], 0
jne 0x487a29
cmp byte [0x00499620], 0
je 0x487796
cmp byte [0x0049913d], 0
jne 0x487c62
mov eax, dword [0x00499118]
add eax, 3
movsxd r14, eax
mov dword [0x00488048], eax
imul r14, r14, 0x50
add r14, qword [0x0049b0e8]
mov dword [r14], eax
call fcn.00410b80
mov qword [r14 + 0x20], rax
test rax, rax
je 0x4877fd
lea rdx, [0x00412c50]
mov rcx, r14
call fcn.00403760
test eax, eax
jne 0x487d08
cmp byte [0x00499135], 0
je 0x487caa
mov rcx, r12
call fcn.004752c0
cmp dword [0x00499118], 0
jle 0x487b5d
lea rdi, [0x0049b0e8]
xor ebx, ebx
xor esi, esi
lea rbp, [0x00405000]
jmp 0x4877e6
mov rdx, rbp
mov rcx, r14
call fcn.00403760
test eax, eax
jne 0x487c24
add ebx, 1
add rsi, 0x50
cmp dword [0x00499118], ebx
jle 0x487b5d
mov r14, qword [rdi]
add r14, rsi
mov dword [r14], ebx
call fcn.00410b80
mov qword [r14 + 0x20], rax
test rax, rax
jne 0x4877c0
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 [0x004990f8], 0
jne 0x487434
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.00486f00]
lea rdx, str._s:_no_URL_supplied_n
mov rcx, rax
mov r8, rbx
call fcn.0046a1d0
mov ecx, 1
call fcn.004092b0
cmp byte [0x00499137], 0
je 0x487931
mov dword [0x004996e4], 0x1e
jmp 0x4873f6
mov r8, qword [0x0049ab40]
mov ecx, 1
lea rdx, str.Invalid_coinbase_address:__s
call fcn.0040aae0
xor ecx, ecx
call sub.msvcrt.dll_exit
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
add eax, dword [0x004996ec]
mov ecx, dword [0x00499130]
mov dword [0x004996e8], eax
jmp 0x487404
lea rdx, [0x0048af10]
mov ecx, 1
mov r13d, 1
call fcn.0040aae0
jmp 0x487803
mov rcx, qword [0x00499108]
mov r8d, 6
mov rbx, qword [sym.imp.msvcrt.dll__strnicmp]
lea rdx, str.https:
call rbx
test eax, eax
je 0x4874b9
mov rcx, qword [0x00499108]
mov r8d, 0xe
lea rdx, str.stratumssl:__
call rbx
test eax, eax
je 0x4874b9
mov rcx, qword [0x00499108]
mov r8d, 0xf
lea rdx, str.stratumtcps:__
call rbx
mov ecx, 2
test eax, eax
jne 0x4874be
jmp 0x4874b9
cmp byte [0x00499138], 0
je 0x487978
mov dword [0x004996e4], 0x3c
jmp 0x4873f6
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
test rax, rax
je 0x487c43
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4874eb
lea rdx, [0x0048bbd0]
mov r13d, dword [rdx + rax*4]
jmp 0x487507
mov dword [0x004996e4], 5
jmp 0x4873f6
lea rdx, str.Affinity:_more_threads___d__than_active_CPUs___d_
mov ecx, 2
call fcn.0040aae0
jmp 0x4875bc
mov eax, dword [0x0048805c]
lea r8, [rsp + 0x70]
mov r9d, 0x40
mov rcx, qword [0x00488060]
cmp eax, 0x40
cmovle r9d, eax
xor edx, edx
test eax, eax
jle 0x487d1e
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 0x4879d0
test r9d, r9d
mov eax, 1
cmovle r9d, eax
movsxd rdx, r9d
mov ecx, 0x40
add rdx, r8
sub ecx, r9d
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
lea rdx, str.CPU_affinity___s_
mov ecx, 4
call fcn.0040aae0
jmp 0x4875c9
cmp byte [0x0049913d], 0
jne 0x487c94
mov eax, dword [0x00499118]
mov byte [0x0049b00c], 0
add eax, 2
movsxd r14, eax
mov dword [0x0048804c], eax
imul r14, r14, 0x50
add r14, qword [0x0049b0e8]
mov dword [r14], eax
call fcn.00410b80
mov qword [r14 + 0x20], rax
test rax, rax
je 0x4877fd
lea rdx, [0x00406950]
mov rcx, r14
call fcn.00403760
test eax, eax
jne 0x487cec
cmp byte [0x00499137], 0
je 0x48772a
mov rcx, qword [0x00499108]
call sub.msvcrt.dll__strdup
mov rdx, rax
movsxd rax, dword [0x0048804c]
imul rax, rax, 0x50
add rax, qword [0x0049b0e8]
mov rcx, qword [rax + 0x20]
call fcn.00410cd0
jmp 0x48772a
lea rdx, str.benchmark
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
jmp 0x48768a
mov rbp, qword [0x0049b100]
or r8, 0xffffffffffffffff
xor eax, eax
mov rcx, r8
mov r12, qword [0x0049ab58]
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 rcx, rax
mov qword [0x00499100], rax
test rax, rax
je 0x4877fd
lea rdx, str._s:_s
mov r9, r12
mov r8, rbp
call sub.msvcrt.dll_sprintf
jmp 0x487442
lea rdx, str.work_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040aae0
jmp 0x487803
lea rcx, [0x00499160]
mov r8d, 0x2c0
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [0x00499140]
xor edx, edx
call fcn.004824d0
mov rax, qword [0x00499140]
mov rcx, r12
mov qword [0x00499610], rax
mov qword [0x00499618], rax
mov qword [0x004996d8], rax
mov qword [0x004996d0], rax
mov qword [0x004990a8], rax
call fcn.004761f0
mov edx, dword [0x00499130]
lea rax, [0x0048d580]
mov ecx, 4
mov r9d, dword [0x0048805c]
mov r8d, dword [0x00499118]
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.0040aae0
movsxd rax, dword [0x0049ab60]
lea rcx, [rsp + 0x30]
xor edx, edx
imul rax, rax, 0x50
add rax, qword [0x0049b0e8]
movdqu xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x30], xmm0
call fcn.0047dbe0
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 2
call fcn.0040aae0
jmp 0x487803
mov r8d, ebx
mov ecx, 1
mov r13d, 1
lea rdx, str.Miner_thread__d_create_failed
call fcn.0040aae0
jmp 0x487803
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 0x4874eb
lea rdx, str.Creating_API_thread
mov ecx, 4
call fcn.0040aae0
jmp 0x487740
lea rdx, str.Long_poll_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040aae0
jmp 0x487803
lea rdx, str.Creating_stratum_thread
mov ecx, 4
call fcn.0040aae0
jmp 0x487a36
mov r9d, dword [0x0049904c]
lea rdx, str.API_listening_to__s:_d
mov ecx, 4
mov r8, qword [0x00499050]
call fcn.0040aae0
jmp 0x487796
lea rdx, str.Creating_long_poll_thread
mov ecx, 4
call fcn.0040aae0
jmp 0x4876d4
xor r9d, r9d
jmp 0x4875ac
lea rdx, str.Stratum_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040aae0
jmp 0x487803
lea rdx, str.API_thread_create_failed
mov ecx, 1
call fcn.0040aae0
jmp 0x4877fd
xor r9d, r9d
jmp 0x4879fe
mov ecx, 1
call sub.msvcrt.dll_exit
lea rdx, str.CPU_Affinity_disabled__memory_allocation_failed
mov ecx, 1
call fcn.0040aae0
mov qword [0x00488060], 0
jmp 0x4875c9
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.00486f00]
lea rdx, str._s:_No_algo_parameter_specified_n
mov rcx, rax
mov r8, rbx
call fcn.0046a1d0
mov ecx, 1
call fcn.004092b0
mov rdi, qword [rsi + rax*8]
mov ecx, 2
mov rbx, qword [rsi]
call qword [fcn.00486f00]
lea rdx, str._s:_unsupported_non_option_argument_____s_n
mov rcx, rax
mov r9, rdi
mov r8, rbx
call fcn.0046a1d0
mov ecx, 1
call fcn.004092b0
nop
nop
nop
nop
or eax, 0xffffffff
jmp 0x46a622