Function at 0x100012ee
Capabilities:
Get common file path

Disassembly:
jmp 0x1001b260
push 0xffffffffffffffff
push 0x100222ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x158], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x48]
push 0x104
push edx
rep stosd dword es:[edi], eax
mov byte [esp + 0x15c], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x160]
mov byte [esp + 0x158], 3
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jle 0x1001b735
mov ecx, dword [esp + 0x15c]
lea edx, [esp + 0x24]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x164]
call sub.MFC42.DLL_CString::Right
lea eax, [esp + 0x20]
push str.Setupmsback1Special.ini
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x160], 4
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x154], 5
call fcn.100011cc
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x158], 6
call fcn.100015aa
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 7
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push ecx
push str.FILEDIR
lea ecx, [esp + 0x40]
mov byte [esp + 0x160], 8
call fcn.100015af
mov edx, dword [esp + 0x1c]
cmp dword [edx - 8], ebx
jle 0x1001b6e0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.1001f28a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 9
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0xa
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight_1
push ebx
push 0x100292ac
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_3
mov ecx, dword [esp + 0x10]
mov esi, eax
cmp esi, ebx
jle 0x1001b6b0
mov eax, dword [ecx - 8]
lea edx, [esp + 0x3c]
sub eax, esi
lea ecx, [esp + 0x10]
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x154], 0xa
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x154], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.system32
push ecx
call esi
add esp, 8
test eax, eax
jne 0x1001b575
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x1002b844
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b], bl
push ebx
push 0x1002c75c
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jle 0x1001b52a
call fcn.10001208
test eax, eax
je 0x1001b5e6
mov byte [esp + 0x1b], 1
call fcn.10001406
lea ecx, [esp + 0x15c]
call sub.MFC42.DLL_CString::MakeLower
push str.SysWow64
push str.system32
lea ecx, [esp + 0x164]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x15c]
push edx
push eax
push str.CheckSpecialFile____IsX64
call fcn.10001672
add esp, 0xc
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.1001f28a
push ecx
lea eax, [esp + 0x168]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x164], 0xd
call fcn.1001f28a
mov ecx, ebp
mov byte [esp + 0x160], 0xa
call fcn.1000137a
cmp byte [esp + 0x1b], bl
je 0x1001b5e6
call fcn.100010af
jmp 0x1001b5e6
mov ecx, dword [esp + 0x10]
push str.windows
push ecx
call esi
add esp, 8
test eax, eax
jne 0x1001b6be
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x1002b844
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x14]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.1001f28a
push ecx
lea eax, [esp + 0x168]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x164], 0xe
call fcn.1001f28a
mov ecx, ebp
mov byte [esp + 0x160], 0xa
call fcn.1000137a
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x154], 5
call fcn.10001654
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x15c]
mov byte [esp + 0x154], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x160]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x1001b783
push ecx
push str.CheckSpecialFile____szFirstName:__s___
call fcn.10001672
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x154], 5
call fcn.10001654
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x154], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x15c]
mov byte [esp + 0x154], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x160]
mov dword [esp + 0x154], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret 8