Function at 0x140035f90
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8d0]
sub rsp, 0x9d0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0xa20], rbx
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x8c0], rax
mov rdi, rdx
mov ebx, ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], rdx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x140130cf0], rax
lea rdx, [rbp + 0x5f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [rbp + 0x5f8]
mov word [0x140130ce8], ax
mov byte [0x14012f900], 0
mov eax, dword [str.Monero]
mov dword [0x1401306b8], eax
movzx eax, word [0x1400d9a24]
mov word [0x1401306bc], ax
movzx eax, byte [0x1400d9a26]
mov byte [0x1401306be], al
mov dword [0x140130cd0], 0x524d58
mov eax, dword [str.XMR:]
mov dword [0x14012f6f0], eax
movzx eax, byte [0x1400d9a2c]
mov byte [0x14012f6f4], al
mov byte [0x14012ce90], 0
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov eax, esi
lea r15, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
lea r12d, [rsi + 1]
nop dword [rax]
mov dword [r15 + rax*4 + 0x130b50], esi
mov dword [r15 + rax*4 + 0x130490], esi
mov dword [r15 + rax*4 + 0x130530], esi
mov dword [r15 + rax*4 + 0x1308d0], esi
mov dword [r15 + rax*4 + 0x130630], 0xffffff9c
mov dword [r15 + rax*4 + 0x130a50], esi
mov dword [r15 + rax*4 + 0x1309d0], esi
mov dword [r15 + rax*4 + 0x130850], r12d
mov dword [r15 + rax*4 + 0x130950], esi
mov dword [r15 + rax*4 + 0x130700], esi
mov dword [r15 + rax*4 + 0x1305b0], esi
cmp rax, 0x20
jae 0x140036e75
mov byte [rax + r15 + 0x1306d8], sil
mov qword [r15 + rax*8 + 0x130bd0], rsi
mov dword [r15 + rax*4 + 0x130ad0], esi
mov byte [rax + r15 + 0x12f8c8], r12b
inc rax
cmp rax, 0x20
jl 0x140036080
mov ecx, 0x202
lea rdx, [rbp + 0x610]
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.14002e8d0
mov rdx, qword [rdi]
mov qword [rbp + 0x5e8], setsockopt
mov qword [rbp + 0x5e0], rsi
mov byte [rbp + 0x5d0], sil
cmp byte [rdx], sil
jne 0x140036150
mov r8, rsi
jmp 0x14003615d
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x140036154
lea rcx, [rbp + 0x5d0]
call fcn.140002630
nop
lea rcx, [rbp + 0x5d0]
call fcn.140021130
nop
cmp qword [rbp + 0x5e8], 0x10
jb 0x14003618d
mov rcx, qword [rbp + 0x5d0]
call fcn.1400855f8
mov qword [rbp + 0x5e8], setsockopt
mov qword [rbp + 0x5e0], rsi
mov byte [rbp + 0x5d0], 0
mov dword [reloc.WS2_32.dll_accept], 4
mov rax, qword [0x14012ce40]
test rax, rax
jne 0x1400361f1
cmp byte [0x14012ce39], al
jne 0x1400361f9
mov ecx, 0xa8
call fcn.140085684
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400361e2
mov rcx, rax
call fcn.140021ba0
jmp 0x1400361e5
mov rax, rsi
mov qword [0x14012ce40], rax
test rax, rax
je 0x1400361f9
mov rcx, rax
call fcn.140021df0
mov qword [0x14012f7e0], rsi
mov qword [0x14012f7e8], rsi
cmp ebx, 1
je 0x14003621e
cmp ebx, 2
je 0x140036218
mov rdx, rdi
mov ecx, ebx
jmp 0x14003623d
mov rcx, qword [rdi + 8]
jmp 0x140036220
xor ecx, ecx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.140035570
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jle 0x140036242
mov rdx, qword [rsp + 0x38]
call fcn.140030480
cmp dword [0x14012f6fc], 0
jne 0x140036348
mov byte [rbp + 0x7b0], 0
mov r8d, 0xfa
lea rdx, [rbp + 0x7b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x7b0]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140036276
movsxd rcx, eax
test eax, eax
jle 0x14003629a
cmp byte [rbp + rcx + 0x7b0], 0x5c
je 0x14003629a
dec eax
dec rcx
test rcx, rcx
jg 0x140036286
inc eax
movsxd rcx, eax
cmp rcx, 0x104
jae 0x140036342
mov byte [rbp + rcx + 0x7b0], 0
mov rcx, rsi
lea rbx, [0x14012ce90]
nop
movzx eax, byte [rbp + rcx + 0x7b0]
mov byte [rcx + rbx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400362c0
xor ecx, ecx
call fcn.140086da4
mov rcx, rax
mov r8d, 0xa
lea rdx, [rbp + 0x7b0]
call fcn.140086354
lea rcx, [rbx - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400362f3
lea r8, [rbp + 0x7b0]
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140036310
dec rbx
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x140036323
mov rax, qword [str._log.txt]
mov qword [rbx], rax
movzx eax, byte [0x1400d9a38]
mov byte [rbx + 8], al
jmp 0x140036348
call fcn.1400861e0
int3
movzx eax, byte [0x14012ce8e]
neg al
sbb ecx, ecx
mov dword [0x14012ce80], ecx
call fcn.140034e90
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x14012ce80], esi
call fcn.140031450
mov edi, esi
mov rbx, qword [0x1401339f0]
mov rcx, rbx
mov r8, qword [0x1401339e8]
sub rcx, r8
movabs r13, 0xa57eb50295fad40b
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov r14d, 6
test edx, edx
jle 0x1400364f3
nop dword [rax]
lea rbx, [rbp + 0x2b0]
lea rdx, [r8 + rsi]
lea rcx, [rbp + 0x2b0]
mov rax, rdx
or rax, rcx
and eax, 0xf
jne 0x140036441
mov rax, r14
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
dec rax
jne 0x1400363e0
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x14003644f
mov r8d, 0x318
mov rcx, rbx
call fcn.140084c70
lea rcx, [rbp + 0x2b0]
call fcn.14002e5b0
test al, al
jne 0x1400364b5
movsxd rbx, edi
imul rbx, rbx, 0x318
mov r8, qword [0x1401339e8]
add r8, rbx
lea rdx, str.Pool__s_removed_from_the_list_n
xor ecx, ecx
call fcn.140014e30
mov r8, qword [0x1401339e8]
add r8, rbx
lea rcx, [r8 + 0x318]
mov rdx, qword [0x1401339f0]
call fcn.1400506a0
mov rbx, qword [0x1401339f0]
sub rbx, 0x318
mov qword [0x1401339f0], rbx
jmp 0x1400364c5
inc edi
add rsi, 0x318
mov rbx, qword [0x1401339f0]
mov rcx, rbx
mov r8, qword [0x1401339e8]
sub rcx, r8
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edi, edx
jl 0x1400363c0
xor esi, esi
cmp r8, rbx
jne 0x14003651e
lea r8, str.No_pools_specified__Specify_at_least_one_pool_in__epools.txt__file_or_in___o__parameter.__n
mov edx, 3
xor ecx, ecx
call fcn.140015030
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140088d28
int3
sub rbx, r8
mov rax, r13
imul rbx
add rdx, rbx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [0x1400d99a8]
lea rcx, [0x1400d99ac]
cmp rdx, 1
cmova rcx, rax
lea rbx, reloc.WS2_32.dll_WSAStartup
lea rax, [0x1400d54c0]
cmova rax, rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, rdx
lea r8, [0x14012f6f0]
lea rdx, str._s__d_pool_s__s_specified_n
xor ecx, ecx
call fcn.140014e30
mov r8, qword [0x1401339e8]
mov r9d, dword [r8 + 0x300]
lea rdx, str.Main_pool_is__s:_d_n
xor ecx, ecx
call fcn.140014e30
cmp dword [0x14012f7d8], 0
je 0x1400365ba
lea r8, str._n_NO_FEE__MODE___SOME_OPTIMIZATIONS_WILL_BE_DISABLED_n
mov edx, 3
xor ecx, ecx
call fcn.140015030
movss xmm0, dword [0x140107c1c]
addss xmm0, dword [0x1400db310]
movss dword [0x140107c1c], xmm0
mov edx, r12d
lea rcx, [0x140031cd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea rdx, str.64_bit_version_n
xor ecx, ecx
call fcn.140014e30
cmp dword [0x14012f968], 0
jge 0x14003661b
mov dword [0x14012f968], esi
lea rdx, str.Force_disable_AES_NI_n
xor ecx, ecx
call fcn.140014e30
mov ecx, dword [0x14012f968]
jmp 0x14003663e
mov eax, r12d
xor ecx, ecx
cpuid
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
shr ecx, 0x19
and ecx, 1
mov dword [0x14012f968], ecx
test ecx, ecx
lea rdx, str.CPU_supports_AES_NI___faster_mining__n
jne 0x140036650
lea rdx, str.CPU_does_not_support_AES_NI___slower_mining__n
xor ecx, ecx
call fcn.140014e30
mov r8d, dword [0x14012f96c]
test r8d, r8d
je 0x1400366a4
xor ecx, ecx
cmp dword [0x14012f968], ecx
jne 0x140036681
lea rdx, str._lowcpu_is_not_supported_for_CPUs_that_dont_support_AES_NI__ignore_it_n
call fcn.140014e30
mov dword [0x14012f96c], esi
jmp 0x1400366a4
mov dword [0x140107c28], r12d
lea rdx, str.Low_CPU_usage_mode___lowcpu___d_:_Maximal_speed_on_1_thread_n
call fcn.140014e30
lea rdx, str.Using_1_thread_n
xor ecx, ecx
call fcn.140014e30
jmp 0x140036718
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [rbp - 0x80]
mov r8d, ebx
lea rdx, str.Logical_CPU_cores:__d_n
xor ecx, ecx
call fcn.140014e30
mov r8d, dword [0x140107c28]
test r8d, r8d
jg 0x14003670a
mov dword [0x140107c28], ebx
cmp dword [0x14012f968], 0
je 0x1400366f5
cmp ebx, 8
jl 0x1400366ec
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
jmp 0x1400366ef
lea eax, [rbx - 1]
mov dword [0x140107c28], eax
lea rdx, str.Number_of_threads:_Autoselection..._n
xor ecx, ecx
call fcn.140014e30
mov r8d, dword [0x140107c28]
lea rdx, str.Using__d_threads_n
xor ecx, ecx
call fcn.140014e30
mov eax, dword [0x140107c28]
test eax, eax
cmovle eax, r12d
mov dword [0x140107c28], eax
mov dword [0x14012f8e8], eax
movsxd rdx, eax
call fcn.140038960
mov ebx, esi
mov rax, qword [0x140133900]
mov rcx, qword [0x1401338f8]
sub rax, rcx
sar rax, 2
test eax, eax
jle 0x140036783
mov r8d, dword [0x14012f96c]
inc r8d
mov rdx, rsi
mov dword [rcx + rdx], r8d
inc ebx
lea rdx, [rdx + 4]
mov rax, qword [0x140133900]
mov rcx, qword [0x1401338f8]
sub rax, rcx
sar rax, 2
cmp ebx, eax
jl 0x140036760
movsxd rdx, dword [0x14012f8e8]
call fcn.1400152f0
mov eax, dword [0x14012f96c]
test eax, eax
lea ebx, [rax + 1]
jne 0x1400367a2
mov ebx, dword [0x140107c28]
mov r9b, 1
lea rdx, str.S_1_1_0
call fcn.140018b40
xor ecx, ecx
test eax, eax
lea rdx, str.scfg:_1_n
jne 0x1400367c5
lea rdx, str.scfg:_0_n
call fcn.140014e30
mov ecx, ebx
call fcn.140010110
mov qword [0x140130ce0], rax
test rax, rax
jne 0x1400367f6
lea r8, str.No_memory__exit_n
lea edx, [rax + 3]
xor ecx, ecx
call fcn.140015030
xor ecx, ecx
call fcn.140088d28
int3
mov byte [0x14012f710], 0
mov byte [0x140130780], 0
mov dword [0x140130524], esi
lea rbx, [0x14012f970]
mov rdx, qword [0x1401339e8]
mov rcx, rbx
mov rax, rdx
or rax, rbx
and eax, 0xf
jne 0x140036891
mov rax, r14
nop dword [rax]
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rdx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
dec rax
jne 0x140036830
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x14003689c
mov r8d, 0x318
call fcn.140084c70
cmp byte [0x14012fa70], 0
jne 0x1400368ce
mov rcx, qword [0x14012f7e0]
test rcx, rcx
je 0x1400368ce
lea rdx, [0x14012fa70]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400368c0
cmp byte [0x14012fb70], 0
jne 0x1400368fe
mov rcx, qword [0x14012f7e8]
test rcx, rcx
je 0x1400368fe
lea rdx, [0x14012fb70]
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400368f0
lea r9, [rbp - 0x70]
lea rcx, [rbp - 0x70]
mov rax, rbx
or rax, rcx
and eax, 0xf
jne 0x140036972
movaps xmm0, xmmword [rbx]
movaps xmmword [rcx], xmm0
movaps xmm1, xmmword [rbx + 0x10]
movaps xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [rbx + 0x20]
movaps xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [rbx + 0x30]
movaps xmmword [rcx + 0x30], xmm1
movaps xmm0, xmmword [rbx + 0x40]
movaps xmmword [rcx + 0x40], xmm0
movaps xmm1, xmmword [rbx + 0x50]
movaps xmmword [rcx + 0x50], xmm1
movaps xmm0, xmmword [rbx + 0x60]
movaps xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movaps xmm1, xmmword [rbx + 0x70]
movaps xmmword [rcx - 0x10], xmm1
lea rbx, [rbx + 0x80]
dec r14
jne 0x140036911
movaps xmm0, xmmword [rbx]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x140036983
mov r8d, 0x318
mov rdx, rbx
mov rcx, r9
call fcn.140084c70
lea rcx, [rbp - 0x70]
call fcn.14002e5b0
cmp dword [0x14012f8e8], 0
jne 0x1400369ab
lea rdx, str.No_cards_found__exit_n
xor ecx, ecx
call fcn.140014e30
xor ecx, ecx
call fcn.140088d28
int3
call fcn.14000eec0
mov rcx, qword [0x1401339f0]
sub rcx, qword [0x1401339e8]
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xor ecx, ecx
cmp rdx, 1
jne 0x1400369eb
lea rdx, str.1_pool_specified._n
call fcn.140014e30
jmp 0x1400369fa
mov r8, rdx
lea rdx, str._d_pools_specified._n
call fcn.140014e30
mov r8d, dword [0x140107c24]
test r8d, r8d
je 0x140036a38
xor ecx, ecx
cmp byte [reloc.WS2_32.dll_accept], cl
jne 0x140036a2c
lea rdx, str.Remote_management_is_enabled_on_port__d_n
call fcn.140014e30
lea rdx, str.Warning:_use_negative__mport_option_value__read_only_mode__or_disable_remote_management_entirely_if_you_think_that_you_can_be_attacked_via_this_port__n
xor ecx, ecx
call fcn.140014e30
jmp 0x140036a38
lea rdx, str.Remote_management__READ_ONLY_MODE__is_enabled_on_port__d_n
call fcn.140014e30
lea rdx, str.Press__s__key_for_statistics._n
xor ecx, ecx
call fcn.140014e30
mov ebx, esi
mov edi, dword [0x14012f8e8]
test edi, edi
jle 0x140036ab2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
movsxd rax, ebx
mov qword [r15 + rax*8 + 0x12fc90], rcx
inc ebx
mov edi, dword [0x14012f8e8]
cmp ebx, edi
jl 0x140036a52
test edi, edi
jle 0x140036ab2
mov rbx, rsi
mov esi, edi
xor r14d, r14d
nop dword [rax]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rbx
lea r8, [0x140031d30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc rbx
dec rsi
jne 0x140036a80
xor ecx, ecx
call fcn.140086da4
mov qword [0x14012f8f8], rax
mov rdx, qword [0x14012f7e0]
test rdx, rdx
je 0x140036af6
cmp byte [rdx], 0
jne 0x140036ad6
mov r8, rsi
jmp 0x140036aea
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140036ae0
lea rcx, [0x140117f48]
call fcn.140002630
mov rdx, qword [0x14012f7e8]
test rdx, rdx
je 0x140036b26
cmp byte [rdx], 0
jne 0x140036b0c
mov r8, rsi
jmp 0x140036b1a
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140036b10
lea rcx, [0x140117f68]
call fcn.140002630
mov word [0x140107c90], 0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
lea r9, [0x140107c90]
lea r8, [0x140034e80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rdx, qword [0x14012f7e0]
test rdx, rdx
je 0x140036b8c
cmp byte [rdx], 0
jne 0x140036b72
mov r8, rsi
jmp 0x140036b80
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140036b76
lea rcx, [0x140128588]
call fcn.140002630
mov rdx, qword [0x14012f7e8]
test rdx, rdx
je 0x140036bbc
cmp byte [rdx], 0
jne 0x140036ba2
mov r8, rsi
jmp 0x140036bb0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140036ba6
lea rcx, [0x1401285a8]
call fcn.140002630
mov word [0x1401182d0], 1
cmp dword [0x14012f7d8], 0
jne 0x140036bfb
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
lea r9, [0x1401182d0]
lea r8, [0x140034e80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x140035540]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140107c24], 0
je 0x140036c6c
mov ecx, gethostbyname
call fcn.140085684
mov rcx, rax
test rax, rax
je 0x140036c52
mov qword [rax + 0x18], rsi
mov byte [rax + 0x14], 0
mov byte [rax + 0xc], 0
mov dword [rax + 0x10], 0xffffffff
lea rax, vtable.TUniSimpleThread.0
mov qword [rcx], rax
jmp 0x140036c55
mov rcx, rsi
mov qword [rcx + 0x20], rsi
lea rax, [0x140018d60]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx]
mov dl, 1
call qword [rax + reloc.WS2_32.dll_recv]
mov r13d, esi
movsxd r12, edi
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [0x140133a38]
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14000f150
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc r13d
mov dword [rsp + 0x40], r13d
mov eax, 0x66666667
imul r13d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r13d, ecx
jne 0x140036c72
mov ecx, dword [0x140130850]
lea eax, [rcx - 1]
cmp eax, 4
ja 0x140036ce9
lea ecx, [rcx + rcx*4]
add ecx, ecx
mov eax, r13d
cdq
idiv ecx
test edx, edx
jne 0x140036d14
mov rbx, qword [0x140133a38]
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.14000f150
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r15b, r15b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov edi, esi
test r12, r12
jle 0x140036dba
lea r13, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
nop word [rax + rax]
mov rax, qword [r13 + rsi*8 + 0x12fc90]
cmp r14, rax
cmovb rax, r14
mov rbx, r14
sub rbx, rax
mov r9, rbx
mov r8d, edi
lea rdx, str.watchdog___thread__d__hb_time__d_n
mov ecx, 2
call fcn.140014e30
cmp rbx, 0xea60
jbe 0x140036dab
mov r9d, edi
mov edx, 3
xor ecx, ecx
cmp dword [0x14012f6e0], ecx
je 0x140036d98
lea r8, str.WATCHDOG:_Thread__d_hangs_in_OpenCL_call__exit_n
call fcn.140015030
mov r15b, 1
jmp 0x140036dab
lea r8, str.WATCHDOG:_Thread__d_hangs_in_OpenCL_call__you_need_to_restart_miner_:___n
call fcn.140015030
mov byte [0x14012f6fb], 1
inc edi
inc rsi
cmp rsi, r12
jl 0x140036d40
mov r13d, dword [rsp + 0x40]
cmp byte [0x14012f6fb], 0
je 0x140036de2
lea r8, str.WATCHDOG:_GPU_memory_error__you_need_to_restart_miner_:___n
mov edx, 3
xor ecx, ecx
call fcn.140015030
mov eax, dword [0x14012f6e0]
test eax, eax
jne 0x140036df6
jmp 0x140036de8
mov eax, dword [0x14012f6e0]
test r15b, r15b
jne 0x140036df6
cmp byte [0x14012f6fb], r15b
je 0x140036e0a
cmp dword [0x14012f7fc], 0
jl 0x140036e06
call fcn.140035370
jmp 0x140036e0a
test eax, eax
jne 0x140036e6d
cmp dword [0x14012f7fc], 0x14
mov esi, 0
jl 0x140036c72
xor ecx, ecx
call fcn.140086da4
mov rdx, qword [0x14012f8f8]
mov rcx, rax
call fcn.1400886cc
cvttsd2si ecx, xmm0
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, dword [0x14012f7fc]
jl 0x140036c72
lea rdx, str.Restart_by_timer_n
xor ecx, ecx
call fcn.140014e30
call fcn.140035370
jmp 0x140036c72
xor ecx, ecx
call fcn.140088d28
int3
call fcn.1400861e0
int3