Function at 0x40686c
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408d5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x400
mov dword [ebp - 0x3f8], ecx
mov dword [ebp - 0x2c0], 0
lea ecx, [ebp - 0x224]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov byte [ebp - 4], 1
cmp dword [0x42d260], 1
jne 0x4068ea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.004081c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408196
jmp 0x406c87
push 0x432534
push str._sdata
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x3ec]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push str.sounddata_.s8d_.s8d
push 0x200000
push 0
push 0
push 1
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::DoModal
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 1
jne 0x4069a0
lea edx, [ebp - 0x3f4]
push edx
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x400], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x400]
call fcn.004025b0
push eax
lea ecx, [ebp - 0x3ec]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3f4]
call fcn.00408196
jmp 0x4069d5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.00406fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.004081c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408196
jmp 0x406c87
push 0
push 0x4000
lea edx, [ebp - 0x3ec]
push edx
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CStdioFile::Open
push 0x7f
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CStdioFile::ReadString
push 0x42d248
push str.A:_d
lea ecx, [ebp - 0x2a8]
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
mov edx, dword [0x42d248]
push edx
call fcn.00402d81
add esp, 4
push 0x7f
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x406c1b
lea ecx, [ebp - 0x2a8]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b0], 0
jmp 0x406a77
mov edx, dword [ebp - 0x2b0]
add edx, 1
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x2b0]
imul eax, eax, 7
add eax, 2
cmp eax, dword [ebp - 0x2b8]
jge 0x406c16
mov ecx, dword [ebp - 0x2b0]
imul ecx, ecx, 7
movsx edx, byte [ebp + ecx - 0x2a8]
cmp edx, 0x6f
jne 0x406ae8
mov eax, dword [ebp - 0x2c0]
shl eax, 4
mov byte [eax + 0x42da78], 0x14
mov ecx, dword [ebp - 0x2c0]
shl ecx, 4
add ecx, 0x42da70
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2c0]
shl edx, 4
mov word [edx + 0x42da7a], 0xff02
jmp 0x406c02
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
lea edx, [ebp - 0x2ac]
push edx
push str._c_d:_d
mov eax, dword [ebp - 0x2b0]
imul eax, eax, 7
lea ecx, [ebp + eax - 0x2a8]
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x14
mov dword [ebp - 0x2b4], 0
jmp 0x406b37
mov edx, dword [ebp - 0x2b4]
add edx, 1
mov dword [ebp - 0x2b4], edx
cmp dword [ebp - 0x2b4], 0xc
jge 0x406b5c
mov eax, dword [ebp - 0x2b4]
movsx ecx, byte [eax + str.CdDeEFgGaAbBC]
movsx edx, byte [ebp - 0x2ac]
cmp ecx, edx
jne 0x406b5a
jmp 0x406b5c
jmp 0x406b28
mov eax, dword [ebp - 0x2bc]
add eax, 1
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x2b4]
add ecx, eax
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x2c0]
shl edx, 4
mov al, byte [ebp - 0x2b4]
mov byte [edx + 0x42da78], al
mov ecx, dword [ebp - 0x3f0]
shl ecx, 1
mov edx, dword [ebp - 0x2c0]
shl edx, 4
mov word [edx + 0x42da7a], cx
mov eax, dword [ebp - 0x2b4]
fld qword [0x409ff8]
fmul qword [eax*8 + 0x432070]
fstp qword [ebp - 0x408]
fild dword [ebp - 0x3f0]
sub esp, 8
fstp qword [esp]
push 0x3ff0025d
push 0xdb52769a
call sub.MSVCRT.dll_pow
add esp, 0x10
fmul qword [ebp - 0x408]
call sub.MSVCRT.dll__ftol
mov dword [ebp - 0x40c], eax
fild dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x2c0]
shl ecx, 4
add ecx, 0x42da70
fstp qword [ecx]
mov edx, dword [ebp - 0x2c0]
add edx, 1
mov dword [ebp - 0x2c0], edx
jmp 0x406a68
jmp 0x406a2b
mov eax, dword [ebp - 0x2c0]
sub eax, 1
mov dword [0x432668], eax
mov dword [0x432670], 0
mov dword [0x432664], 0
mov dword [0x43266c], 0
push 0xff
mov ecx, dword [ebp - 0x3f8]
call fcn.00405764
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x208]
call fcn.00406fe0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.004081c6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00408196
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret