Function at 0x40d55b
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 0x40d58f
push 0x48844c
push esi
lea eax, [esp + 0x228]
push eax
call fcn.0047aaff
lea eax, [esp + 0x18]
push eax
xor ebp, ebp
push ebp
push 0x48971c
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
lea eax, [esp + 0x18]
je 0x40d5c0
push str..html
push esi
push eax
call fcn.0047ac6c
jmp 0x40d5cc
push str.wahtml_tmp.html
push esi
push eax
call fcn.0047aaff
lea eax, [esp + 0x18]
push 0x4896e8
push eax
call dword [sym.imp.NSCRT.dll__wfopen]
mov edi, eax
cmp edi, ebp
pop ecx
pop ecx
jne 0x40d5ff
push ebp
push 4
push 0xe7
push dword [0x4b0400]
call fcn.00472b2b
add esp, 0x10
jmp 0x40d893
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.0043d213
and dword [esp + 0x10], 0
mov ebx, eax
test ebx, ebx
jle 0x40d644
push dword [esp + 0x10]
call fcn.0043cf1a
test eax, eax
pop ecx
jl 0x40d636
add ebp, eax
jmp 0x40d63a
inc dword [esp + 0x14]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ebx
jl 0x40d624
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x40d766
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, 0x486d4c
je 0x40d673
mov eax, 0x4892e4
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 0x40d6aa
mov eax, 0x489248
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 0x40d6e4
cmp eax, 1
mov ecx, 0x486d4c
je 0x40d6d5
mov ecx, 0x4892e4
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 0x40d710
cmp eax, 1
mov ecx, 0x486d4c
je 0x40d701
mov ecx, 0x4892e4
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 0x40d722
mov ecx, 0x486d4c
cmp ebp, 1
mov eax, 0x486d4c
je 0x40d731
mov eax, 0x4892e4
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 0x40d75f
cmp ebx, 1
mov eax, 0x486d4c
je 0x40d752
mov eax, 0x4892e4
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 0x40d76b
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.0043d213
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40d870
lea eax, [esp + 0x42c]
push eax
lea eax, [esp + 0x750]
push eax
push ebp
call fcn.0043e2ab
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.0043cf1a
inc ebp
push ebp
push str._d.
push edi
mov dword [esp + 0x40], eax
call esi
add esp, 0x28
cmp byte [ebx], 0
je 0x40d839
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x26
jne 0x40d806
push str.amp
jmp 0x40d81a
cmp al, 0x3c
jne 0x40d811
push str.lt_
jmp 0x40d81a
cmp al, 0x3e
jne 0x40d81f
push str.gt_
push edi
call esi
jmp 0x40d82a
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 0x40d7f5
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x40d854
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 0x40d7a9
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 [0x4b0400]
call fcn.00463b2f
add esp, 0x14
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xf5c
ret