Function at 0x469300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x630ddc]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x9c
lea edi, [esi + 0x20]
push 0
push edi
mov dword [esi + 0x18], connect
call fcn.004b79d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
push edi
mov dword [edi], 0x9c
call ebx
test eax, eax
jne 0x46934f
push edi
mov dword [edi], 0x94
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, 0x6322f8
mov dword [esi + 0x14], eax
call fcn.00403df0
test eax, eax
je 0x46962e
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
test eax, eax
je 0x46962e
mov ecx, dword [esi + 4]
push ecx
push 0x56aad4
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.004b7ed4
add esp, 0x14
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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 0x56aad4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.004b7ed4
add esp, 0x14
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0xc]
push ecx
push str.VersionNT64
mov ecx, eax
call edx
mov eax, dword [esi + 0xc]
push eax
push 0x56aad4
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.004b7ed4
add esp, 0x14
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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_PathAddBackslashA]
lea eax, [esp + 0xc]
push eax
call edi
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call edi
mov ecx, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [eax]
push 0x56ab79
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, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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, 0x6322f8
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
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 + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b6bdf
add esp, 0x108
ret