Function at 0x46fcc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6306b0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x11c
lea edi, [esi + 0x20]
push 0
push edi
mov dword [esi + 0x18], connect
call fcn.004b4de0
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
push edi
mov dword [edi], 0x11c
call ebx
test eax, eax
jne 0x46fd0f
push edi
mov dword [edi], 0x114
call ebx
mov eax, dword [esi]
mov edx, dword [eax + 0xac]
mov ecx, esi
call edx
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
mov ecx, esi
call edx
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb8]
mov ecx, esi
call edx
mov ecx, 0x631bd8
mov dword [esi + 0x14], eax
call fcn.00403bb0
test eax, eax
je 0x46ffee
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
test eax, eax
je 0x46ffee
mov ecx, dword [esi + 4]
push ecx
push 0x562c08
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004b57a8
add esp, 0x14
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.VersionNT
mov ecx, eax
call edx
mov eax, dword [esi + 8]
push eax
push 0x562c08
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.004b57a8
add esp, 0x14
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x56b79c
mov ecx, eax
call edx
mov eax, dword [esi + 0xc]
push eax
push 0x562c08
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.004b57a8
add esp, 0x14
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.Version9X
mov ecx, eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0x104
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp + 0xc]
push eax
call edi
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesFolder
mov ecx, eax
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesFolder
mov ecx, eax
call edx
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0xc]
push ecx
call edi
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.WindowsFolder
mov ecx, eax
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
push 0x562d4c
mov ecx, eax
mov eax, dword [edx + 0x10]
push str.StartupFolder
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x7c]
push 0x104
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.SOURCEDIR
mov ecx, eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
push 0x104
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.INSTTEMPPATH
mov ecx, eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
push 0x104
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.INSTALLDIR
mov ecx, eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
push 0x104
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
mov ecx, 0x631bd8
call fcn.00403bb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.TEMPPATH
mov ecx, eax
call edx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4b34
add esp, 0x20c
ret