Function at 0x41ed30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x432862
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [esp + 0x134]
push edi
mov ecx, esi
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x13c]
call sub.MFC42.DLL_CString::Empty
mov ebp, dword [esp + 0x134]
test ebp, ebp
je 0x41edb4
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push 0x43f704
push ebp
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x41edb8
mov al, byte [ebp]
cmp al, 0x3b
je 0x41eda2
cmp al, 0x5b
je 0x41eda2
cmp ebp, edi
jne 0x41edab
lea ebp, [edi + 2]
test ebp, ebp
jne 0x41ed82
jmp 0x41edb8
lea eax, [edi + 2]
mov dword [esp + 0x18], eax
jmp 0x41edb8
mov edi, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41ee29
test edi, edi
je 0x41edd8
mov bl, byte [edi]
push ebp
mov ecx, esi
mov byte [edi], 0
call sub.MFC42.DLL_CString::operator_1
mov byte [edi], bl
jmp 0x41ede0
push ebp
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
push 0x3b
mov ecx, esi
call sub.MFC42.DLL_CString::Find_1
or ebp, 0xffffffff
cmp eax, ebp
je 0x41ee20
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, esi
mov dword [esp + 0x130], 0
call fcn.0042f26e
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
jmp 0x41ee2c
or ebp, 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
je 0x41efd8
push 0x43ff78
mov ecx, esi
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, ebp
je 0x41ef5f
lea eax, [edi + 1]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
add edi, 2
lea edx, [esp + 0x10]
mov ebx, 1
push edi
push edx
mov ecx, esi
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, esi
mov byte [esp + 0x130], 2
call fcn.0042f26e
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str._windir_
push eax
call edi
add esp, 8
test eax, eax
jne 0x41eec6
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x41eee9
mov eax, dword [esp + 0x14]
push str._winsysdir_
push eax
call edi
add esp, 8
test eax, eax
jne 0x41eefa
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CString::operator_1
mov edi, dword [esp + 0x13c]
push 0x5c
mov ecx, edi
call fcn.0042f700
push esi
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebp
je 0x41ef4d
inc eax
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, esi
mov byte [esp + 0x130], 3
call fcn.0042f26e
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
jmp 0x41efd8
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x440960
call fcn.00413460
mov edi, dword [esp + 0x13c]
push eax
mov ecx, edi
mov dword [esp + 0x130], 4
call fcn.0042f26e
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
cmp byte [edx], 0x2e
jne 0x41efd0
lea eax, [esp + 0x1c]
push 2
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, esi
mov dword [esp + 0x130], 5
call fcn.0042f26e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
push esi
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 0xc