Function at 0x401ed0
Capabilities:
Hide graphical window
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c691
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x11a0
call fcn.00406cb0
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1198], edx
mov esi, ecx
cmp byte [0x428a61], 0
mov edi, dword [sym.imp.USER32.dll_KillTimer]
je 0x40205f
cmp dword [0x427ae4], 7
mov eax, 0x427ad0
cmova eax, dword [0x427ad0]
push eax
push str.Before_you_load_the_selected_playlist__n_do_you_want_to_save_changes_to_the_playlist__n_nCurrent_Playlist:__s
lea eax, [ebp - 0xfe8]
push 0x168
push eax
call fcn.004011a0
add esp, 0x10
lea eax, [ebp - 0xfe8]
push 0x23
push str.Save_Changes
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x401ff7
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x290], ax
lea eax, [ebp - 0x28e]
push eax
call fcn.00407b20
add esp, 0xc
lea eax, [ebp - 0x78]
push 0x58
push 0
push eax
call fcn.00407b20
add esp, 0xc
mov dword [ebp - 0x78], 0x58
lea eax, [ebp - 0x290]
mov dword [ebp - 0x6c], str.Playlist_Files
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x58], 0x104
push eax
mov dword [ebp - 0x48], str.Save_Playlist_As
mov dword [ebp - 0x44], 0x802
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x402b2a
mov ecx, dword [ebp - 0x1198]
lea edx, [ebp - 0x290]
call fcn.00402b60
jmp 0x40205f
cmp eax, 2
je 0x402b2a
cmp eax, 7
jne 0x40205f
push 0x91
push dword [ebp - 0x1198]
call edi
push 0
push dword [0x428a8c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x1198]
call fcn.00401d60
push 0x428a48
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x427ab4], 0
je 0x402054
push 0
push dword [0x428a8c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x427ab4], 0
push 0x428a48
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [0x428a44]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x428ad8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x428a84]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x424004
lea eax, [ebp - 0x1194]
push esi
push eax
call fcn.0040c673
add esp, 0xc
test eax, eax
jne 0x402ae0
cmp dword [ebp - 0x1194], eax
je 0x402ae0
push eax
push dword [0x428a44]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x1198]
call fcn.00403f20
push 0
push 0
push 0x804
push 0x79
call dword [sym.imp.WINMM.dll_mciSendCommandW]
push 0
push 0
push 0x184
push dword [0x428a0c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x428af4]
mov edx, dword [0x428af8]
cmp ecx, edx
je 0x402113
push ecx
call fcn.00405360
mov eax, dword [0x428af4]
add esp, 4
mov dword [0x428af8], eax
push 0
push dword [0x428a0c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x91
push dword [ebp - 0x1198]
call edi
push 0
push dword [0x428a8c]
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov dword [ebp - 0x1144], 0
movq qword [ebp - 0x114c], xmm0
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1168]
push dword [ebp - 0x1194]
push 1
push 2
push eax
call fcn.0040d849
push 0
push 0
push dword [ebp - 0x1194]
call fcn.0040d05b
add esp, 0x1c
lea eax, [ebp - 0xd18]
push 0
push 0
push 0x104
push eax
push 0
push 0
push 0
push 0
push esi
call fcn.0040cbc9
mov esi, dword [ebp - 0x1194]
lea eax, [ebp - 0x1128]
add esp, 0x24
mov dword [ebp - 0x11a0], 0
xor edi, edi
mov dword [ebp - 0x119c], edi
push esi
push 0x208
push eax
call fcn.0040d4e3
add esp, 0xc
test eax, eax
je 0x402210
push esi
lea eax, [ebp - 0x1128]
inc edi
push 0x208
push eax
call fcn.0040d4e3
add esp, 0xc
test eax, eax
jne 0x4021f0
mov dword [ebp - 0x119c], edi
push 0
push 0
push esi
call fcn.0040d05b
add esp, 0xc
lea eax, [ebp - 0x908]
push dword [ebp - 0x1194]
push 0x208
push eax
call fcn.0040d4e3
add esp, 0xc
test eax, eax
je 0x402800
nop
lea ecx, [ebp - 0x908]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402250
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x410
jae 0x402b48
xor eax, eax
push 3
mov word [ebp + ecx - 0x908], ax
lea eax, [ebp - 0x908]
push 0x423e98
push eax
call fcn.0040dc0a
add esp, 0xc
test eax, eax
je 0x4027de
mov eax, dword [ebp - 0x11a0]
inc eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x11a0], eax
push 0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
mulsd xmm1, qword [0x424690]
cvttsd2si eax, xmm1
push eax
push 0x402
push dword [0x428ad8]
call dword [sym.imp.USER32.dll_SendMessageW]
xorps xmm0, xmm0
mov dword [ebp - 0x1154], 0
xor eax, eax
mov dword [ebp - 0x1150], 7
movups xmmword [ebp - 0x1164], xmm0
mov word [ebp - 0x1164], ax
movups xmmword [ebp - 0x1180], xmm0
mov dword [ebp - 0x1170], eax
mov dword [ebp - 0x116c], 7
mov word [ebp - 0x1180], ax
lea eax, [ebp - 0x908]
mov byte [ebp - 4], 2
push 0x424054
push eax
call fcn.0040710c
mov edi, eax
lea eax, [ebp - 0x908]
push 0x424058
push eax
call fcn.0040710c
add esp, 0x10
mov esi, eax
test edi, edi
je 0x402750
test esi, esi
je 0x402750
cmp esi, edi
jbe 0x402750
lea ecx, [ebp - 0x908]
mov dword [ebp - 0x1130], 0
mov eax, edi
mov dword [ebp - 0x112c], 0
sub eax, ecx
xorps xmm0, xmm0
sar eax, 1
push eax
mov eax, ecx
lea ecx, [ebp - 0x1140]
push eax
movups xmmword [ebp - 0x1140], xmm0
call fcn.004053d0
mov ecx, dword [ebp - 0x1150]
cmp ecx, 7
jbe 0x4023de
mov edx, dword [ebp - 0x1164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4023d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b4d
push ecx
push edx
call fcn.00406330
add esp, 8
movups xmm0, xmmword [ebp - 0x1140]
sub esi, edi
lea eax, [edi + 2]
sar esi, 1
lea ecx, [ebp - 0x1140]
movups xmmword [ebp - 0x1164], xmm0
dec esi
movq xmm0, qword [ebp - 0x1130]
movq qword [ebp - 0x1154], xmm0
xorps xmm0, xmm0
push esi
push eax
movups xmmword [ebp - 0x1140], xmm0
mov dword [ebp - 0x1130], 0
mov dword [ebp - 0x112c], 0
call fcn.004053d0
cmp dword [ebp - 0x1154], 0
movups xmm0, xmmword [ebp - 0x1140]
movups xmmword [ebp - 0x1180], xmm0
movq xmm0, qword [ebp - 0x1130]
movq qword [ebp - 0x1170], xmm0
je 0x402750
mov eax, dword [0x428af8]
mov esi, dword [0x428af4]
mov edx, dword [ebp - 0x1150]
mov edi, dword [ebp - 0x1164]
cmp esi, eax
je 0x402548
nop dword [eax]
cmp edx, 7
lea ecx, [ebp - 0x1164]
cmova ecx, edi
cmp dword [esi + 0x14], 7
mov edi, esi
jbe 0x402496
mov edi, dword [esi]
mov edx, dword [esi + 0x10]
cmp edx, dword [ebp - 0x1154]
jne 0x402513
test edx, edx
je 0x4024bd
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40250e
add ecx, 2
sub edx, 1
jne 0x4024a7
mov eax, dword [0x428af8]
mov edx, dword [ebp - 0x1150]
mov edi, dword [ebp - 0x1164]
cmp esi, eax
je 0x402548
push 0x428adc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x1148]
lea ecx, [ebp - 0x1164]
push ecx
cmp eax, dword [ebp - 0x1144]
je 0x40252c
mov edx, eax
call fcn.00405af0
add dword [ebp - 0x1148], 0x18
add esp, 4
push 0x428adc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x402750
mov eax, dword [0x428af8]
mov edx, dword [ebp - 0x1150]
add esi, 0x18
mov edi, dword [ebp - 0x1164]
cmp esi, eax
jne 0x402480
jmp 0x4024bd
push eax
lea ecx, [ebp - 0x114c]
call fcn.00405850
push 0x428adc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x402750
cmp edx, 7
mov dword [ebp - 0x112c], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x1164]
cmova eax, edi
mov edi, dword [sym.imp.WINMM.dll_mciSendCommandW]
movups xmmword [ebp - 0x113c], xmm0
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x113c]
push eax
push 0x200
push 0x803
push 0
call edi
test eax, eax
jne 0x402750
cmp dword [ebp - 0x1150], 7
lea ecx, [ebp - 0x4f8]
push 0
push 0
push 0x104
push ecx
push 0
push 0
push 0
lea eax, [ebp - 0x1164]
cmova eax, dword [ebp - 0x1164]
push 0
push eax
call fcn.0040cbc9
lea ecx, [ebp - 0x4f8]
add esp, 0x24
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jbe 0x402606
xor eax, eax
push 0x42405c
mov word [ebp - 0x4ac], ax
lea eax, [ebp - 0x4f8]
push 0x104
push eax
call fcn.0040d095
add esp, 0xc
push 0x428adc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x428af8]
lea ecx, [ebp - 0x1164]
push ecx
cmp eax, dword [0x428afc]
je 0x402638
mov edx, eax
call fcn.00405af0
add esp, 4
add dword [0x428af8], 0x18
jmp 0x402643
push eax
mov ecx, 0x428af4
call fcn.00405850
push 0x428adc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1190]
xorps xmm0, xmm0
push eax
push pe_nt_image_headers32
push 0x814
push dword [ebp - 0x1138]
movups xmmword [ebp - 0x1190], xmm0
mov dword [ebp - 0x1188], 1
call edi
mov eax, 0x10624dd3
mul dword [ebp - 0x118c]
mov eax, 0x88888889
mov ecx, edx
shr ecx, 6
mul ecx
shr edx, 5
mov eax, edx
shl eax, 4
sub eax, edx
shl eax, 2
sub ecx, eax
lea eax, [ebp - 0x4f8]
push ecx
push edx
push 5
push eax
lea eax, [ebp - 0x2f0]
push str.__42s_d:_02d
push eax
call fcn.00405320
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x2f0]
add esp, 0x18
push eax
push 0
push 0x180
push dword [0x428a0c]
call esi
cmp dword [ebp - 0x1150], 7
lea ecx, [ebp - 0x1164]
cmova ecx, dword [ebp - 0x1164]
push ecx
push eax
push 0x19a
push dword [0x428a0c]
call esi
mov ecx, dword [0x428af8]
mov eax, 0x2aaaaaab
sub ecx, dword [0x428af4]
mov esi, dword [0x428a6c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebp - 0x80]
push str.Songs:__d
push eax
call fcn.00405300
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0x804
push dword [ebp - 0x1138]
call edi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x116c]
cmp ecx, 7
jbe 0x402794
mov edx, dword [ebp - 0x1180]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40278a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b4d
push ecx
push edx
call fcn.00406330
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1150]
cmp ecx, 7
jbe 0x4027d8
mov edx, dword [ebp - 0x1164]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4027ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b4d
push ecx
push edx
call fcn.00406330
add esp, 8
mov edi, dword [ebp - 0x119c]
push dword [ebp - 0x1194]
lea eax, [ebp - 0x908]
push 0x208
push eax
call fcn.0040d4e3
add esp, 0xc
test eax, eax
jne 0x402240
push dword [ebp - 0x1194]
call fcn.0040c7df
mov eax, dword [ebp - 0x114c]
add esp, 4
cmp eax, dword [ebp - 0x1148]
je 0x402a11
push 0x29
xorps xmm0, xmm0
mov dword [ebp - 0x1130], 0
push str.These_songs_are_already_in_the_playlist:_n
lea ecx, [ebp - 0x1140]
mov dword [ebp - 0x112c], 0
movups xmmword [ebp - 0x1140], xmm0
call fcn.004053d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1148]
mov esi, dword [ebp - 0x114c]
mov dword [ebp - 0x11ac], eax
mov dword [ebp - 0x11a0], esi
cmp esi, eax
je 0x4029ad
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x40287e
mov eax, dword [esi]
push 0
push 0
push 0x104
lea ecx, [ebp - 0xb10]
push ecx
push 0
push 0
push 0
push 0
push eax
call fcn.0040cbc9
lea edi, [ebp - 0xb10]
add esp, 0x24
lea ecx, [edi + 2]
nop dword [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4028b0
mov edx, dword [ebp - 0x112c]
sub edi, ecx
mov ecx, dword [ebp - 0x1130]
mov eax, edx
sar edi, 1
sub eax, ecx
mov dword [ebp - 0x119c], ecx
cmp edi, eax
ja 0x40291f
lea eax, [ecx + edi]
cmp edx, 7
mov dword [ebp - 0x1130], eax
lea esi, [ebp - 0x1140]
cmova esi, dword [ebp - 0x1140]
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0xb10]
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.004075a0
mov eax, dword [ebp - 0x119c]
add esp, 0xc
add eax, edi
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, dword [ebp - 0x11a0]
jmp 0x402940
push edi
lea eax, [ebp - 0xb10]
mov byte [ebp - 0x11a4], 0
push eax
push dword [ebp - 0x11a4]
lea ecx, [ebp - 0x1140]
push edi
call fcn.004054d0
mov edx, dword [ebp - 0x112c]
mov eax, edx
mov ecx, dword [ebp - 0x1130]
sub eax, ecx
cmp eax, 1
jb 0x402977
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1140]
cmova eax, dword [ebp - 0x1140]
mov dword [eax + ecx*2], 0xa
jmp 0x402998
push 1
push 0x4240d4
mov byte [ebp - 0x11a8], 0
lea ecx, [ebp - 0x1140]
push dword [ebp - 0x11a8]
push 1
call fcn.004054d0
add esi, 0x18
mov dword [ebp - 0x11a0], esi
cmp esi, dword [ebp - 0x11ac]
jne 0x402874
cmp dword [ebp - 0x112c], 7
lea eax, [ebp - 0x1140]
push 0x30
cmova eax, dword [ebp - 0x1140]
push 0x4240d8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x112c]
cmp ecx, 7
jbe 0x402a11
mov edx, dword [ebp - 0x1140]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402a07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402b4d
push ecx
push edx
call fcn.00406330
add esp, 8
lea eax, [ebp - 0xd18]
push eax
push 0x89
push dword [ebp - 0x1198]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x428a0c]
call esi
mov eax, dword [0x428af4]
cmp eax, dword [0x428af8]
je 0x402aa8
cmp dword [eax + 0x14], 7
mov dword [0x427ab0], 0
jbe 0x402a5f
mov eax, dword [eax]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x4fc
push dword [0x428a28]
call edi
push 0
push 0xffffffffffffffff
push 0x186
push dword [0x428a0c]
call edi
push 0
push dword [0x427ab0]
push 0x186
push dword [0x428a0c]
call edi
mov ecx, dword [ebp - 0x1198]
call fcn.00403e60
jmp 0x402aae
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x402
push dword [0x428ad8]
call edi
push 0
push dword [0x428ad8]
call esi
push 0
push dword [0x428a84]
call esi
lea ecx, [ebp - 0x114c]
call fcn.004051e0
jmp 0x402b2a
push esi
push str.Error:_Could_not_open_the_file__s
lea eax, [ebp - 0x288]
push pe_nt_image_headers32
push eax
call fcn.004011a0
add esp, 0x10
lea eax, [ebp - 0x288]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x428ad8]
call esi
push 0
push dword [0x428a84]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405ea4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00405fd4
call fcn.0040dbb9
int3