Function at 0x140035af0
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 [0x140130c88], rax
lea rdx, [rbp + 0x5f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [rbp + 0x5f8]
mov word [0x140130c80], ax
mov eax, dword [str.Monero]
mov dword [0x1401305d0], eax
movzx eax, word [0x1400d9944]
mov word [0x1401305d4], ax
movzx eax, byte [0x1400d9946]
mov byte [0x1401305d6], al
mov dword [0x140130c60], 0x524d58
mov eax, dword [str.XMR:]
mov dword [0x14012f6f0], eax
movzx eax, byte [0x1400d994c]
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_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
lea r12d, [rsi + 1]
nop word [rax + rax]
mov dword [r15 + rax*4 + 0x130a60], esi
mov dword [r15 + rax*4 + 0x130420], esi
mov dword [r15 + rax*4 + 0x1304d0], esi
mov dword [r15 + rax*4 + 0x130860], esi
mov dword [r15 + rax*4 + 0x1305f0], 0xffffff9c
mov dword [r15 + rax*4 + 0x1309e0], esi
mov dword [r15 + rax*4 + 0x130960], esi
mov dword [r15 + rax*4 + 0x1307e0], r12d
mov dword [r15 + rax*4 + 0x1308e0], esi
mov dword [r15 + rax*4 + 0x130670], esi
mov dword [r15 + rax*4 + 0x130550], esi
cmp rax, 0x20
jae 0x1400369d5
mov byte [rax + r15 + 0x1306f0], sil
mov qword [r15 + rax*8 + 0x130b60], rsi
mov dword [r15 + rax*4 + 0x130ae0], esi
mov byte [rax + r15 + 0x12f8c0], r12b
inc rax
cmp rax, 0x20
jl 0x140035be0
mov ecx, 0x202
lea rdx, [rbp + 0x610]
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.14002e580
mov rdx, qword [rdi]
mov qword [rbp + 0x5e8], setsockopt
mov qword [rbp + 0x5e0], rsi
mov byte [rbp + 0x5d0], sil
cmp byte [rdx], sil
jne 0x140035cb0
mov r8, rsi
jmp 0x140035cbd
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x140035cb4
lea rcx, [rbp + 0x5d0]
call fcn.140002630
nop
lea rcx, [rbp + 0x5d0]
call fcn.140020df0
nop
cmp qword [rbp + 0x5e8], 0x10
jb 0x140035ced
mov rcx, qword [rbp + 0x5d0]
call fcn.140085158
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 0x140035d51
cmp byte [0x14012ce39], al
jne 0x140035d59
mov ecx, 0xa8
call fcn.1400851e4
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140035d42
mov rcx, rax
call fcn.140021860
jmp 0x140035d45
mov rax, rsi
mov qword [0x14012ce40], rax
test rax, rax
je 0x140035d59
mov rcx, rax
call fcn.140021ab0
mov qword [0x14012f7d8], rsi
mov qword [0x14012f7e0], rsi
cmp ebx, 1
je 0x140035d7e
cmp ebx, 2
je 0x140035d78
mov rdx, rdi
mov ecx, ebx
jmp 0x140035d9d
mov rcx, qword [rdi + 8]
jmp 0x140035d80
xor ecx, ecx
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.1400350d0
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jle 0x140035da2
mov rdx, qword [rsp + 0x38]
call fcn.140030130
cmp dword [0x14012f6ec], 0
jne 0x140035ea8
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 0x140035dd6
movsxd rcx, eax
test eax, eax
jle 0x140035dfa
cmp byte [rbp + rcx + 0x7b0], 0x5c
je 0x140035dfa
dec eax
dec rcx
test rcx, rcx
jg 0x140035de6
inc eax
movsxd rcx, eax
cmp rcx, 0x104
jae 0x140035ea2
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 0x140035e20
xor ecx, ecx
call fcn.1400869c4
mov rcx, rax
mov r8d, 0xa
lea rdx, [rbp + 0x7b0]
call fcn.140085eb4
lea rcx, [rbx - 1]
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140035e53
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 0x140035e70
dec rbx
lea rbx, [rbx + 1]
cmp byte [rbx], 0
jne 0x140035e83
mov rax, qword [str._log.txt]
mov qword [rbx], rax
movzx eax, byte [0x1400d9958]
mov byte [rbx + 8], al
jmp 0x140035ea8
call fcn.140085d40
int3
movzx eax, byte [0x14012ce8e]
neg al
sbb ecx, ecx
mov dword [0x14012ce80], ecx
call fcn.1400349f0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [0x14012ce80], esi
call fcn.140031070
mov edi, esi
mov rbx, qword [0x140133960]
mov rcx, rbx
mov r8, qword [0x140133958]
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 0x140036053
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 0x140035fa1
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 0x140035f40
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x140035faf
mov r8d, 0x318
mov rcx, rbx
call fcn.1400847d0
lea rcx, [rbp + 0x2b0]
call fcn.14002e270
test al, al
jne 0x140036015
movsxd rbx, edi
imul rbx, rbx, 0x318
mov r8, qword [0x140133958]
add r8, rbx
lea rdx, str.Pool__s_removed_from_the_list_n
xor ecx, ecx
call fcn.140014e30
mov r8, qword [0x140133958]
add r8, rbx
lea rcx, [r8 + 0x318]
mov rdx, qword [0x140133960]
call fcn.140050200
mov rbx, qword [0x140133960]
sub rbx, 0x318
mov qword [0x140133960], rbx
jmp 0x140036025
inc edi
add rsi, 0x318
mov rbx, qword [0x140133960]
mov rcx, rbx
mov r8, qword [0x140133958]
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 0x140035f20
xor esi, esi
cmp r8, rbx
jne 0x14003607e
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.140015020
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140088948
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, [0x1400d98c8]
lea rcx, [0x1400d98cc]
cmp rdx, 1
cmova rcx, rax
lea rbx, reloc.WS2_32.dll_WSAStartup
lea rax, [0x1400d54a0]
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 [0x140133958]
mov r9d, dword [r8 + 0x300]
lea rdx, str.Main_pool_is__s:_d_n
xor ecx, ecx
call fcn.140014e30
cmp dword [0x14012f7d0], 0
je 0x14003611a
lea r8, str._n_NO_FEE__MODE___SOME_OPTIMIZATIONS_WILL_BE_DISABLED_n
mov edx, 3
xor ecx, ecx
call fcn.140015020
movss xmm0, dword [0x140107c1c]
addss xmm0, dword [0x1400db230]
movss dword [0x140107c1c], xmm0
mov edx, r12d
lea rcx, [0x1400318f0]
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 [0x14012f8fc], 0
jge 0x14003617b
mov dword [0x14012f8fc], esi
lea rdx, str.Force_disable_AES_NI_n
xor ecx, ecx
call fcn.140014e30
mov ecx, dword [0x14012f8fc]
jmp 0x14003619e
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 [0x14012f8fc], ecx
test ecx, ecx
lea rdx, str.CPU_supports_AES_NI___faster_mining__n
jne 0x1400361b0
lea rdx, str.CPU_does_not_support_AES_NI___slower_mining__n
xor ecx, ecx
call fcn.140014e30
mov r8d, dword [0x14012fc18]
test r8d, r8d
je 0x140036204
xor ecx, ecx
cmp dword [0x14012f8fc], ecx
jne 0x1400361e1
lea rdx, str._lowcpu_is_not_supported_for_CPUs_that_dont_support_AES_NI__ignore_it_n
call fcn.140014e30
mov dword [0x14012fc18], esi
jmp 0x140036204
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 0x140036278
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 0x14003626a
mov dword [0x140107c28], ebx
cmp dword [0x14012f8fc], 0
je 0x140036255
cmp ebx, 8
jl 0x14003624c
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
jmp 0x14003624f
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 [0x14012f8e0], eax
movsxd rdx, eax
call fcn.1400384c0
mov ebx, esi
mov rax, qword [0x140133898]
mov rcx, qword [0x140133890]
sub rax, rcx
sar rax, 2
test eax, eax
jle 0x1400362e3
mov r8d, dword [0x14012fc18]
inc r8d
mov rdx, rsi
mov dword [rcx + rdx], r8d
inc ebx
lea rdx, [rdx + 4]
mov rax, qword [0x140133898]
mov rcx, qword [0x140133890]
sub rax, rcx
sar rax, 2
cmp ebx, eax
jl 0x1400362c0
movsxd rdx, dword [0x14012f8e0]
call fcn.1400152e0
mov eax, dword [0x14012fc18]
test eax, eax
lea ebx, [rax + 1]
jne 0x140036302
mov ebx, dword [0x140107c28]
mov r9b, 1
lea rdx, str.S_1_1_0
call fcn.140018b30
xor ecx, ecx
test eax, eax
lea rdx, str.scfg:_1_n
jne 0x140036325
lea rdx, str.scfg:_0_n
call fcn.140014e30
mov ecx, ebx
call fcn.140010110
mov qword [0x140130c78], rax
test rax, rax
jne 0x140036356
lea r8, str.No_memory__exit_n
lea edx, [rax + 3]
xor ecx, ecx
call fcn.140015020
xor ecx, ecx
call fcn.140088948
int3
mov byte [0x14012f700], 0
mov byte [0x140130710], 0
mov dword [0x1401304bc], esi
lea rbx, [0x14012f900]
mov rdx, qword [0x140133958]
mov rcx, rbx
mov rax, rdx
or rax, rbx
and eax, 0xf
jne 0x1400363f1
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 0x140036390
movaps xmm0, xmmword [rdx]
movaps xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x1400363fc
mov r8d, 0x318
call fcn.1400847d0
cmp byte [0x14012fa00], 0
jne 0x14003642e
mov rcx, qword [0x14012f7d8]
test rcx, rcx
je 0x14003642e
lea rdx, [0x14012fa00]
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140036420
cmp byte [0x14012fb00], 0
jne 0x14003645e
mov rcx, qword [0x14012f7e0]
test rcx, rcx
je 0x14003645e
lea rdx, [0x14012fb00]
sub rdx, rcx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rcx + rdx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140036450
lea r9, [rbp - 0x70]
lea rcx, [rbp - 0x70]
mov rax, rbx
or rax, rcx
and eax, 0xf
jne 0x1400364d2
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 0x140036471
movaps xmm0, xmmword [rbx]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
jmp 0x1400364e3
mov r8d, 0x318
mov rdx, rbx
mov rcx, r9
call fcn.1400847d0
lea rcx, [rbp - 0x70]
call fcn.14002e270
cmp dword [0x14012f8e0], 0
jne 0x14003650b
lea rdx, str.No_cards_found__exit_n
xor ecx, ecx
call fcn.140014e30
xor ecx, ecx
call fcn.140088948
int3
call fcn.14000eec0
mov rcx, qword [0x140133960]
sub rcx, qword [0x140133958]
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 0x14003654b
lea rdx, str.1_pool_specified._n
call fcn.140014e30
jmp 0x14003655a
mov r8, rdx
lea rdx, str._d_pools_specified._n
call fcn.140014e30
mov r8d, dword [0x140107c24]
test r8d, r8d
je 0x140036598
xor ecx, ecx
cmp byte [reloc.WS2_32.dll_accept], cl
jne 0x14003658c
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 0x140036598
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 [0x14012f8e0]
test edi, edi
jle 0x140036612
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
movsxd rax, ebx
mov qword [r15 + rax*8 + 0x12fc20], rcx
inc ebx
mov edi, dword [0x14012f8e0]
cmp ebx, edi
jl 0x1400365b2
test edi, edi
jle 0x140036612
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, [0x140031950]
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 0x1400365e0
xor ecx, ecx
call fcn.1400869c4
mov qword [0x14012f8f0], rax
mov rdx, qword [0x14012f7d8]
test rdx, rdx
je 0x140036656
cmp byte [rdx], 0
jne 0x140036636
mov r8, rsi
jmp 0x14003664a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140036640
lea rcx, [0x140117f48]
call fcn.140002630
mov rdx, qword [0x14012f7e0]
test rdx, rdx
je 0x140036686
cmp byte [rdx], 0
jne 0x14003666c
mov r8, rsi
jmp 0x14003667a
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140036670
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, [0x1400349e0]
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 [0x14012f7d8]
test rdx, rdx
je 0x1400366ec
cmp byte [rdx], 0
jne 0x1400366d2
mov r8, rsi
jmp 0x1400366e0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400366d6
lea rcx, [0x140128588]
call fcn.140002630
mov rdx, qword [0x14012f7e0]
test rdx, rdx
je 0x14003671c
cmp byte [rdx], 0
jne 0x140036702
mov r8, rsi
jmp 0x140036710
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140036706
lea rcx, [0x1401285a8]
call fcn.140002630
mov word [0x1401182d0], 1
cmp dword [0x14012f7d0], 0
jne 0x14003675b
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
lea r9, [0x1401182d0]
lea r8, [0x1400349e0]
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, [0x1400350a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140107c24], 0
je 0x1400367cc
mov ecx, gethostbyname
call fcn.1400851e4
mov rcx, rax
test rax, rax
je 0x1400367b2
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 0x1400367b5
mov rcx, rsi
mov qword [rcx + 0x20], rsi
lea rax, [0x140018d20]
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 [0x1401339a8]
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 0x1400367d2
mov ecx, dword [0x1401307e0]
lea eax, [rcx - 1]
cmp eax, 4
ja 0x140036849
lea ecx, [rcx + rcx*4]
add ecx, ecx
mov eax, r13d
cdq
idiv ecx
test edx, edx
jne 0x140036874
mov rbx, qword [0x1401339a8]
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 0x14003691a
lea r13, sym.NsCpuCNMiner.exe_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
nop word [rax + rax]
mov rax, qword [r13 + rsi*8 + 0x12fc20]
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 0x14003690b
mov r9d, edi
mov edx, 3
xor ecx, ecx
cmp dword [0x14012f6dc], ecx
je 0x1400368f8
lea r8, str.WATCHDOG:_Thread__d_hangs_in_OpenCL_call__exit_n
call fcn.140015020
mov r15b, 1
jmp 0x14003690b
lea r8, str.WATCHDOG:_Thread__d_hangs_in_OpenCL_call__you_need_to_restart_miner_:___n
call fcn.140015020
mov byte [0x14012f6fb], 1
inc edi
inc rsi
cmp rsi, r12
jl 0x1400368a0
mov r13d, dword [rsp + 0x40]
cmp byte [0x14012f6fb], 0
je 0x140036942
lea r8, str.WATCHDOG:_GPU_memory_error__you_need_to_restart_miner_:___n
mov edx, 3
xor ecx, ecx
call fcn.140015020
mov eax, dword [0x14012f6dc]
test eax, eax
jne 0x140036956
jmp 0x140036948
mov eax, dword [0x14012f6dc]
test r15b, r15b
jne 0x140036956
cmp byte [0x14012f6fb], r15b
je 0x14003696a
cmp dword [0x14012f8bc], 0
jl 0x140036966
call fcn.140034ed0
jmp 0x14003696a
test eax, eax
jne 0x1400369cd
cmp dword [0x14012f8bc], 0x14
mov esi, 0
jl 0x1400367d2
xor ecx, ecx
call fcn.1400869c4
mov rdx, qword [0x14012f8f0]
mov rcx, rax
call fcn.1400882ec
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 [0x14012f8bc]
jl 0x1400367d2
lea rdx, str.Restart_by_timer_n
xor ecx, ecx
call fcn.140014e30
call fcn.140034ed0
jmp 0x1400367d2
xor ecx, ecx
call fcn.140088948
int3
call fcn.140085d40
int3