Function at 0x180040c90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x180178b40]
xor rax, rsp
mov qword [rbp + 0x440], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x180040ee8
cmp rax, 0xffffffffffffffff
je 0x180040ee8
cmp rax, 0x18
je 0x180040ee8
xor esi, esi
mov edi, esi
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180040d56
nop word [rax + rax]
mov r8d, 0x104
lea rdx, [rbp - 0x44]
lea rcx, [rbp + 0x330]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea rdx, str.HD_Player.exe
lea rcx, [rbp + 0x330]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x180040d51
lea rdx, [rbp - 0x70]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180040d10
jmp 0x180040d72
mov edi, dword [rbp - 0x68]
jmp 0x180040d72
mov r9d, 0x10
lea r8, str.Apply_Error
lea rdx, str.Process32First_At_GetProcessPidByName_Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180040f04
mov r8d, edi
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x180040f04
xor edx, edx
mov r8d, 0x398
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x70]
call fcn.18000b250
nop
mov r8d, 0x1fffff
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.18000b6b0
test eax, eax
js 0x180040ed6
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x60], rsi
mov ecx, 0x3de27
call fcn.1800e5708
test rax, rax
je 0x180040ee1
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rsp + 0x50], rcx
lea rbx, [rcx + 0x3de00]
mov qword [rsp + 0x60], rbx
mov r8d, 0x3de00
lea rdx, [0x18013ac40]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x58], rbx
mov r9, qword [rsp + 0x50]
sub rbx, r9
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 4
mov byte [rsp + 0x20], 0
mov r8, rbx
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x270]
call fcn.180001d70
cmp byte [rbp - 0x80], 0
je 0x180040e9d
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x180040e9d
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180040e9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x180040e9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180040ed6
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180040ed0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180040ee1
call fcn.1800e5744
nop
lea rcx, [rbp - 0x70]
call fcn.18000b5a0
jmp 0x180040f04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r9d, 0x10
lea r8, str.Apply_Error
lea rdx, str.CreateToolhelp32Snapshot_At_GetProcessPidByName_Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rbp + 0x440]
xor rcx, rsp
call fcn.1800e5bd0
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret