Function at 0x402af0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4046b8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov al, byte [edi + 0xc8]
test al, al
je 0x402d3e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x9c]
lea esi, [edi + 0x9c]
push 0
push 0
mov ecx, esi
mov dword [esp + 0x4c], 0
call dword [eax + 0x30]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x407144
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_CString::operator
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.004029e0
test al, al
jne 0x402bd5
push 0
push 0
push 0x407130
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
jmp 0x402d03
lea ebp, [edi + 0x60]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetSize
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
je 0x402c2f
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.00402d90
test al, al
jne 0x402c1f
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x60]
test eax, eax
jne 0x402bf3
mov ebx, dword [edi + 0x68]
test ebx, ebx
je 0x402d03
mov ecx, dword [esp + 0x10]
push 0
push 0x4001
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x402c91
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 0x407120
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0
push eax
mov ecx, edi
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 3
call fcn.00403f02
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
jmp 0x402d03
xor esi, esi
test ebx, ebx
jle 0x402cfa
mov eax, dword [esp + 0x28]
push 2
push 0
lea ecx, [esp + 0x30]
call dword [eax + 0x30]
lea ecx, [esp + 0x24]
push esi
push ecx
mov ecx, ebp
call fcn.00402d60
push 0x407050
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 5
call fcn.00403f02
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 3
call fcn.00403f02
inc esi
cmp esi, ebx
jl 0x402c97
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call fcn.00403f02
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.00403f02
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.00403ef6
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.00403f02
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret