Function at 0x41ed90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x432962
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 0x41ee14
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push 0x43f704
push ebp
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x41ee18
mov al, byte [ebp]
cmp al, 0x3b
je 0x41ee02
cmp al, 0x5b
je 0x41ee02
cmp ebp, edi
jne 0x41ee0b
lea ebp, [edi + 2]
test ebp, ebp
jne 0x41ede2
jmp 0x41ee18
lea eax, [edi + 2]
mov dword [esp + 0x18], eax
jmp 0x41ee18
mov edi, dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41ee89
test edi, edi
je 0x41ee38
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 0x41ee40
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 0x41ee80
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.0042f37e
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 0x41ee8c
or ebp, 0xffffffff
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
je 0x41f038
push 0x43ff7c
mov ecx, esi
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, ebp
je 0x41efbf
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.0042f37e
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 0x41ef26
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x41ef49
mov eax, dword [esp + 0x14]
push str._winsysdir_
push eax
call edi
add esp, 8
test eax, eax
jne 0x41ef5a
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 sub.MFC42.DLL_CString::operator_2
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 0x41efad
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.0042f37e
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 0x41f038
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x440960
call fcn.004134a0
mov edi, dword [esp + 0x13c]
push eax
mov ecx, edi
mov dword [esp + 0x130], 4
call fcn.0042f37e
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], ebp
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
cmp byte [edx], 0x2e
jne 0x41f030
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.0042f37e
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