Function at 0x410be0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42a3f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd64
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x25d]
mov byte [esp + 0x25c], 0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x1c], ebp
add ebp, 0x1a8
mov dword [esp + 0x24], str._FONTS
mov dword [esp + 0x28], str._WINDOWS
mov dword [esp + 0x2c], str._DESKTOPDIRECTORY
mov dword [esp + 0x30], str._PROGRAMS
mov dword [esp + 0x34], str._STARTUP
mov dword [esp + 0x38], str._SYSTEM
mov dword [esp + 0x3c], str._PROGRAM_FILES
mov dword [esp + 0x40], 0x14
mov dword [esp + 0x44], 0x24
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x4c], 2
mov dword [esp + 0x50], 7
mov dword [esp + 0x54], 0x25
mov dword [esp + 0x58], 0x26
stosb byte es:[edi], al
xor esi, esi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x25c]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + esi + 0x44]
lea ecx, [esp + 0x260]
push eax
push ecx
push 0
call ebx
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0xd7c], edi
je 0x410cec
lea edx, [esp + 0x25c]
mov ecx, eax
push edx
call fcn.004284f2
mov edi, eax
mov eax, dword [esp + esi + 0x24]
mov ecx, ebp
push eax
mov dword [esp + 0xd80], 0xffffffff
call sub.MFC42.DLL_CMapStringToOb::operator__
add esi, 4
mov dword [eax], edi
cmp esi, 0x1c
jl 0x410c9e
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x1c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
push str._WINDOWS
call fcn.00410ad0
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x975]
mov byte [esp + 0x974], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x65d]
mov byte [esp + 0x65c], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x5c]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x978]
push str._sSystem32
push edx
stosb byte es:[edi], al
call esi
add esp, 0xc
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x65c]
push eax
push str._sSysWOW64
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x85c]
lea eax, [esp + 0x65c]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
cmp eax, 1
push 4
jne 0x410deb
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xd7c], 1
je 0x410e19
lea ecx, [esp + 0x65c]
push ecx
mov ecx, eax
call fcn.004284f2
mov edi, eax
jmp 0x410e1b
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xd7c], 2
je 0x410e19
lea edx, [esp + 0x974]
mov ecx, eax
push edx
call fcn.004284f2
mov edi, eax
jmp 0x410e1b
xor edi, edi
push str._SYSTEM_32BIT
mov ecx, ebp
mov dword [esp + 0xd80], 0xffffffff
call sub.MFC42.DLL_CMapStringToOb::operator__
mov dword [eax], edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xb75]
mov byte [esp + 0xb74], 0
mov byte [esp + 0x45c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x45d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, byte [esp + 0x5c]
push eax
lea ecx, [esp + 0xb78]
push str._c:Program_Files
push ecx
call esi
movsx edx, byte [esp + 0x68]
add esp, 0xc
lea eax, [esp + 0x45c]
push edx
push str._c:Program_Files__x86_
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x85c]
lea edx, [esp + 0x45c]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
cmp eax, 1
push 4
jne 0x410ee4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xd7c], 3
je 0x410f12
lea ecx, [esp + 0x45c]
push ecx
mov ecx, eax
call fcn.004284f2
mov esi, eax
jmp 0x410f14
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xd7c], 4
je 0x410f12
lea edx, [esp + 0xb74]
mov ecx, eax
push edx
call fcn.004284f2
mov esi, eax
jmp 0x410f14
xor esi, esi
push str._PROGRAM_FILES_32BIT
mov ecx, ebp
mov dword [esp + 0xd80], 0xffffffff
call sub.MFC42.DLL_CMapStringToOb::operator__
lea ecx, [esp + 0x14]
mov dword [eax], esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebx + 0x1b4]
mov dword [esp + 0xd7c], 5
neg eax
sbb eax, eax
test eax, eax
mov dword [esp + 0x18], eax
je 0x410f98
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
call sub.MFC42.DLL_CMapStringToOb::GetNextAssoc
mov ecx, dword [esp + 0x20]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [ebx + 0xd0]
push eax
mov eax, dword [esp + 0x18]
push eax
push str.CXSyncExeApp::LoadSpecialDirMap___s____s_
push 1
push ecx
call fcn.00407c90
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
jne 0x410f53
lea ecx, [esp + 0x14]
mov dword [esp + 0xd7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xd74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd70
ret