Function at 0x405c10
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594b0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp - 0x224]
add ecx, 0x834
call fcn.00403d90
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 1
push 0
push 0x5e35b8
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
push 6
mov ecx, dword [ebp - 0x224]
add ecx, 0x830
call fcn.00403d90
push eax
push 0x5e35cc
push 0
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::CFileDialog
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x224]
cmp dword [eax + 0x82c], 0
je 0x405cda
push 0xffffffffffffffff
push 0
push 0
push 0
push str.FIDIA_WS_BATCHACTIVE
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00436ac0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call fcn.00405b40
jmp 0x405ee9
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x405ed7
push 0
push 0x1001
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x22c]
call fcn.00403d90
push eax
mov ecx, dword [ebp - 0x224]
add ecx, 0x838
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + 0x838]
call dword [eax + 0x28]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x210], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x214]
call fcn.0058df86
mov ecx, dword [ebp - 0x210]
and ecx, 0xff
test ecx, ecx
je 0x405dab
push 0xffffffffffffffff
push 0
push 0
push 0
push 0x5e35e8
call dword [sym.imp.LANGUAGE.dll_char_const____cdecl_ReadLanguageString_char_const___char_const___int_]
add esp, 0xc
push eax
mov edx, dword [ebp - 0x224]
push edx
call fcn.00436ac0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call fcn.00405b40
jmp 0x405ee9
mov eax, dword [ebp - 0x224]
mov dword [eax + 0x82c], 1
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::GetFileTitle
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x224]
add ecx, 0x830
call fcn.0058dfec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x218]
call fcn.0058df86
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x208]
call sub.MFC42.DLL_CFileDialog::GetPathName
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x224]
add ecx, 0x834
call fcn.0058dfec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.0058df86
push 0x5c
mov ecx, dword [ebp - 0x224]
add ecx, 0x834
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x405ed7
mov ecx, dword [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov ecx, dword [ebp - 0x224]
add ecx, 0x834
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x244]
push ecx
mov ecx, dword [ebp - 0x224]
add ecx, 0x834
call fcn.0058dfec
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.0058df86
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x208]
call fcn.00405b40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret