Function at 0x401c20
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
mov ebx, 1
sub esp, 0x4c
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp], 0
call sub.KERNEL32.dll_HeapSetInformation
sub esp, 0x10
mov dword [esp], str.kernel32.dll
call sub.KERNEL32.dll_LoadLibraryW
sub esp, 4
test eax, eax
mov ebx, eax
je 0x401cb5
mov ecx, str.SetProcessDEPPolicy
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test eax, eax
je 0x401c86
mov dword [esp], 1
call eax
sub esp, 4
mov edx, str.SetDllDirectoryA
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
test eax, eax
je 0x401caa
mov dword [esp], 0x4096e1
call eax
sub esp, 4
mov dword [esp], ebx
call sub.KERNEL32.dll_FreeLibrary
sub esp, 4
call sub.KERNEL32.dll_GetCommandLineW
lea ebx, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.SHELL32.DLL_CommandLineToArgvW
mov edi, eax
sub esp, 8
test edi, edi
mov eax, 1
je 0x401e43
mov esi, dword [ebp - 0x1c]
lea eax, [esi*4 + 0x2a]
and eax, 0xfffffff0
call fcn.00402540
mov eax, str.__media_library
call fcn.004018c0
lea esi, [esp + 0x23]
and esi, 0xfffffff0
mov dword [esi], eax
mov eax, str.__no_ignore_config
call fcn.004018c0
cmp dword [ebp - 0x1c], 1
mov dword [esi + 4], eax
jle 0x401e4d
mov ebx, 1
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], 1
jmp 0x401d3d
inc ebx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 0
jle 0x401d6d
mov edx, str.__no_crashdump
mov dword [esp + 4], edx
mov ecx, dword [edi + ebx*4]
mov dword [esp], ecx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x401d30
mov eax, dword [edi + ebx*4]
inc ebx
call fcn.004018c0
mov ecx, dword [ebp - 0x2c]
mov dword [esi + ecx*4], eax
inc ecx
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ecx
jg 0x401d3d
mov ebx, dword [ebp - 0x2c]
mov dword [esi + ebx*4], 0
mov dword [ebp - 0x1c], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_LocalFree
mov edi, dword [ebp - 0x30]
sub esp, 4
test edi, edi
jne 0x401e66
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov edi, 0x8000
mov dword [esp + 4], edi
mov ecx, dword [ebx + 0x10]
mov dword [esp], ecx
call sub.msvcrt.dll__setmode
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.libvlc.dll_libvlc_new
test eax, eax
mov ebx, eax
je 0x401e25
mov ecx, str.VLC_2.0.5
mov eax, 0x409794
mov dword [esp + 8], ecx
xor edi, edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.libvlc.dll_libvlc_set_user_agent
mov edx, str.globalhotkeys_none
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.libvlc.dll_libvlc_add_intf
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.libvlc.dll_libvlc_add_intf
xor ecx, ecx
xor eax, eax
mov edx, 0xffffffff
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call sub.libvlc.dll_libvlc_playlist_play
mov dword [esp], ebx
call sub.libvlc.dll_libvlc_wait
mov dword [esp], ebx
call sub.libvlc.dll_libvlc_release
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jle 0x401e41
xor ebx, ebx
nop
mov edi, dword [esi + ebx*4]
inc ebx
mov dword [esp], edi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x1c], ebx
jg 0x401e30
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0
mov dword [ebp - 0x1c], 2
mov dword [esp], edi
call sub.KERNEL32.dll_LocalFree
sub esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 0x801a
mov edi, 0x40a020
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetFolderPathW
sub esp, 0x14
test eax, eax
jne 0x401eee
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0x40a020
mov edi, 0x409784
call sub.msvcrt.dll_wcslen
mov edx, str._vlccrashdump
mov dword [esp + 8], edx
mov dword [esp + 4], edi
lea ecx, [eax + eax + 0x40a020]
mov dword [esp], ecx
call sub.msvcrt.dll_swprintf
mov edx, 0x40a020
mov dword [0x40a228], edx
call fcn.00401970
mov dword [esp], 0x401330
call sub.KERNEL32.dll_SetUnhandledExceptionFilter
sub esp, 4
jmp 0x401d96
mov ebx, str.Cant_open_the_vlc_conf_PATH_n
mov dword [esp + 4], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ebx + 0x40]
mov dword [esp], eax
call fcn.00401300
jmp 0x401e9d