Function at 0x401c50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x402731
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b0
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c8], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
mov byte [esp + 0x5c8], 1
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsCTEaxSpl.exe
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fa6
lea ecx, [esp + 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x34]
push eax
push edx
push eax
mov eax, dword [esp + 0x30]
push str.PlayListINI
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
jne 0x401dc9
mov cl, byte [0x40438c]
xor eax, eax
mov byte [esp + 0x38], cl
mov ecx, 0x40
lea edi, [esp + 0x39]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push str.PlayListINI
push edx
call esi
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
push 0
lea edx, [esp + 0x240]
push 0
lea ecx, [esp + 0x34]
push edx
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.00402290
lea edx, [esp + 0x23c]
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x340]
push edx
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x401dc0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004016c0
mov edx, dword [ebx + 0x7c]
push str.CTEaxSpl.INI
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x401df0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.004016c0
mov edx, dword [ebx + 0x7c]
push str.CTEaxSpl.INI
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x480]
push edx
push eax
call ebp
cmp eax, 0xffffffff
jne 0x401e26
push 0
mov ecx, ebx
call fcn.00401b00
push 0
mov ecx, ebx
call fcn.004018a0
jmp 0x401fa6
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x13c]
push ecx
push 0x100
push edx
push str.Error
push str.Total
push str.PlayList
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [esp + 0x13c]
mov eax, str.Error
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401e91
test cl, cl
je 0x401e8d
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401e91
add eax, 2
add esi, 2
test cl, cl
jne 0x401e69
xor eax, eax
jmp 0x401e96
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401eb7
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jle 0x401fa6
mov edi, dword [esp + 0x5d0]
mov ebx, dword [sym.imp.MSVCRT.dll__itoa]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenFile]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x26]
push 0xa
push ecx
push edx
call ebx
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x26]
push eax
push 0x100
push ecx
push str.Error
push edx
push str.PlayList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [esp + 0x13c]
mov eax, str.Error
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401f32
test cl, cl
je 0x401f2e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401f32
add eax, 2
add esi, 2
test cl, cl
jne 0x401f0e
xor eax, eax
jmp 0x401f37
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401f91
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x34]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str._s_s
push edi
mov byte [esp + 0x5d8], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c8], 1
call fcn.00402290
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push 0
push ecx
push eax
mov byte [esp + 0x44], 0x88
call ebp
cmp eax, 0xffffffff
jne 0x401fa6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x401eca
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c8], 0
call fcn.00402290
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c8], 0xffffffff
call fcn.00402290
mov ecx, dword [esp + 0x5c0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5bc
ret 4