Function at 0x422200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572b90
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5eabd8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x1c]
call fcn.00414a30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00414a30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00414a30
mov byte [ebp - 4], 2
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00414d30
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0041e5a0
push 0x58a278
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004238d0
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x54]
call fcn.00423650
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x25], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0041c360
movzx edx, byte [ebp - 0x25]
test edx, edx
je 0x4222c4
push 0x58a27c
lea ecx, [ebp - 0x14]
call fcn.0041bc90
push str.cdplayer.ini
lea ecx, [ebp - 0x14]
call fcn.0041bc90
mov ecx, dword [ebp + 8]
call fcn.00422a10
push eax
push 0x58a290
lea eax, [ebp - 0x10]
push eax
call fcn.00415480
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
push 0x58a294
push str.EntryType
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00423330
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.004368b0
push eax
push 0x58a2a4
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x30]
call fcn.0041c360
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.0044cda0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.004368b0
push eax
push 0x58a2ac
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x34]
call fcn.0041c360
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045fb00
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.004368b0
push eax
push 0x58a2b4
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x38]
call fcn.0041c360
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00424970
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.004368b0
push eax
push 0x58a2bc
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x3c]
call fcn.0041c360
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp + 8]
call fcn.00423370
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00417a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0041c360
push 0x58a2c4
push 0x58a2c8
lea ecx, [ebp - 0x1c]
call fcn.004236b0
push 0x58a2cc
push 0x58a2d0
lea ecx, [ebp - 0x1c]
call fcn.004236b0
push 0x58a2d4
push 0x58a2d8
lea ecx, [ebp - 0x1c]
call fcn.004236b0
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004368b0
push eax
push 0x58a2dc
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 8]
call fcn.004229f0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push 0x58a2e4
lea eax, [ebp - 0x1c]
push eax
call fcn.00415480
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004368b0
push eax
push str.numtracks
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x20], 0
jmp 0x4224e6
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jge 0x42255b
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.004244a0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x422559
mov ecx, dword [ebp - 0x20]
push ecx
push 0x58a2f4
lea edx, [ebp - 0x1c]
push edx
call fcn.00415480
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004368b0
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00422610
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x1c]
call fcn.004368b0
push eax
lea ecx, [ebp - 0x10]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x44]
call fcn.0041c360
jmp 0x4224dd
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0041c360
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041c360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041c360
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4