Function at 0x180059c80
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x4e0], rbx
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x40], 0x438
lea rcx, [0x1800d1878]
mov rax, qword [0x1800d1878]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
or r13, 0xffffffffffffffff
test eax, eax
je 0x180059eb7
xor r15d, r15d
nop dword [rax + rax]
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x180059d70
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x180059de8
cmp dword [rdx + 0x10], eax
jge 0x180059d45
cmp dword [rbx - 0xc], eax
jl 0x180059e96
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x180059de8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180059d5c
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 0x180059de8
mov r12d, dword [rbx - 0x10]
lea rbp, [rsp + 0x70]
sub rbp, rbx
sar rbp, 1
test ecx, ecx
js 0x180059eac
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x180059da9
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.18000d560
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rbp, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x180059dcd
lea r8, [rbx + rbp*2]
call fcn.18007bb9c
jmp 0x180059dd7
lea r8, [rsp + 0x70]
call fcn.18007bb14
cmp edi, dword [rbx - 0xc]
jg 0x180059ea1
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], r15w
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
cmp rcx, rax
jae 0x180059e49
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
ja 0x180059e49
lea rbp, [rsp + 0x20]
sub rbp, rcx
sar rbp, 3
cmp rax, qword [rsi + 0x10]
jne 0x180059e1d
mov rcx, rsi
call fcn.18005a7f0
mov rcx, qword [rsi]
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
test rdi, rdi
je 0x180059e47
mov rcx, qword [rcx + rbp*8]
sub rcx, 0x18
call fcn.18005abe0
add rax, 0x18
mov qword [rdi], rax
jmp 0x180059e7a
cmp rax, qword [rsi + 0x10]
jne 0x180059e57
mov rcx, rsi
call fcn.18005a7f0
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x180059e7a
lea rcx, [rbx - 0x18]
call fcn.18005abe0
add rax, 0x18
mov qword [rdi], rax
add qword [rsi + 8], 8
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x180059eb7
jmp 0x180059d00
mov ecx, 0x80070057
call fcn.18000d6f0
int3
mov ecx, 0x80070057
call fcn.18000d6f0
int3
mov ecx, 0x80070057
call fcn.18000d6f0
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x180059edc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x490
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret