Function at 0x40cbe4
Capabilities:
Create directory
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xa60
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
lea esi, [ebp - 0x64c]
call fcn.0044a0a8
lea eax, [ebp - 0x854]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebx], 0
lea eax, [ebp - 0x23c]
jne 0x40cccb
push eax
lea eax, [ebp - 0x854]
push eax
push str.TempFolder
push str.Settings
call fcn.00444aef
push 0x53ec98
push 0x54c6b0
lea eax, [ebp - 0x23c]
push eax
push eax
call fcn.0044a0d6
push str..mp3
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call fcn.0044a0d6
lea eax, [ebp - 0x23c]
push eax
call fcn.00401d29
test al, al
jne 0x40ccd2
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ccd2
lea eax, [ebp - 0x23c]
push eax
push str.Could_not_write_to_temporary_folder__s.__Please_change_temporary_folder_from_the_programs_options.
lea edi, [ebp - 0x444]
call fcn.0044b138
pop ecx
pop ecx
push 0x40
push str.Write_Error
mov eax, edi
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x40cdeb
mov ecx, ebx
call fcn.00401963
mov dword [ebp - 8], 1
jmp 0x40cd10
push dword [ebp - 8]
lea eax, [ebp - 0x64c]
push eax
push str._s_d
lea edi, [ebp - 0x444]
call fcn.0044b138
add esp, 0xc
push str..mp3
mov eax, edi
push eax
lea eax, [ebp - 0x23c]
push eax
push ebx
call fcn.0044a0d6
inc dword [ebp - 8]
push ebx
call fcn.00401d29
test al, al
jne 0x40ccdb
mov edi, dword [ebp + 8]
push dword [edi + 4]
lea eax, [ebp - 0xa5c]
push eax
call fcn.00405ab8
test al, al
je 0x40ccbd
lea esi, [ebp + 0x18]
call fcn.004a47c9
mov eax, esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0040c980
cmp eax, 1
jne 0x40cdd8
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40cd60
cmp byte [eax + 0xd], 0
setne al
jmp 0x40cd62
mov al, 1
test al, al
jne 0x40cdd8
lea edi, [ebp + 0x14]
lea eax, [ebp + 0x18]
call fcn.00404af5
mov eax, dword [eax]
cdq
mov ecx, 0x3e8
idiv ecx
imul eax, eax, 0x5dc0
cdq
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x23c]
push eax
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40cdad
or ecx, 0xffffffff
mov eax, SysReAllocString
jmp 0x40cdb3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp esi, eax
jb 0x40cdf2
ja 0x40cdbd
cmp edi, ecx
jb 0x40cdf2
mov eax, dword [ebp + 8]
push 0x2010
push str.Not_Enough_Free_Space
push str.There_is_not_enough_room_to_encode_the_file_as_a_new_MP3.__Try_freeing_up_some_space.
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0x18]
mov dword [esi], 2
call fcn.004a4856
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
lea esi, [ebp - 0x1c]
call fcn.0040784a
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0x18]
push 1
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x20], ebx
call dword [eax + 0x20]
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
call fcn.00407932
lea eax, [ebp + 0x18]
call fcn.004a4856
mov eax, dword [ebp + 0xc]
jmp 0x40cdeb