Function at 0x140021170
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x818]
sub rsp, 0x918
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov r12d, dword [rbp + 0x880]
mov esi, r8d
movsxd rbx, r9d
mov edi, edx
mov dword [rsp + 0x60], r8d
mov r14, rcx
mov dword [rsp + 0x64], edx
call fcn.14011ff24
xor r13d, r13d
test al, al
jne 0x140021236
cmp dword [r14 + 0x7c94], r13d
jne 0x140021532
mov rax, qword [rbp + 0x888]
lea r9, [0x14021c550]
mov dword [r14 + 0x7c94], 1
mov r8, rbx
mov rcx, qword [0x14021c5e0]
mov qword [0x14021c578], rax
mov eax, dword [rbp + 0x890]
mov dword [0x14021c56c], eax
mov dword [0x14021c550], 0x30
mov dword [0x14021c55c], edi
mov dword [0x14021c554], esi
mov dword [0x14021c564], r12d
mov edx, dword [r14 + 0x7c90]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140021532
cmp byte [0x14021c580], r13b
jne 0x140021532
xor edx, edx
mov dword [rbp + 0x3b0], 0x238
mov r8d, 0x234
lea rcx, [rbp + 0x3b4]
call fcn.14013b230
xor edx, edx
mov dword [rsp + 0x70], 0x438
mov r8d, 0x434
lea rcx, [rsp + 0x74]
call fcn.14013b230
cmp dword [rbp + 0x890], 0x40
mov ecx, 8
mov edx, r12d
mov rsi, r13
lea eax, [rcx + 0x10]
cmovne ecx, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rbp + 0x5f0]
mov r8d, 0x208
mov rdi, rax
call fcn.14013b230
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140021371
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x140021368
mov r15, qword [rbp + 0x888]
cmp dword [rsp + 0x78], r12d
jne 0x14002133e
cmp word [rbp + 0x5f0], r13w
jne 0x140021333
cmp word [rbp + 0x1a0], r13w
lea rax, [rbp - 0x60]
lea rbx, [rbp + 0x1a0]
cmove rbx, rax
mov rcx, rbx
call fcn.140125bf4
lea rdx, [0x140169428]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140021333
mov r8d, 0x104
lea rcx, [rbp + 0x5f0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test r15, r15
je 0x140021351
cmp qword [rbp - 0x68], r15
je 0x140021351
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x140021368
jmp 0x1400212d9
cmp word [rbp + 0x1a0], r13w
lea rsi, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
cmove rsi, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 2
cmp word [rbp + 0x5f0], r13w
jne 0x1400213e6
xor edx, edx
mov ecx, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400213e6
lea rdx, [rbp + 0x3b0]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400213dd
cmp dword [rbp + 0x3b8], r12d
je 0x1400213c3
lea rdx, [rbp + 0x3b0]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
jmp 0x1400213a5
mov r8d, 0x104
lea rdx, [rbp + 0x3dc]
lea rcx, [rbp + 0x5f0]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rbx, 0xffffffffffffffff
test rsi, rsi
jne 0x140021421
cmp word [rbp + 0x5f0], r13w
je 0x140021421
lea rcx, [rbp + 0x5f0]
call fcn.140125c18
mov rcx, rax
call fcn.140124a2c
test al, al
je 0x140021421
lea rsi, str._Check_plugins_in__FARHOME_Plugins_folder_
mov byte [0x14021c580], 1
jmp 0x14002142d
mov byte [0x14021c580], 1
test rsi, rsi
je 0x14002143c
mov rax, rbx
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140021430
jmp 0x14002143f
mov rax, r13
lea r13, [r14 + 0xaf0]
mov rcx, rbx
lea r15, [r14 + 0xa90]
xor edx, edx
inc rcx
cmp word [r15 + rcx*2], dx
jne 0x140021452
mov r8, rbx
inc r8
cmp word [r13 + r8*2], dx
jne 0x14002145f
add ecx, eax
lea r9, [rbp + 0x5f0]
mov rax, rbx
inc rax
cmp word [r9 + rax*2], dx
jne 0x140021476
add r8d, 0xff
mov rdx, rdi
add ecx, r8d
add eax, ecx
movsxd rbx, eax
mov rcx, rbx
call fcn.14012005c
mov rdi, rax
lea r8, [0x14015a140]
mov rcx, r8
lea rax, [0x14016abcc]
test rsi, rsi
mov r9, r15
mov rdx, rbx
cmovne rcx, rax
cmovne r8, rsi
mov qword [rsp + 0x58], rcx
lea rax, [rbp + 0x5f0]
mov qword [rsp + 0x50], r8
mov rcx, rdi
mov qword [rsp + 0x48], rax
lea r8, str._s_received_wrong_version_packet__n_s_n_nCommandID:__i__Version:__i__ReqVersion:__i__PID:__u_n_s_n_s_n_sPlease_check_installation_files
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 0xaa
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
call fcn.14012091c
or r9, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
lea r8, [r14 + 0x4dc0]
mov rcx, rdi
lea edx, [r9 + 0x41]
call fcn.14002b0f8
mov rcx, rdi
call fcn.14012008c
and dword [r14 + 0x7c94], 0
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x918
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret