Function at 0x4022c6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
mov edi, ecx
call fcn.00402992
mov ebx, eax
xor esi, esi
push str.HOME
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
cmp eax, esi
pop ecx
jne 0x4022f8
mov eax, 0x440990
push str..chromium_music
push eax
lea eax, [ebp - 0x10c]
push str._s__s
push eax
mov dword [edi + 0x202c], esi
mov dword [edi + 0x2030], esi
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x10c]
push eax
call fcn.00414bfe
lea eax, [ebp - 0x10c]
push 0x440974
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x1c
cmp eax, esi
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
mov dword [ebp - 0xc], eax
je 0x4024d5
push eax
lea eax, [ebp - 0x50c]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x4024d9
mov ebx, str.WARNING:___s___line__d_n
lea eax, [ebp - 0x50c]
push eax
call sub.MSVCRT.dll_strlen
and byte [ebp + eax - 0x50d], 0
inc dword [ebp - 4]
lea eax, [ebp - 0x50c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
cmp eax, 0xff
pop ecx
jbe 0x4023cf
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.ERROR:___s___line__d_n
push eax
call esi
push str._______filename_too_long__n
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call esi
add esp, 0x18
jmp 0x4024a7
lea eax, [ebp - 0x50c]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 4
pop ecx
jbe 0x4024a7
lea eax, [ebp - 0x50c]
mov ecx, edi
push eax
call fcn.004027c2
xor ecx, ecx
sub eax, ecx
je 0x402485
dec eax
je 0x40245d
dec eax
je 0x402435
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push ebx
push eax
call esi
lea eax, [ebp - 0x50c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str._________file_type_not_recognized:___s__n
push eax
call esi
add esp, 0x1c
jmp 0x4024a7
cmp dword [edi + 0x2048], ecx
jne 0x402485
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push ebx
push eax
call esi
push str._________Ogg_Vorbis_support_not_available._n
jmp 0x4023bc
cmp dword [edi + 0x2044], ecx
jne 0x402485
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push ebx
push eax
call esi
push str._________MP3_support_not_available._n
jmp 0x4023bc
lea eax, [ebp - 0x50c]
push eax
mov eax, dword [edi + 0x202c]
shl eax, 8
lea eax, [eax + edi + 0x2c]
push eax
call sub.MSVCRT.dll_strcpy
inc dword [edi + 0x202c]
pop ecx
pop ecx
mov eax, dword [edi + 0x202c]
inc eax
cmp eax, 0x20
jge 0x4024d9
push dword [ebp - 0xc]
lea eax, [ebp - 0x50c]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x402371
jmp 0x4024d9
and byte [ebx + 0x32], 0
cmp dword [edi + 0x202c], 1
jge 0x4024e9
mov eax, dword [ebp - 8]
and byte [eax + 0x32], 0
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.music_playlist:_n
add eax, 0x40
push eax
call esi
xor eax, eax
pop ecx
cmp dword [edi + 0x202c], eax
pop ecx
jle 0x402536
lea ecx, [edi + 0x2c]
mov dword [ebp - 4], ecx
push dword [ebp - 4]
lea ebx, [eax + 1]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push ebx
add eax, 0x40
push str.__2d_:__s_n
push eax
call esi
add dword [ebp - 4], 0x100
mov eax, ebx
add esp, 0x10
cmp eax, dword [edi + 0x202c]
jl 0x40250b
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.loaded__s_n
push eax
call esi
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret