Function at 0x5ca900
Capabilities:
Get system information on windows

Disassembly:
cmp dword [rdi], 0x10
ja 0x5cb3e0
mov eax, dword [rdi]
movsxd rax, dword [rbp + rax*4]
add rax, rbp
jmp rax
vmovdqu xmm3, xmmword [rbx + 0x30]
vmovdqu xmm4, xmmword [rbx]
vmovups xmmword [rbx + 0x70], xmm3
movzx edx, byte [rbx + 0x7f]
vmovdqu xmm5, xmmword [rbx + 0x10]
vmovups xmmword [rbx + 0x40], xmm4
vmovdqu xmm2, xmmword [rbx + 0x20]
vmovups xmmword [rbx + 0x50], xmm5
and edx, 1
vmovups xmmword [rbx + 0x60], xmm2
mov rdi, qword [rdi + rdx*8 + 8]
test rdi, rdi
je 0x577498
test cl, cl
jne 0x5773fe
mov rax, qword [rbx + 0x40]
mov rdx, qword [rbx + 0x48]
mov qword [r14], rax
mov rax, qword [r12 + 0x10]
mov qword [r14 + 8], rdx
mov rdx, qword [r12 + 0x18]
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rdx
mov eax, r8d
add rsp, 0xf8
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, [0x005cef60]
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.005c24d0
lea rcx, [0x006408b0]
xor edx, edx
call fcn.005975a0
lea rcx, str._n___________cpuminer_opt_24.1____n
call fcn.0058efc0
lea rcx, str._____A_CPU_miner_with_multi_algo_support_and_optimized_for_CPUs_n
call fcn.0058efc0
lea rcx, str._____with_AVX512__SHA_and_VAES_extensions_by_JayDDee._n
call fcn.0058efc0
lea rcx, str._____BTC_donation_address:_12tdvfF7KmAsihBXQXynT6E6th2c2pByTT_n_n
call fcn.0058efc0
lea rcx, [0x005cd002]
call sub.msvcrt.dll__strdup
lea rcx, [0x005cd002]
mov qword [0x006408c0], rax
call sub.msvcrt.dll__strdup
lea rcx, [rsp + 0x40]
mov qword [0x00640318], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov edx, 1
mov r12, qword [0x0062b820]
test eax, eax
cmovle eax, edx
mov dword [0x005cc05c], eax
mov dword [0x0063d110], eax
jmp 0x5ca9c9
mov rdx, qword [r12]
call fcn.004095f0
mov ecx, ebx
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], 0
mov rdx, rsi
call fcn.005c4b60
mov ecx, eax
test eax, eax
jns 0x5ca9c0
mov rax, qword [0x0062b830]
movsxd rax, dword [rax]
cmp ebx, eax
jg 0x5cb3ac
mov ecx, dword [0x0063d128]
test ecx, ecx
je 0x5cb382
mov edx, dword [0x0063d6e4]
test edx, edx
je 0x5cae80
mov eax, dword [0x0063d6ec]
test eax, eax
jne 0x5caebb
lea rdx, [0x00640800]
call fcn.00413250
test al, al
je 0x5cb357
xor ecx, ecx
call fcn.00401e40
test al, al
je 0x5cb357
cmp byte [0x0063d132], 0
je 0x5cae48
cmp qword [0x0063d0f8], 0
je 0x5cb10e
mov r8, qword [0x00640300]
test r8, r8
je 0x5caa91
movsxd rdx, dword [0x005cc054]
lea rcx, [0x0063d6b0]
call fcn.0040cb90
mov qword [0x0063d6a8], rax
test rax, rax
je 0x5cae9c
lea r12, [0x006408b8]
xor edx, edx
mov rcx, r12
call fcn.005975a0
lea rcx, [0x00640310]
xor edx, edx
call fcn.0059e040
lea rcx, [0x00640470]
xor edx, edx
call fcn.005975a0
lea rcx, [0x006407c0]
xor edx, edx
call fcn.005975a0
cmp byte [0x0063d132], 0
je 0x5caef6
mov ecx, 3
call qword [sym.imp.libcurl_4.dll_curl_global_init]
test eax, eax
jne 0x5caeda
lea rcx, [0x00404280]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
cmp byte [0x0063d6f0], 0
jne 0x5caf79
mov eax, dword [0x0063d108]
test eax, eax
jle 0x5cab39
sub eax, 1
mov r13d, 0x20
cmp eax, 4
jbe 0x5caf98
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
movsxd rcx, dword [0x0063d110]
mov edx, 1
mov rsi, rcx
call sub.msvcrt.dll_calloc
mov ebx, dword [0x005cc05c]
mov qword [0x0063d070], rax
cmp esi, ebx
cmovl esi, ebx
movsxd rcx, esi
shl rcx, 2
call sub.msvcrt.dll_malloc
mov r10, rax
mov qword [0x0063d420], rax
test rax, rax
je 0x5cb361
mov r8, qword [0x005cc060]
test r8, r8
je 0x5cabf9
test esi, esi
jle 0x5cb315
lea eax, [rsi - 1]
mov r11d, dword [0x005cc05c]
xor ecx, ecx
xor r9d, r9d
lea rsi, [r10 + rax*4 + 4]
jmp 0x5cabb3
add ecx, 1
bt r8, rcx
jae 0x5cabb0
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 0x5cabb3
mov r8d, dword [0x0063d110]
cmp r8d, r9d
jg 0x5cafb7
cmp byte [0x0063d12d], 0
je 0x5cafcd
movsxd r13, dword [0x0063d110]
mov edx, pe_nt_image_headers64
mov rcx, r13
mov rsi, r13
call sub.msvcrt.dll_calloc
mov qword [0x0063d0d8], rax
test rax, rax
je 0x5cae2d
lea ecx, [r13 + 4]
mov edx, 0x50
movsxd rcx, ecx
call sub.msvcrt.dll_calloc
mov rbx, rax
mov qword [0x006408a8], rax
test rax, rax
je 0x5cae2d
mov edx, 8
mov rcx, r13
call sub.msvcrt.dll_calloc
mov qword [0x006408d0], rax
test rax, rax
je 0x5cae2d
mov dword [0x00640320], r13d
imul r13, r13, 0x50
add r13, rbx
mov dword [r13], esi
call fcn.00410ea0
mov qword [r13 + 0x20], rax
test rax, rax
je 0x5cae2d
mov rcx, qword [0x00640318]
test rcx, rcx
je 0x5cacc7
mov r14, qword [0x006408c0]
test r14, r14
je 0x5cacc7
lea rdx, str.stats
call sub.msvcrt.dll_strstr
mov r8, rax
mov eax, 1
test r8, r8
je 0x5cb0f2
mov byte [0x0063d0d1], al
and byte [0x0063d0d1], 1
mov rcx, r13
lea rdx, [0x00407010]
call fcn.004038a0
mov r13d, eax
test eax, eax
jne 0x5cb171
cmp byte [0x0063d131], 0
je 0x5cad4d
cmp byte [0x0063d12f], 0
jne 0x5cb059
cmp byte [0x0063d135], 0
jne 0x5cb2ff
mov eax, dword [0x0063d110]
add eax, 1
movsxd r14, eax
mov dword [0x005cc050], eax
imul r14, r14, 0x50
add r14, qword [0x006408a8]
mov dword [r14], eax
call fcn.00410ea0
mov qword [r14 + 0x20], rax
test rax, rax
je 0x5cae2d
lea rdx, [0x00403c40]
mov rcx, r14
call fcn.004038a0
test eax, eax
jne 0x5cb2a9
cmp byte [0x0063d12f], 0
jne 0x5cb059
cmp byte [0x0063d620], 0
je 0x5cadc6
cmp byte [0x0063d135], 0
jne 0x5cb293
mov eax, dword [0x0063d110]
add eax, 3
movsxd r14, eax
mov dword [0x005cc048], eax
imul r14, r14, 0x50
add r14, qword [0x006408a8]
mov dword [r14], eax
call fcn.00410ea0
mov qword [r14 + 0x20], rax
test rax, rax
je 0x5cae2d
lea rdx, [0x00412f60]
mov rcx, r14
call fcn.004038a0
test eax, eax
jne 0x5cb339
cmp byte [0x0063d12d], 0
je 0x5cb2db
mov rcx, r12
call fcn.0059a1b0
cmp dword [0x0063d110], 0
jle 0x5cb18d
lea rdi, [0x006408a8]
xor ebx, ebx
xor esi, esi
lea rbp, [0x00405130]
jmp 0x5cae16
mov rdx, rbp
mov rcx, r14
call fcn.004038a0
test eax, eax
jne 0x5cb255
add ebx, 1
add rsi, 0x50
cmp dword [0x0063d110], ebx
jle 0x5cb18d
mov r14, qword [rdi]
add r14, rsi
mov dword [r14], ebx
call fcn.00410ea0
mov qword [r14 + 0x20], rax
test rax, rax
jne 0x5cadf0
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 [0x0063d0f0], 0
jne 0x5caa54
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.005ca550]
lea rdx, str._s:_no_URL_supplied_n
mov rcx, rax
mov r8, rbx
call fcn.0058ef90
mov ecx, 1
call fcn.00409440
cmp byte [0x0063d12f], 0
je 0x5caf61
mov dword [0x0063d6e4], 0x1e
jmp 0x5caa16
mov r8, qword [0x00640300]
mov ecx, 1
lea rdx, str.Invalid_coinbase_address:__s
call fcn.0040adb0
xor ecx, ecx
call sub.msvcrt.dll_exit
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
add eax, dword [0x0063d6ec]
mov ecx, dword [0x0063d128]
mov dword [0x0063d6e8], eax
jmp 0x5caa24
lea rdx, [0x005cdf00]
mov ecx, 1
mov r13d, 1
call fcn.0040adb0
jmp 0x5cae33
mov rcx, qword [0x0063d100]
mov r8d, 6
mov rbx, qword [sym.imp.msvcrt.dll__strnicmp]
lea rdx, str.https:
call rbx
test eax, eax
je 0x5caad9
mov rcx, qword [0x0063d100]
mov r8d, 0xe
lea rdx, str.stratumssl:__
call rbx
test eax, eax
je 0x5caad9
mov rcx, qword [0x0063d100]
mov r8d, 0xf
lea rdx, str.stratumtcps:__
call rbx
mov ecx, 2
test eax, eax
jne 0x5caade
jmp 0x5caad9
cmp byte [0x0063d130], 0
je 0x5cafa8
mov dword [0x0063d6e4], 0x3c
jmp 0x5caa16
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
test rax, rax
je 0x5cb274
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x5cab0b
lea rdx, [0x005cebc0]
mov r13d, dword [rdx + rax*4]
jmp 0x5cab27
mov dword [0x0063d6e4], 5
jmp 0x5caa16
lea rdx, str.Affinity:_more_threads___d__than_active_CPUs___d_
mov ecx, 2
call fcn.0040adb0
jmp 0x5cabec
mov eax, dword [0x005cc05c]
lea r8, [rsp + 0x70]
mov r9d, 0x40
mov rcx, qword [0x005cc060]
cmp eax, 0x40
cmovle r9d, eax
xor edx, edx
test eax, eax
jle 0x5cb34f
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 0x5cb000
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.0040adb0
jmp 0x5cabf9
cmp byte [0x0063d135], 0
jne 0x5cb2c5
mov eax, dword [0x0063d110]
mov byte [0x006407cc], 0
add eax, 2
movsxd r14, eax
mov dword [0x005cc04c], eax
imul r14, r14, 0x50
add r14, qword [0x006408a8]
mov dword [r14], eax
call fcn.00410ea0
mov qword [r14 + 0x20], rax
test rax, rax
je 0x5cae2d
lea rdx, [0x00406ae0]
mov rcx, r14
call fcn.004038a0
test eax, eax
jne 0x5cb31d
cmp byte [0x0063d12f], 0
je 0x5cad5a
mov rcx, qword [0x0063d100]
call sub.msvcrt.dll__strdup
mov rdx, rax
movsxd rax, dword [0x005cc04c]
imul rax, rax, 0x50
add rax, qword [0x006408a8]
mov rcx, qword [rax + 0x20]
call fcn.00410ff0
jmp 0x5cad5a
lea rdx, str.benchmark
mov rcx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
sete al
movzx eax, al
jmp 0x5cacba
mov rbp, qword [0x006408c0]
or r8, 0xffffffffffffffff
xor eax, eax
mov rcx, r8
mov r12, qword [0x00640318]
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 [0x0063d0f8], rax
test rax, rax
je 0x5cae2d
lea rdx, str._s:_s
mov r9, r12
mov r8, rbp
call sub.msvcrt.dll_sprintf
jmp 0x5caa62
lea rdx, str.work_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040adb0
jmp 0x5cae33
lea rcx, [0x0063d160]
mov r8d, 0x2c0
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [0x0063d138]
xor edx, edx
call fcn.005c4c40
mov rax, qword [0x0063d138]
mov rcx, r12
mov qword [0x0063d610], rax
mov qword [0x0063d618], rax
mov qword [0x0063d6d8], rax
mov qword [0x0063d6d0], rax
mov qword [0x0063d0a0], rax
call fcn.0059b0e0
mov edx, dword [0x0063d128]
lea rax, [0x005d1780]
mov ecx, 4
mov r9d, dword [0x005cc05c]
mov r8d, dword [0x0063d110]
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.0040adb0
movsxd rax, dword [0x00640320]
lea rcx, [rsp + 0x30]
xor edx, edx
imul rax, rax, 0x50
add rax, qword [0x006408a8]
vmovdqu xmm0, xmmword [rax + 8]
vmovups xmmword [rsp + 0x30], xmm0
call fcn.005a2ad0
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 2
call fcn.0040adb0
jmp 0x5cae33
mov r8d, ebx
mov ecx, 1
mov r13d, 1
lea rdx, str.Miner_thread__d_create_failed
call fcn.0040adb0
jmp 0x5cae33
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 0x5cab0b
lea rdx, str.Creating_API_thread
mov ecx, 4
call fcn.0040adb0
jmp 0x5cad70
lea rdx, str.Long_poll_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040adb0
jmp 0x5cae33
lea rdx, str.Creating_stratum_thread
mov ecx, 4
call fcn.0040adb0
jmp 0x5cb066
mov r9d, dword [0x0063d04c]
lea rdx, str.API_listening_to__s:_d
mov ecx, 4
mov r8, qword [0x0063d050]
call fcn.0040adb0
jmp 0x5cadc6
lea rdx, str.Creating_long_poll_thread
mov ecx, 4
call fcn.0040adb0
jmp 0x5cad04
xor r9d, r9d
jmp 0x5cabdc
lea rdx, str.Stratum_thread_create_failed
mov ecx, 1
mov r13d, 1
call fcn.0040adb0
jmp 0x5cae33
lea rdx, str.API_thread_create_failed
mov ecx, 1
call fcn.0040adb0
jmp 0x5cae2d
xor r9d, r9d
jmp 0x5cb02e
mov ecx, 1
call sub.msvcrt.dll_exit
lea rdx, str.CPU_Affinity_disabled__memory_allocation_failed
mov ecx, 1
call fcn.0040adb0
mov qword [0x005cc060], 0
jmp 0x5cabf9
mov rbx, qword [rsi]
mov ecx, 2
call qword [fcn.005ca550]
lea rdx, str._s:_No_algo_parameter_specified_n
mov rcx, rax
mov r8, rbx
call fcn.0058ef90
mov ecx, 1
call fcn.00409440
mov rdi, qword [rsi + rax*8]
mov ecx, 2
mov rbx, qword [rsi]
call qword [fcn.005ca550]
lea rdx, str._s:_unsupported_non_option_argument_____s_n
mov rcx, rax
mov r9, rdi
mov r8, rbx
call fcn.0058ef90
mov ecx, 1
call fcn.00409440
nop
nop
nop
mov ecx, 1
mov r8d, 1
jmp 0x577458