Function at 0x40bd66
Capabilities:
Get common file path

Disassembly:
sub esp, 0xf5c
push ebp
push esi
push edi
lea eax, [esp + 0x220]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40bd9a
push 0x4740fc
push esi
lea eax, [esp + 0x228]
push eax
call fcn.00467521
lea eax, [esp + 0x18]
push eax
xor ebp, ebp
push ebp
push 0x475384
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
lea eax, [esp + 0x18]
je 0x40bdcb
push str..html
push esi
push eax
call fcn.0040bd1d
jmp 0x40bdd7
push str.wahtml_tmp.html
push esi
push eax
call fcn.00467521
lea eax, [esp + 0x18]
push 0x475350
push eax
call dword [sym.imp.NSCRT.dll__wfopen]
mov edi, eax
cmp edi, ebp
pop ecx
pop ecx
jne 0x40be0a
push ebp
push 4
push 0xe7
push dword [0x496560]
call fcn.0045f0db
add esp, 0x10
jmp 0x40c09e
mov esi, dword [sym.imp.NSCRT.dll_fprintf]
push ebx
push str._html__head__n_META_http_equivContent_Type_content_text_html__charsetUTF_8___n_link_rel_stylesheet__href_null___style_TYPE_text_css______BODY__background:_000040___n.para1__margin_top:__42px__margin_left:_145px__margin_right:_10px__font_family:__font2__Arial___font_size:_30px__line_height:_35px__text_align:_left__color:_E1E1E1___n.para2__margin_top:_15px__margin_left:_15px__margin_right:_50px__font_family:__font1__Arial_Black___font_size:_50px__line_height:_40px__text_align:_left__color:_004080___n_____style__title_Winamp_Generated_PlayList__title___head__body_BGCOLOR_000080__topmargin_0__leftmargin_0__text_FFFFFF______TOOLBAR_START_______TOOLBAR_EXEMPT____n_div_align_center___div_CLASS_para2__align_center___p_WINAMP__p___div__div_CLASS_para1__align_center___n_p_playlist__p___div___div__hr_align_left__width_90____noshade_size_1__color_FFBF00___div_align_right___n_table_border_0__cellspacing_0__cellpadding_0__width_98_____tr__td__small__small__font_face_Arial__color_FFBF00___n
push edi
call esi
pop ecx
pop ecx
mov dword [esp + 0x14], ebp
call fcn.00431c56
and dword [esp + 0x10], 0
mov ebx, eax
test ebx, ebx
jle 0x40be4f
push dword [esp + 0x10]
call fcn.0043195d
test eax, eax
pop ecx
jl 0x40be41
add ebp, eax
jmp 0x40be45
inc dword [esp + 0x14]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ebx
jl 0x40be2f
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x40bf71
mov ecx, ebx
sub ecx, eax
imul eax, ebp
cdq
idiv ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
add ebp, eax
cmp ebx, 1
mov eax, 0x472c3d
je 0x40be7e
mov eax, 0x474f4c
push eax
push ebx
push str._d__font__font_color_409FFF__face_Arial___track_s_in_playlist_
push edi
call esi
mov eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x28]
push 0x3c
pop ecx
cdq
idiv ecx
push edx
push eax
push str.average_track_length:___font__font_face_Arial__color_FFBF00___d:_02d
push edi
call esi
add esp, 0x20
cmp dword [esp + 0x14], 0
mov eax, str.Estimated_p
jne 0x40beb5
mov eax, 0x474eb0
push eax
push str.__font___small___small__br__small__small__font_color_409FFF__face_Arial___slaylist_length:___font_
push edi
call esi
mov eax, ebp
cdq
mov ecx, 0xe10
idiv ecx
add esp, 0xc
test eax, eax
mov ebx, edx
je 0x40beef
cmp eax, 1
mov ecx, 0x472c3d
je 0x40bee0
mov ecx, 0x474f4c
push ecx
push eax
push str._font_face_Arial__color_FFBF00___d__font__font_color_409FFF__face_Arial___hour_s___font_
push edi
call esi
add esp, 0x10
mov ebp, ebx
mov eax, ebp
push 0x3c
cdq
pop ecx
idiv ecx
test eax, eax
mov ebx, edx
je 0x40bf1b
cmp eax, 1
mov ecx, 0x472c3d
je 0x40bf0c
mov ecx, 0x474f4c
push ecx
push eax
push str._font_face_Arial__color_FFBF00___d__font__font_color_409FFF__face_Arial___minute_s___font_
push edi
call esi
add esp, 0x10
mov ebp, ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov ecx, str._BR__
jne 0x40bf2d
mov ecx, 0x472c3d
cmp ebp, 1
mov eax, 0x472c3d
je 0x40bf3c
mov eax, 0x474f4c
push ecx
push eax
push ebp
push str._font_face_Arial__color_FFBF00___d__font__font_color_409FFF__face_Arial___second_s__s__font_
push edi
call esi
add esp, 0x14
test ebx, ebx
je 0x40bf6a
cmp ebx, 1
mov eax, 0x472c3d
je 0x40bf5d
mov eax, 0x474f4c
push eax
push ebx
push str._font_face_Arial__color_FFBF00___d__font__font_color_409FFF__face_Arial___track_s_of_unknown_length___font_
push edi
call esi
add esp, 0x10
push str._BR__n
jmp 0x40bf76
push str._font_face_Arial__color_FFBF00__unknown__font_
push edi
call esi
pop ecx
pop ecx
push 0
lea eax, [esp + 0x20]
push 0xfde9
push eax
call fcn.00402b25
mov ebx, eax
push ebx
push str._font_color_409FFF__face_Arial__Right_click__a_href_file:___s__here__a__to_save_this_HTML_file.__font___small___small___td___tr___table___div__blockquote__p__font_color_FFBF00__face_Arial___big_Playlist_files:__big___font__ul__font_face_Arial__color_FFFFFF___small_
push edi
call esi
push ebx
call dword [sym.imp.NSCRT.dll_free]
add esp, 0x1c
xor ebp, ebp
call fcn.00431c56
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40c07b
lea eax, [esp + 0x42c]
push eax
lea eax, [esp + 0x750]
push eax
push ebp
call fcn.00432d35
push 0
lea eax, [esp + 0x43c]
push 0xfde9
push eax
call fcn.00402b25
mov ebx, eax
push ebp
mov dword [esp + 0x2c], ebx
call fcn.0043195d
inc ebp
push ebp
push str._d.
push edi
mov dword [esp + 0x40], eax
call esi
add esp, 0x28
cmp byte [ebx], 0
je 0x40c044
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x26
jne 0x40c011
push str.amp
jmp 0x40c025
cmp al, 0x3c
jne 0x40c01c
push str.lt_
jmp 0x40c025
cmp al, 0x3e
jne 0x40c02a
push str.gt_
push edi
call esi
jmp 0x40c035
movsx eax, al
push edi
push eax
call dword [sym.imp.NSCRT.dll_fputc]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
pop ecx
pop ecx
jne 0x40c000
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x40c05f
push 0x3c
pop ecx
cdq
idiv ecx
push edx
push eax
push str.___d:_02d_
push edi
call esi
add esp, 0x10
push str._BR__n
push edi
call esi
push ebx
call dword [sym.imp.NSCRT.dll_free]
add esp, 0xc
cmp ebp, dword [esp + 0x14]
jl 0x40bfb4
push str.__font___ul___blockquote__hr_align_left__width_90____noshade_size_1__color_FFBF00____body___html_
push edi
call esi
push edi
call dword [sym.imp.NSCRT.dll_fclose]
lea eax, [esp + 0x28]
push eax
push dword [0x496560]
call fcn.00458b97
add esp, 0x14
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xf5c
ret