Function at 0x140039210
Capabilities:
Get system information on windows
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx eax, word [0x1401dfb70]
movups xmm0, xmmword [str.Not_recommended_prefer_7.5]
movsd xmm1, qword [0x1401dfb68]
mov word [rsp + 0xa8], ax
movzx eax, byte [0x1401dfb72]
mov ebp, ecx
lea rcx, str._ccminer_krnlx_xevan_for_nVidia_GPUs_from_alexis78_github__n
mov r14, rdx
mov byte [rsp + 0xaa], al
movups xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
call fcn.1400301e0
xor r8d, r8d
lea r9, [rsp + 0x90]
lea edx, [r8 + 8]
lea rcx, str._Built_with_VC_2013_and_nVidia_CUDA_SDK__d._d___s__n_n
call fcn.1400301e0
lea rcx, str._Based_on_tpruvot_github_ccminer_n
call fcn.1400301e0
lea rcx, str._Originally_based_on_Christian_Buchner_and_Christian_H._project_n
call fcn.1400301e0
lea rcx, str._Include_some_of_the_work_of_djm34__sp__tsiv_and_klausT._n_n
call fcn.1400301e0
lea rcx, [0x1401de20a]
call qword [sym.imp.MSVCR120.dll__strdup]
lea rcx, [0x1401de20b]
mov qword [0x1402d4f60], rax
call qword [sym.imp.MSVCR120.dll__strdup]
lea rcx, [0x1401de232]
mov qword [0x1402d4f50], rax
call qword [sym.imp.MSVCR120.dll__strdup]
lea rcx, [0x1401de233]
mov qword [0x1402d4e90], rax
call qword [sym.imp.MSVCR120.dll__strdup]
lea rcx, [0x1402d50b0]
xor edx, edx
mov qword [0x1402d50c0], rax
call fcn.1401b6770
lea rcx, [0x1402d8928]
xor edx, edx
call fcn.1401b6770
lea rcx, [0x1402d4d20]
xor edx, edx
call fcn.1401b6770
lea rcx, [0x1402d4a88]
xor edx, edx
call fcn.1401b6770
lea rcx, [0x1402d4ea8]
xor edx, edx
call fcn.1401b6770
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x80]
mov r15d, 1
cmp eax, r15d
cmovl eax, r15d
mov dword [0x1402d501c], eax
call fcn.1401997e0
xor ebx, ebx
or rsi, 0xffffffffffffffff
lea r12, [0x1402d89b0]
mov r8d, ebx
mov r10d, eax
mov dword [0x1402d88d8], eax
mov r9, r12
mov qword [0x1402643c0], rsi
mov qword [0x1402643c8], rsi
mov qword [0x1402643d0], rsi
mov qword [0x1402643d8], rsi
mov qword [0x1402643e0], rsi
mov qword [0x1402643e8], rsi
mov qword [0x1402643f0], rsi
mov qword [0x1402643f8], rsi
mov qword [0x140264400], rsi
mov qword [0x140264408], rsi
mov qword [0x1402d8890], rsi
mov qword [0x1402d8898], rsi
mov qword [0x1402d88a0], rsi
mov qword [0x1402d88a8], rsi
mov qword [0x1402d88b0], rsi
mov qword [0x1402d88b8], rsi
movabs rax, 0x40000000400
lea rdi, [0x1402d5020]
mov ecx, reloc.WS2_32.dll_recv
mov qword [0x1402d4fd0], rax
mov qword [0x1402d4fd8], rax
mov qword [0x1402d4fe0], rax
mov qword [0x1402d4fe8], rax
mov qword [0x1402d4ff0], rax
mov qword [0x1402d4ff8], rax
mov qword [0x1402d5000], rax
mov qword [0x1402d5008], rax
movabs rax, 0x100000001
mov qword [0x1402d4f90], rax
mov qword [0x1402d4f98], rax
mov qword [0x1402d4fa0], rax
mov qword [0x1402d4fa8], rax
mov qword [0x1402d4fb0], rax
mov qword [0x1402d4fb8], rax
mov qword [0x1402d4fc0], rax
mov qword [0x1402d4fc8], rax
movabs rax, 0xc0000000c
mov qword [0x1402d4e00], rax
mov qword [0x1402d4e08], rax
mov qword [0x1402d4e10], rax
mov qword [0x1402d4e18], rax
mov qword [0x1402d4e20], rax
mov qword [0x1402d4e28], rax
mov qword [0x1402d4e30], rax
mov qword [0x1402d4e38], rax
xor eax, eax
rep stosq qword [rdi], rax
lea rdi, [0x1402d4ed0]
mov ecx, reloc.WS2_32.dll_recv
mov qword [0x1402d88c0], rsi
mov qword [0x1402d88c8], rsi
mov qword [0x1402d88e0], rsi
mov qword [0x1402d88e8], rsi
mov qword [0x1402d88f0], rsi
mov qword [0x1402d88f8], rsi
mov qword [0x1402d8900], rsi
mov qword [0x1402d8908], rsi
mov qword [0x1402d8910], rsi
mov qword [0x1402d8918], rsi
mov qword [0x1402d4e50], rsi
mov qword [0x1402d4e58], rsi
mov qword [0x1402d4e60], rsi
mov qword [0x1402d4e68], rsi
mov qword [0x1402d4e70], rsi
mov qword [0x1402d4e78], rsi
mov qword [0x1402d4e80], rsi
mov qword [0x1402d4e88], rsi
rep stosq qword [rdi], rax
nop dword [rax + rax]
mov eax, r8d
inc r8d
lea r9, [r9 + 2]
cdq
idiv r10d
mov word [r9 - 2], dx
cmp r8d, 0x10
jl 0x140039580
call fcn.140199410
mov rdx, r14
mov ecx, ebp
call fcn.140039120
cmp dword [0x1402d5018], ebx
jne 0x140039652
mov rcx, qword [0x1402d4e90]
mov rax, rsi
nop
inc rax
cmp byte [rcx + rax], bl
jne 0x1400395c0
test rax, rax
jne 0x140039652
lea rcx, [rsp + 0xb1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0xb0], bl
call sub.MSVCR120.dll_memset
mov r8, qword [r14]
lea rcx, [rsp + 0xb0]
call fcn.140041e90
lea rcx, [rsp + 0xb0]
mov rax, rsi
inc rax
cmp byte [rcx + rax], bl
jne 0x140039608
test rax, rax
je 0x140039652
cmp dword [0x1402d4dbc], ebx
je 0x140039636
lea r8, [rsp + 0xb0]
lea rdx, str.Using_config__s
mov ecx, 4
call fcn.140041b60
lea rdx, [rsp + 0xb0]
mov ecx, 0x63
call fcn.1400376a0
mov rdx, r14
mov ecx, ebp
call fcn.140039120
mov rax, qword [0x1402d4e90]
nop dword [rax]
inc rsi
cmp byte [rax + rsi], bl
jne 0x140039660
test rsi, rsi
jne 0x1400396b3
cmp dword [0x1402d5018], ebx
jne 0x1400396ac
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [r14]
lea rdx, str._s:_no_URL_supplied_n
lea rcx, [rax + 0x60]
call fcn.1400301b0
call qword [sym.imp.MSVCR120.dll___iob_func]
lea rdx, str.Try__ccminer___help_for_more_information._n
lea rcx, [rax + 0x60]
call fcn.1400301b0
mov ecx, r15d
call fcn.140030400
xor ecx, ecx
call fcn.1400402d0
lea rcx, [0x1402d4ab0]
xor edx, edx
mov r8d, 0x210
call sub.MSVCR120.dll_memset
call fcn.140040420
cmp dword [0x1402d4dbc], ebx
je 0x14003972f
cmp dword [0x1402d5018], ebx
jne 0x14003972f
mov r8d, dword [reloc.WS2_32.dll_accept]
mov esi, ebx
test r8d, r8d
jle 0x140039736
lea rdi, [0x1402d5358]
mov eax, dword [rdi + 0x218]
lea r9, [rdi - 0x40]
lea rdx, str.POOL__01d:__s_USER__s__s__d
mov dword [rsp + 0x28], eax
mov r8d, esi
mov ecx, 4
mov qword [rsp + 0x20], rdi
call fcn.140041b60
mov r8d, dword [reloc.WS2_32.dll_accept]
inc esi
add rdi, 0x6f8
cmp esi, r8d
jl 0x1400396f1
jmp 0x140039736
mov r8d, dword [reloc.WS2_32.dll_accept]
mov r9d, ebx
mov edi, ebx
test r8d, r8d
jle 0x14003977a
lea r10, [0x1402d50d0]
nop word [rax + rax]
mov eax, edi
cdq
idiv r8d
movsxd rax, edx
imul rcx, rax, 0x6f8
movzx eax, word [rcx + r10 + 2]
test al, 2
je 0x14003976e
test al, 0xc
je 0x140039777
inc edi
cmp edi, r8d
jl 0x140039750
jmp 0x14003977a
mov r9d, edx
mov dword [0x1402d4a90], r9d
mov edx, dword [0x1402d4a90]
call fcn.1400406a0
mov eax, dword [0x1402643b8]
cmp eax, r15d
je 0x1400397a2
mov eax, dword [0x1402643b8]
cmp eax, 0x18
jne 0x1400397ae
mov dword [reloc.WS2_32.dll_accept], ebx
mov dword [reloc.WS2_32.dll_accept], ebx
cmp dword [0x1402d5018], ebx
jne 0x1400397d9
mov rcx, qword [0x1402d4e90]
lea rdx, str.https:
mov r8d, 6
call qword [sym.imp.MSVCR120.dll_strncmp]
mov ecx, 2
test eax, eax
jne 0x1400397de
mov ecx, 3
call fcn.1400acdc0
test eax, eax
je 0x1400397ff
lea rdx, [0x1401dfcd8]
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1
cmp dword [0x1402d4f78], ebx
je 0x140039839
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14003981f
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140039839
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]
lea rcx, [0x1400391b0]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, dword [0x1402d4aac]
test ecx, ecx
jle 0x140039897
mov edi, 0x20
dec ecx
je 0x140039881
dec ecx
je 0x140039886
dec ecx
je 0x14003987a
dec ecx
je 0x140039873
dec ecx
jne 0x140039886
mov edi, 0x100
jmp 0x140039886
mov edi, 0x80
jmp 0x140039886
mov edi, 0x8000
jmp 0x140039886
mov edi, 0x4000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, 0x80000001
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov rax, qword [0x140264c90]
cmp rax, 0xffffffffffffffff
je 0x1400398e5
cmp dword [0x1402d4ec0], ebx
jne 0x1400398d2
lea rdx, str.Binding_process_to_cpu_mask__x
mov r8, rax
mov ecx, 4
call fcn.140041b60
mov rax, qword [0x140264c90]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov r8d, dword [0x1402d88d8]
test r8d, r8d
jne 0x140039909
lea rdx, str.No_CUDA_devices_found__terminating.
xor ecx, ecx
call fcn.140041b60
mov ecx, r15d
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov edi, dword [0x1402d4db8]
test edi, edi
jne 0x14003991f
mov edi, r8d
mov dword [0x1402d4db8], r8d
jmp 0x14003992d
cmp r8d, edi
cmovg r8d, edi
mov dword [0x1402d88d8], r8d
mov ecx, dword [reloc.WS2_32.dll_accept]
mov eax, edi
cdq
idiv r8d
cmp ecx, eax
cmovle ecx, eax
cmp dword [0x1402d5018], ebx
mov dword [reloc.WS2_32.dll_accept], ecx
je 0x1400399a0
mov eax, dword [0x1402643b8]
cmp eax, 0x1b
jne 0x14003999a
call fcn.1400479c0
mov qword [0x1402d8970], rbx
mov qword [0x1402d8978], rbx
mov qword [0x1402d8980], rbx
mov qword [0x1402d8988], rbx
mov qword [0x1402d8990], rbx
mov qword [0x1402d8998], rbx
mov qword [0x1402d89a0], rbx
mov qword [0x1402d89a8], rbx
mov dword [reloc.WS2_32.dll_accept], ebx
mov edi, dword [0x1402d4db8]
movsxd rcx, edi
mov edx, 0x80
call qword [sym.imp.MSVCR120.dll_calloc]
mov qword [0x1402d4ec8], rax
test rax, rax
je 0x1400397f5
lea eax, [rdi*2 + 4]
mov edx, 0x150
movsxd rcx, eax
call qword [sym.imp.MSVCR120.dll_calloc]
mov rdx, rax
mov qword [0x1402d4f88], rax
test rax, rax
je 0x1400397f5
lea ecx, [rdi + 1]
movsxd rax, ecx
mov dword [0x140264424], ecx
imul rsi, rax, 0x150
add rsi, rdx
mov edx, 0x28
mov dword [rsi], ecx
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_calloc]
mov rdi, rax
test rax, rax
jne 0x140039a19
mov rdi, rbx
jmp 0x140039a36
lea rcx, [rax + 0x18]
xor edx, edx
mov qword [rax], rax
mov qword [rax + 8], rax
call fcn.1401b6770
lea rcx, [rdi + 0x20]
xor edx, edx
call fcn.1401b5b90
mov qword [rsi + 0x28], rdi
test rdi, rdi
je 0x1400397f5
lea rcx, [rsi + 8]
lea r8, [0x140036020]
mov r9, rsi
xor edx, edx
call fcn.1401b5dd0
test eax, eax
je 0x140039a74
lea rdx, str.longpoll_thread_create_failed
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1
mov ecx, dword [0x1402d4db8]
add ecx, 2
movsxd rax, ecx
mov dword [0x140264420], ecx
imul rdi, rax, 0x150
add rdi, qword [0x1402d4f88]
mov dword [rdi], ecx
call fcn.140046b20
mov qword [rdi + 0x28], rax
test rax, rax
je 0x1400397f5
lea rcx, [rdi + 8]
lea r8, [0x140036e00]
mov r9, rdi
xor edx, edx
call fcn.1401b5dd0
test eax, eax
je 0x140039ad9
lea rdx, str.stratum_thread_create_failed
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1
movsxd rcx, dword [0x1402d4db8]
mov dword [0x1402eb0d4], ecx
imul rdi, rcx, 0x150
add rdi, qword [0x1402d4f88]
mov dword [rdi], ecx
call fcn.140046b20
mov qword [rdi + 0x28], rax
test rax, rax
je 0x1400397f5
lea rcx, [rdi + 8]
lea r8, [0x140032a60]
mov r9, rdi
xor edx, edx
call fcn.1401b5dd0
test eax, eax
je 0x140039b39
lea rdx, str.workio_thread_create_failed
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1
cmp dword [reloc.WS2_32.dll_accept], ebx
je 0x140039b78
cmp dword [0x1402d88dc], ebx
je 0x140039b78
mov rcx, qword [0x1402d4e90]
call qword [sym.imp.MSVCR120.dll__strdup]
mov rcx, qword [0x1402d4f88]
mov rdx, rax
movsxd rax, dword [0x140264420]
imul rax, rax, 0x150
mov rcx, qword [rax + rcx + 0x28]
call fcn.140046b70
call fcn.14004b690
mov rcx, rax
mov qword [0x1402d5010], rax
test rax, rax
je 0x140039c17
cmp dword [0x1402643bc], ebx
mov edi, ebx
setge dil
call fcn.140199410
lea rdx, str.NVML_GPU_monitoring_enabled.
mov ecx, 3
call fcn.140041b60
mov eax, dword [0x1402d88d8]
mov ebp, ebx
test eax, eax
jle 0x140039c0e
mov rsi, r12
movsx ecx, word [rsi]
call fcn.14004c4b0
movsx ecx, word [rsi]
cmp eax, r15d
cmove edi, r15d
call fcn.14004c7d0
movsx ecx, word [rsi]
cmp eax, r15d
cmove edi, r15d
call fcn.14004bfe0
cmp eax, r15d
jne 0x140039bf1
mov edi, r15d
jmp 0x140039bf5
test edi, edi
je 0x140039bfe
xor edx, edx
mov ecx, ebp
call fcn.1401999a0
mov eax, dword [0x1402d88d8]
inc ebp
add rsi, 2
cmp ebp, eax
jl 0x140039bc1
mov rcx, qword [0x1402d5010]
jmp 0x140039c1d
mov eax, dword [0x1402d88d8]
cmp dword [0x1402643bc], ebx
jl 0x140039c4a
test rcx, rcx
jne 0x140039c88
mov edi, ebx
test eax, eax
jle 0x140039c4f
xor edx, edx
mov ecx, edi
call fcn.1401999a0
inc edi
cmp edi, dword [0x1402d88d8]
jl 0x140039c30
mov rcx, qword [0x1402d5010]
test rcx, rcx
jne 0x140039c88
call fcn.14004f0e0
test eax, eax
jne 0x140039c6e
lea rdx, str.NVAPI_GPU_monitoring_enabled.
lea ecx, [rax + 3]
call fcn.140041b60
call fcn.140199410
jmp 0x140039c88
cmp qword [0x1402d5010], rbx
jne 0x140039c88
lea rdx, str.GPU_monitoring_is_not_available.
mov ecx, 3
call fcn.140041b60
cmp dword [0x140264ca8], ebx
je 0x140039cf5
mov ecx, dword [0x1402d4db8]
add ecx, 3
movsxd rax, ecx
mov dword [0x1402643b4], ecx
imul rdi, rax, 0x150
add rdi, qword [0x1402d4f88]
mov dword [rdi], ecx
call fcn.140046b20
mov qword [rdi + 0x28], rax
test rax, rax
je 0x1400397f5
lea rcx, [rdi + 8]
lea r8, [0x140052220]
mov r9, rdi
xor edx, edx
call fcn.1401b5dd0
test eax, eax
je 0x140039cf5
lea rdx, str.api_thread_create_failed
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1
mov r8d, dword [0x1402d4db8]
mov ebp, ebx
mov esi, ebx
lea r14, [0x140000000]
test r8d, r8d
jle 0x140039de2
movsxd rax, esi
imul rdi, rax, 0x150
lea rcx, [r12 + rax*2]
add rdi, qword [0x1402d4f88]
mov dword [rdi], esi
mov byte [rdi + 0x31], sil
movzx eax, byte [rcx]
mov byte [rdi + 0x30], al
movsx rax, word [rcx]
movzx eax, word [r14 + rax*4 + 0x2d8930]
mov word [rdi + 0x56], ax
movsx rax, word [rcx]
cmp dword [r14 + rax*4 + 0x2d8930], 0x1f4
jge 0x140039d68
lea r8, str.Unsupported_compute_capability_device._Ignoring
mov edx, esi
xor ecx, ecx
call fcn.140041d80
inc ebp
jmp 0x140039dd0
lea rcx, [rdi + 0x138]
xor edx, edx
call fcn.1401b6770
lea rcx, [rdi + 0x140]
xor edx, edx
call fcn.1401b5b90
call fcn.140046b20
mov qword [rdi + 0x28], rax
test rax, rax
je 0x1400397f5
lea rcx, [rdi + 8]
lea r8, [0x1400340e0]
mov r9, rdi
xor edx, edx
call fcn.1401b5dd0
test eax, eax
jne 0x140039f15
lea rcx, [rdi + 0x18]
lea r8, [0x140035d00]
mov r9, rdi
xor edx, edx
call fcn.1401b5dd0
test eax, eax
jne 0x140039efd
mov r8d, dword [0x1402d4db8]
inc esi
cmp esi, r8d
jl 0x140039d10
movsxd rax, dword [0x1402643b8]
lea rcx, [0x1401deb24]
sub r8d, ebp
mov rax, qword [r14 + rax*8 + 0x1dff40]
cmp r8d, r15d
lea r9, [0x1401de24d]
cmova r9, rcx
lea rdx, str._d_miner_thread_s_started__using__s_algorithm.
mov ecx, 3
mov qword [rsp + 0x20], rax
call fcn.140041b60
mov ecx, r15d
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
movsxd rax, dword [0x1402eb0d4]
xor edx, edx
imul rcx, rax, 0x150
mov rax, qword [0x1402d4f88]
movups xmm0, xmmword [rcx + rax + 8]
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
call fcn.1401b6150
cmp dword [0x1402d4db8], ebx
jle 0x140039eae
nop dword [rax + rax]
movsxd rax, ebx
lea rcx, [rsp + 0x50]
xor edx, edx
imul rdi, rax, 0x150
mov rax, qword [0x1402d4f88]
movups xmm0, xmmword [rdi + rax + 8]
movaps xmmword [rsp + 0x50], xmm0
call fcn.1401b6150
mov rax, qword [0x1402d4f88]
lea rcx, [rsp + 0x30]
xor edx, edx
movups xmm0, xmmword [rdi + rax + 0x18]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1401b6150
inc ebx
cmp ebx, dword [0x1402d4db8]
jl 0x140039e60
cmp dword [0x1402d4dbc], 0
je 0x140039ec8
lea rdx, str.workio_thread_dead__exiting.
mov ecx, 4
call fcn.140041b60
xor ecx, ecx
call fcn.140030400
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401bb2c0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Monitoring_thread__d_create_failed
mov r8d, esi
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1
lea rdx, str.Mining_thread__d_create_failed
mov r8d, esi
xor ecx, ecx
call fcn.140041b60
mov eax, 3
jmp 0x140039ed1