Function at 0x102b769
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1039df7
call fcn.01035f78
sub esp, 0x690
mov eax, dword [0x1044924]
push ebx
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x678]
push eax
push 0x1044e10
call fcn.0102ef38
mov ecx, eax
call fcn.0102ece5
lea eax, [ebp - 0x410]
push eax
xor ebx, ebx
push ebx
push ebx
push 9
push ebx
call dword [0x10018a8]
cmp eax, ebx
jne 0x102bb63
cmp word [ebp - 0x410], bx
je 0x102bb63
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp word [ebp + eax*2 - 0x412], 0x5c
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
je 0x102b7f5
lea eax, [ebp - 0x410]
push 0x1002540
push eax
call esi
pop ecx
pop ecx
push edi
lea eax, [ebp - 0x410]
push 0x1001e68
push eax
call esi
pop ecx
pop ecx
push 0x1007b58
lea ecx, [ebp - 0x670]
call sub.MFC42u.dll_CString::CString_5
push 0xa
lea ecx, [ebp - 0x69c]
mov dword [ebp - 4], ebx
call fcn.01034d9a
cmp dword [ebp - 0x678], ebx
mov byte [ebp - 4], 1
je 0x102b88f
call fcn.0101336a
mov edi, eax
mov eax, dword [edi + 8]
lea esi, [eax - 1]
jmp 0x102b88a
push esi
mov ecx, edi
call fcn.01012f52
mov ecx, eax
call fcn.0100eba1
push eax
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x668]
push eax
call sub.MFC42u.dll_operator_3
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CStringList::AddTail_1
lea ecx, [ebp - 0x668]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
dec esi
cmp esi, 1
jge 0x102b841
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [0x1001118]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
mov dword [ebp - 0x66c], eax
je 0x102ba0d
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x664]
call sub.MFC42u.dll_CString::CString_5
push 0x10036d4
lea eax, [ebp - 0x664]
push eax
mov byte [ebp - 4], 3
call fcn.01025a98
test al, al
je 0x102b9c7
push 0x10036cc
lea eax, [ebp - 0x664]
push eax
call fcn.01025a98
test al, al
je 0x102b9c7
push dword [ebp - 0x670]
lea ecx, [ebp - 0x664]
mov dword [ebp - 0x668], ebx
call sub.MFC42u.dll_CString::Find_2
test eax, eax
jne 0x102b92b
mov dword [ebp - 0x668], 1
push 0x2e
lea ecx, [ebp - 0x664]
call sub.MFC42u.dll_CString::ReverseFind
cmp eax, 0xffffffff
je 0x102b997
push eax
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x664]
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::operator_3
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::CString
push ebx
push dword [ebp - 0x664]
lea ecx, [ebp - 0x69c]
call sub.MFC42u.dll_CStringList::Find
cmp eax, ebx
je 0x102b997
push eax
lea ecx, [ebp - 0x69c]
call sub.MFC42u.dll_CStringList::RemoveAt
mov dword [ebp - 0x668], ebx
cmp dword [ebp - 0x668], ebx
je 0x102b9c7
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x410]
push 0x5c
push eax
call esi
pop ecx
inc eax
pop ecx
inc eax
push eax
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
call dword [0x1001134]
lea eax, [ebp - 0x660]
push eax
push dword [ebp - 0x66c]
call dword [0x1001114]
test eax, eax
jne 0x102b9f1
push dword [ebp - 0x66c]
call dword [0x1001110]
or dword [ebp - 0x66c], 0xffffffff
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
cmp dword [ebp - 0x66c], 0xffffffff
jne 0x102b8be
cmp dword [ebp - 0x678], ebx
jne 0x102bb38
lea eax, [ebp - 0x410]
push 0x5c
push eax
call esi
pop ecx
mov word [eax], bx
pop ecx
lea eax, [ebp - 0x410]
push eax
call dword [0x1001104]
jmp 0x102bb44
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x69c]
call sub.MFC42u.dll_CStringList::RemoveHead
push dword [ebp - 0x664]
lea eax, [ebp - 0x410]
push 0x5c
push eax
mov byte [ebp - 4], 5
call esi
pop ecx
inc eax
pop ecx
inc eax
push eax
call edi
mov eax, dword [ebp - 0x670]
pop ecx
pop ecx
push dword [eax - 8]
lea eax, [ebp - 0x674]
push eax
lea ecx, [ebp - 0x664]
call sub.MFC42u.dll_CString::Mid_1
push eax
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 6
call sub.MFC42u.dll_CString::operator_3
lea ecx, [ebp - 0x674]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x668]
call sub.MFC42u.dll_CString::CString_5
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 7
call sub.MFC42u.dll_CString::CString_3
mov dword [ebp - 0x66c], eax
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], 8
call sub.MFC42u.dll_CString::CString_3
push ebx
push dword [ebp - 0x66c]
mov byte [ebp - 4], 9
push ebx
push eax
push ebx
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x668]
push eax
call fcn.0102af5d
lea ecx, [ebp - 0x680]
mov byte [ebp - 4], 8
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x67c]
mov byte [ebp - 4], 7
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x668]
mov byte [ebp - 4], 5
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
cmp dword [ebp - 0x690], ebx
jne 0x102ba3b
lea ecx, [ebp - 0x69c]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CStringList::CStringList
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x670]
call sub.MFC42u.dll_CString::CString
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01034945
leave
ret