Function at 0x460d00
Capabilities:
Enumerate processes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov bpl, dl
mov r13, rcx
xor r12d, r12d
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x2c], r12d
xor esi, esi
mov dword [rsp + 0x28], esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov qword [rsp + 0x2f0], rax
cmp rax, 0xffffffffffffffff
jne 0x460d56
jmp 0x460e39
lea rcx, [rsp + 0x38]
call fcn.0040229c
nop
mov edi, 0x238
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x460e25
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x38]
call fcn.00402460
mov ecx, 0x18
call fcn.00402d48
mov rdi, rax
mov qword [rsp + 0x300], rax
test rax, rax
je 0x460df1
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov eax, dword [rsp + 0x34]
mov dword [rdi + 4], eax
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x38]
call fcn.004023d8
jmp 0x460df3
xor edi, edi
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.0040c234
lea rdx, [rsp + 0x60]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x460d95
mov esi, dword [rsp + 0x28]
mov r12, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r13 + 0x30]
call fcn.00402830
lea ecx, [rax + 1]
mov rax, qword [r13 + 0x30]
lea rdx, [rax + rcx*2]
lea rcx, [rsp + 0x48]
call fcn.00402338
nop
mov eax, dword [rsp + 0x50]
neg eax
sbb al, al
and al, bpl
mov byte [rsp + 0x2f0], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x300], eax
xor bpl, bpl
test esi, esi
je 0x460fd2
mov r14, r12
mov r15d, esi
mov r12b, byte [rsp + 0x2f0]
mov rbx, qword [r14]
mov edi, dword [rbx]
cmp edi, eax
je 0x460fb7
xor r8d, r8d
mov edx, dword [r13 + 8]
test edx, edx
je 0x460ecb
mov r9, qword [r13]
lea ecx, [r8 + rdx]
shr ecx, 1
cmp edi, dword [r9 + rcx*4]
je 0x460ed0
cmp edi, dword [r9 + rcx*4]
jae 0x460ec2
mov edx, ecx
jmp 0x460ec6
lea r8d, [rcx + 1]
cmp r8d, edx
jne 0x460eac
mov ecx, 0xffffffff
test ecx, ecx
jns 0x460fb0
test r12b, r12b
je 0x460eef
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + 0x48]
call fcn.00401808
test al, al
jne 0x460f2a
mov r9d, dword [rbx + 4]
xor r8d, r8d
mov edx, dword [r13 + 8]
test edx, edx
je 0x460f21
mov r10, qword [r13]
lea ecx, [r8 + rdx]
shr ecx, 1
cmp r9d, dword [r10 + rcx*4]
je 0x460f26
cmp r9d, dword [r10 + rcx*4]
jae 0x460f18
mov edx, ecx
jmp 0x460f1c
lea r8d, [rcx + 1]
cmp r8d, edx
jne 0x460f02
mov ecx, 0xffffffff
test ecx, ecx
js 0x460f9e
mov r8d, edi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x460fa7
xor r8d, r8d
mov edx, dword [r13 + 8]
test edx, edx
je 0x460f70
mov r9, qword [r13]
lea ecx, [r8 + rdx]
shr ecx, 1
cmp edi, dword [r9 + rcx*4]
je 0x460f7b
cmp edi, dword [r9 + rcx*4]
jae 0x460f67
mov edx, ecx
jmp 0x460f6b
lea r8d, [rcx + 1]
cmp r8d, edx
jne 0x460f51
mov r8d, edi
mov rcx, r13
call fcn.0045fa74
lea rcx, [r13 + 0x10]
mov rdx, rbx
call fcn.0040c234
lea rcx, [r13 + 0x20]
mov dl, 1
call fcn.00414c78
mov bpl, 1
mov eax, dword [rsp + 0x300]
jmp 0x460fb7
mov eax, dword [rsp + 0x300]
jmp 0x460fb7
mov eax, dword [rsp + 0x300]
jmp 0x460fb7
mov eax, dword [rsp + 0x300]
add r14, 8
dec r15
jne 0x460e90
test bpl, bpl
mov r12, qword [rsp + 0x20]
jne 0x460e77
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_free
nop
movsxd rax, esi
test esi, esi
je 0x46100c
lea rbx, [r12 + rax*8]
add esi, 0xffffffff
sub rbx, 8
mov rdi, qword [rbx]
test rdi, rdi
je 0x461008
mov rcx, qword [rdi + 8]
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_free
test esi, esi
jne 0x460fe8
mov rcx, r12
call sub.msvcrt.dll_free
add rsp, 0x2a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret