Function at 0x1800111c0
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 [0x1800366f0]
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, [0x1800365a8]
mov rax, qword [0x1800365a8]
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 [0x180029820]
mov dword [rsp + 0x60], eax
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rsp + 0x64]
call fcn.180017210
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 0x18001129e
lea r9, [rsp + 0x38]
lea r8d, [rsi + 8]
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x18001129e
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 0x18001131d
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x18001139d
cmp dword [rdx + 0x10], eax
jge 0x1800112f0
cmp dword [rbx - 0xc], eax
jge 0x1800112e5
mov ecx, 0x80070057
call fcn.180001000
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x18001139d
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180011306
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 0x18001139d
mov r13d, dword [rbx - 0x10]
lea rsi, [rsp + 0x50]
sub rsi, rbx
sar rsi, 1
test ecx, ecx
jns 0x18001133b
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 0x18001135b
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1800015e0
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 0x18001137f
lea r8, [rbx + rsi*2]
call fcn.180016458
jmp 0x180011389
lea r8, [rsp + 0x50]
call fcn.1800167d8
cmp edi, dword [rbx - 0xc]
jg 0x18001142b
mov dword [rbx - 0x10], edi
xor esi, esi
mov word [r13 + rbx], si
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
jns 0x1800113b9
mov ecx, 0x80070057
call fcn.180001000
int3
sub r12d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or r12d, eax
jge 0x1800113d8
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.1800015e0
mov rbx, qword [rsp + 0x20]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.180018200
cmp edi, dword [rbx - 0xc]
jg 0x180011420
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], si
lea rcx, [rbx - 0x18]
call fcn.180001260
add rax, 0x18
mov qword [r15], rax
lock xadd dword [rbx - 8], ebp
dec ebp
test ebp, ebp
jg 0x18001141b
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r15
jmp 0x180011436
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, 0x80070057
call fcn.180001000
nop
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180017180
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret