Function at 0x1800122a0
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1800396f0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rax, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x28], esi
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rcx, [0x1800395a8]
mov rax, qword [0x1800395a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rsp + 0x50], xmm0
mov eax, dword [0x18002b888]
mov dword [rsp + 0x60], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rsp + 0x64]
call fcn.180018ab0
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x18001237e
lea r9, [rsp + 0x38]
lea r8d, [rsi + 8]
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x18001237e
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
mov rcx, r14
call sub.PSAPI.DLL_GetModuleBaseNameW
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
lea r12d, [rax + 1]
test ecx, ecx
jne 0x1800123fd
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x18001247d
cmp dword [rdx + 0x10], eax
jge 0x1800123d0
cmp dword [rbx - 0xc], eax
jge 0x1800123c5
mov ecx, 0x80070057
call fcn.180001000
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x18001247d
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800123e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x18001247d
mov r13d, dword [rbx - 0x10]
lea rsi, [rsp + 0x50]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x18001241b
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x18001243b
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180001530
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x18001245f
lea r8, [rbx + rsi*2]
call fcn.180017cf8
jmp 0x180012469
lea r8, [rsp + 0x50]
call fcn.180018078
cmp edi, dword [rbx - 0xc]
jg 0x180012567
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r13 + rbx], si
movsxd rdi, dword [rbx - 0x10]
test edi, edi
jns 0x180012490
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or ecx, eax
jge 0x1800124b0
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180001530
mov rbx, qword [rsp + 0x20]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.180019aa0
cmp edi, dword [rbx - 0xc]
jg 0x18001255c
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
jns 0x1800124ea
mov ecx, 0x80070057
call fcn.180001000
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r12d
jge 0x180012509
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180001530
mov rbx, qword [rsp + 0x20]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.180019aa0
cmp edi, dword [rbx - 0xc]
jg 0x180012551
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
lea rcx, [rbx - 0x18]
call fcn.180001290
add rax, 0x18
mov qword [r15], rax
lock xadd dword [rbx - 8], ebp
dec ebp
test ebp, ebp
jg 0x18001254c
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r15
jmp 0x180012572
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, 0x80070057
call fcn.180001000
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180018a20
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret