Function at 0x1400162b0
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x2c8
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0xa0]
lea rcx, str._unknown_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb4]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f6
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x140016327
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x70], rax
mov eax, 2
mov rcx, qword [rsp + 0x70]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001f9c8
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x28], 0
jne 0x14001639c
mov eax, dword [rsp + 0x20]
jmp 0x1400165fb
mov rax, qword [rsp + 0x48]
inc rax
mov r8, qword [rsp + 0x2e8]
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8d, dword [rsp + 0x2e0]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400165b7
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x1400165b7
cmp dword [rsp + 0x2f0], 1
jne 0x140016468
lea r9, [rsp + 0x98]
mov r8d, 8
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14001643e
mov r9d, 0x105
lea r8, [rsp + 0xa0]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
jmp 0x140016463
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jbe 0x140016463
mov dword [rsp + 0x38], 1
jmp 0x1400164ef
mov r9d, 0x105
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jbe 0x1400164a5
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
jmp 0x1400164ef
mov r8d, 0x105
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jbe 0x1400164ef
mov rax, qword [rsp + 0x2e8]
add rax, 4
mov rcx, qword [rsp + 0x48]
inc rcx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rsp + 0x38], 1
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140016516
mov dword [rsp + 0x20], 1
jmp 0x1400165ac
cmp dword [rsp + 0x38], 0
je 0x1400165ac
lea rcx, [rsp + 0xa0]
call fcn.14001b860
mov rax, qword [rsp + 0x48]
inc rax
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.1400150a0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400165ac
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x140016579
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1400165ac
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14001f6f0
cmp qword [rsp + 0x60], 0
jne 0x1400165e1
mov qword [rsp + 0x88], 0
jmp 0x1400165f7
mov qword [rsp + 0x28], 0x8123
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x2c8
pop rdi
pop rsi
ret