Function at 0x404300
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594a3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x240]
call fcn.00405b20
add eax, 0x484
push eax
lea ecx, [ebp - 0x10]
call fcn.0058dfec
lea ecx, [ebp - 0x10]
call fcn.00403d90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x5e321c
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x240]
push eax
push 1
push 0
push str.FIDIA_WS_SYMFILES
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
push 0x1000
push str..SYM
push 0x5e3240
push 1
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
je 0x4043e3
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00405b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0058df86
mov eax, dword [ebp - 0x22c]
jmp 0x404586
mov ecx, dword [ebp - 0x240]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push 0
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x228]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x248]
call fcn.00403d90
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::CFile
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.0058df86
mov ecx, dword [ebp - 0x240]
call fcn.00404594
push 4
mov eax, dword [ebp - 0x240]
add eax, 0x604
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
push 4
mov ecx, dword [ebp - 0x240]
add ecx, 0x608
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::GetLength
sub eax, 8
xor edx, edx
mov ecx, 0x14
div ecx
mov edx, dword [ebp - 0x240]
mov dword [edx + 0x628], eax
mov dword [ebp - 0x18], 0
jmp 0x4044a5
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 0x628]
jge 0x404531
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x1c], eax
push 0x14
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::Read
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x240]
add ecx, 0x60c
call sub.MFC42.DLL_CMapStringToPtr::Lookup
test eax, eax
je 0x404512
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x240]
add ecx, 0x60c
call sub.MFC42.DLL_CMapStringToPtr::operator__
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x40449c
mov edx, dword [ebp - 0x240]
mov dword [edx + 0x600], 1
mov ecx, dword [ebp - 0x240]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0058e12a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00405b40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0058df86
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret