Function at 0x4015f0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x23e8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.004037b0
sub rsp, rax
mov rbx, qword [sym.imp.msvcrt.dll___iob_func]
mov r13, rcx
mov qword [rsp + 0xa8], rbx
call rbx
lea rdx, str.unhandled_vlc_exception_n
lea rcx, [rax + 0x60]
call fcn.004014f0
lea rdx, str.w__ccsUTF_8
mov rcx, qword [0x00410248]
call qword [sym.imp.msvcrt.dll__wfopen]
test rax, rax
mov rsi, rax
je 0x401a83
lea rbp, [rsp + 0xc0]
xor eax, eax
mov ecx, 0x22
xor r15d, r15d
mov rdi, rbp
rep stosq qword [rdi], rax
mov rcx, rbp
mov dword [rsp + 0xc0], 0x114
add rbp, 0x14
mov dword [rdi], 0
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r8d, dword [rsp + 0xcc]
mov edx, dword [rsp + 0xd0]
mov rcx, rsi
mov r9d, dword [rsp + 0xc8]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x20], r8d
mov r8d, dword [rsp + 0xc4]
mov dword [rsp + 0x28], edx
lea rdx, str._version__nOS_d._d._d._d._s_nVLC2.1.3_Rincewind
call fcn.004015c0
mov r14, qword [r13]
lea rdx, str._n_n_exceptions__n_08x_at__px
mov rcx, rsi
mov r12, qword [r13 + 8]
mov r9, qword [r14 + 0x10]
mov r8d, dword [r14]
call fcn.004015c0
mov r9d, dword [r14 + 0x18]
test r9d, r9d
je 0x401711
nop word cs:[rax + rax]
mov r10d, r15d
lea rdx, str.___p
mov rcx, rsi
mov r8, qword [r14 + r10*8 + 0x20]
add r15d, 1
call fcn.004015c0
cmp r15d, dword [r14 + 0x18]
jb 0x4016f0
mov r11, qword [r12 + 0xf0]
mov r9, qword [r12 + 0xa8]
mov r8, qword [r12 + 0xb0]
mov qword [rsp + 0x90], r11
mov r13, qword [r12 + 0xe8]
mov qword [rsp + 0x88], r13
mov rbx, qword [r12 + 0xe0]
mov qword [rsp + 0x80], rbx
mov rbp, qword [r12 + 0xd8]
mov qword [rsp + 0x78], rbp
mov rcx, qword [r12 + 0xd0]
mov qword [rsp + 0x70], rcx
mov rax, qword [r12 + 0xc8]
mov rcx, rsi
mov qword [rsp + 0x68], rax
mov rdi, qword [r12 + 0xc0]
mov qword [rsp + 0x60], rdi
mov rdx, qword [r12 + 0xb8]
mov qword [rsp + 0x58], rdx
mov r14, qword [r12 + 0x98]
lea rdx, str._n_n_context__nRDI:_px_nRSI:_px_nRBX:_px_nRDX:_px_nRCX:_px_nRAX:_px_nRBP:_px_nRIP:_px_nRSP:_px_nR8:_px_nR9:_px_nR10:_px_nR11:_px_nR12:_px_nR13:_px_nR14:_px_nR15:_px_n
mov qword [rsp + 0x50], r14
mov r15, qword [r12 + 0xf8]
mov qword [rsp + 0x48], r15
mov r10, qword [r12 + 0xa0]
mov qword [rsp + 0x40], r10
mov r11, qword [r12 + 0x78]
mov qword [rsp + 0x38], r11
mov r13, qword [r12 + 0x80]
mov qword [rsp + 0x30], r13
mov rbx, qword [r12 + 0x88]
mov qword [rsp + 0x28], rbx
mov rbp, qword [r12 + 0x90]
lea rbx, [rsp + 0x3e0]
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x1e0]
call fcn.004015c0
lea rdx, str._n_stacktrace__nEIPbasemodule_n
mov rcx, rsi
call fcn.004015c0
mov r14, qword [r12 + 0xf8]
mov r12, qword [r12 + 0xa0]
mov r8d, 0x30
mov r13, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, rbp
mov rdi, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, r14
call rdi
mov r8d, 0x100
mov rdx, rbx
mov rcx, qword [rsp + 0x1e8]
call r13
lea rdx, str._p_s_n
mov r8, r14
mov r9, rbx
mov rcx, rsi
call fcn.004015c0
mov r14, qword [r12 + 8]
test r14, r14
je 0x4019b6
mov r12, qword [r12]
mov r15d, 0x64
jmp 0x401971
mov r12, qword [r12]
mov rcx, r14
mov r8d, 0x30
mov rdx, rbp
call rdi
mov r8d, 0x100
mov rdx, rbx
mov rcx, qword [rsp + 0x1e8]
call r13
lea rdx, str._p_s_n
mov r8, r14
mov r9, rbx
mov rcx, rsi
call fcn.004015c0
mov r14, qword [r12 + 8]
test r14, r14
je 0x4019b6
mov r12, qword [r12]
mov rcx, r14
mov r8d, 0x30
mov rdx, rbp
call rdi
mov r8d, 0x100
mov rdx, rbx
mov rcx, qword [rsp + 0x1e8]
call r13
lea rdx, str._p_s_n
mov r8, r14
mov r9, rbx
mov rcx, rsi
call fcn.004015c0
mov r14, qword [r12 + 8]
test r14, r14
je 0x4019b6
mov r12, qword [r12]
mov rcx, r14
mov r8d, 0x30
mov rdx, rbp
call rdi
mov r8d, 0x100
mov rdx, rbx
mov rcx, qword [rsp + 0x1e8]
call r13
lea rdx, str._p_s_n
mov r8, r14
mov r9, rbx
mov rcx, rsi
call fcn.004015c0
mov r14, qword [r12 + 8]
test r14, r14
je 0x4019b6
sub r15d, 4
mov r12, qword [r12]
je 0x4019b6
mov rcx, r14
mov r8d, 0x30
mov rdx, rbp
call rdi
mov r8d, 0x100
mov rdx, rbx
mov rcx, qword [rsp + 0x1e8]
call r13
lea rdx, str._p_s_n
mov r8, r14
mov r9, rbx
mov rcx, rsi
call fcn.004015c0
mov r14, qword [r12 + 8]
test r14, r14
jne 0x401890
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov r15, rax
je 0x4019fa
lea r9, [rsp + 0xbc]
mov r8d, 0x2000
mov rdx, rbx
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x401a20
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, qword [rsp + 0xa8]
call rax
lea rcx, [rax + 0x60]
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
lea rdx, str._n_n_modules__n
mov rcx, rsi
call fcn.004015c0
mov r8d, dword [rsp + 0xbc]
shr r8d, 3
test r8d, r8d
je 0x4019f1
xor edi, edi
mov rcx, qword [rbx]
mov r8d, 0x100
mov rdx, rbp
call r13
mov r8, qword [rbx]
lea rdx, str._p_s_n
mov r9, rbp
mov rcx, rsi
add edi, 1
add rbx, 8
call fcn.004015c0
mov r9d, dword [rsp + 0xbc]
shr r9d, 3
cmp edi, r9d
jb 0x401a42
jmp 0x4019f1
mov rbx, qword [rsp + 0xa8]
call rbx
lea rdx, str._nerror_while_opening_file
lea rcx, [rax + 0x60]
call fcn.004014f0
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop dword [rax + rax]
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x401ad0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.004015f0
nop
nop dword [rax]