Function at 0x105fefb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10d6149
call fcn.0107a498
sub esp, 0x254
mov eax, dword [0x10e607c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x250], esi
call fcn.0105a7a0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x258], ebx
jne 0x105ff4b
push 1
push eax
push 0x10
push eax
push 0x4e67
push 0x17
call fcn.01056e47
xor eax, eax
jmp 0x10603aa
cmp dword [ebp + 8], 0x3025
jne 0x1060364
push 1
mov ecx, esi
call fcn.0105d92f
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x68]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x68]
cmp dword [ebx + 0x60], 0
jne 0x105ff85
mov ecx, esi
call fcn.0105dadc
jmp 0x1060378
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
lea edx, [ebp - 0x260]
push edx
push eax
call dword [ecx + 0x74]
test eax, eax
jne 0x1060364
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
lea edx, [ebp - 0x238]
push edx
push eax
call dword [ecx + 0x94]
test eax, eax
jne 0x1060364
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
lea edx, [ebp - 0x24c]
push edx
push eax
call dword [ecx + 0x9c]
test eax, eax
jne 0x1060358
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
lea edx, [ebp - 0x244]
push edx
push eax
call dword [ecx + 0xac]
test eax, eax
jne 0x1060358
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
lea edx, [ebp - 0x254]
push edx
lea edx, [ebp - 0x248]
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x1060358
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
lea edx, [ebp - 0x234]
push edx
push eax
call dword [ecx + 0x4c]
test eax, eax
jne 0x1060358
lea eax, [edi + 0x174]
push eax
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::CString_5
mov eax, dword [edi + 0x17c]
mov ecx, dword [eax]
and dword [ebp - 4], 0
lea edx, [ebp - 0x21c]
push edx
push 0x1013d4c
push 0x1013d2c
push dword [ebp - 0x228]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x106033d
call fcn.01022d84
push eax
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::CString_3
push 0x1003824
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::operator_1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::operator_2
push 0x10037f4
lea ecx, [ebp - 0x220]
call sub.MFC42u.dll_CString::operator_1
mov ecx, dword [esi + 0x20]
push 0x1005428
call fcn.010550ac
push dword [ebp - 0x220]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x80]
mov ebx, 0x1003828
push ebx
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::CString_4
push 0x104
lea eax, [ebp - 0x218]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1060129
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::operator
push 0x1003824
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::operator_1
push 0x1003808
lea ecx, [ebp - 0x224]
call sub.MFC42u.dll_CString::operator_1
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x224]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
test eax, eax
jne 0x106030d
lea ecx, [ebp - 0x230]
call sub.MFC42u.dll_CString::CString_2
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x230]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0105e7a4
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x230]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
mov ax, word [edi + 0x184]
test ax, ax
jbe 0x10601f0
movzx eax, ax
xor esi, esi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
lea edx, [ebp - 0x23c]
push edx
lea edx, [ebp - 0x25c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10601e5
mov eax, dword [edi + 0x188]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx]
add eax, esi
push eax
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add esi, 0x30
dec dword [ebp - 0x22c]
jne 0x10601a6
push dword [0x10eaea8]
mov eax, dword [ebp - 0x21c]
push dword [0x10eaea4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
mov eax, dword [0x10eaea8]
mov eax, dword [eax - 8]
mov dword [ebp - 0x22c], eax
inc eax
mov esi, 0x10eaea8
push eax
mov ecx, esi
call sub.MFC42u.dll_CString::GetBuffer
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
je 0x1060235
mov byte [eax], 0
inc eax
dec ecx
jne 0x106022e
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.dll_CString::ReleaseBuffer
push ebx
mov ecx, esi
call fcn.010790aa
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x260]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x238]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x90]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x24c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x244]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
push dword [ebp - 0x254]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x248]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x234]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
lea edx, [ebp - 0x240]
push edx
push 0x1013d5c
push eax
call dword [ecx]
test eax, eax
jne 0x10602f8
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
mov esi, dword [ebp - 0x250]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
mov ebx, dword [ebp - 0x258]
push dword [ebp - 0x234]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x238]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [0x10eae7c]
call fcn.01084c69
mov ecx, esi
push 1
call fcn.0105d92f
xor esi, esi
cmp dword [edi + 0x180], esi
je 0x1060399
add edi, 0x17c
cmp dword [edi], esi
je 0x1060399
mov edi, dword [edi]
mov eax, dword [edi]
push 0x100382c
push edi
call dword [eax + 0x1c]
push esi
mov ecx, ebx
call fcn.0102c6ac
xor eax, eax
mov dword [ebx + 0xa8], esi
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01078836
leave
ret 8