Function at 0x1002fa09
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x10127b92
call fcn.10123c77
mov esi, ecx
mov dword [ebp - 0x234], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x220], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x260], esi
call fcn.1002b54f
xor ebx, ebx
mov dword [esi], vtable.V4CRHRenderContext.0
lea ecx, [esi + 0xb0]
mov dword [ebp - 4], ebx
call fcn.10030094
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 1
call fcn.1001400b
lea ecx, [esi + 0x348]
call fcn.100300c6
lea eax, [ebp - 0x244]
mov byte [esi + 0x333], bl
push eax
mov byte [esi + 0x3c8], bl
mov dword [esi + 0xf8], ebx
mov dword [ebp - 0x244], 8
mov dword [ebp - 0x240], 0x4000
call fcn.1003fbca
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x1002fb81
push str.D3D8.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x114]
push edi
push eax
call dword [sym.imp.MSVCR120.dll_sprintf_s]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esp, 0x14
test eax, eax
jle 0x1002fb2a
lea eax, [ebp - 0x114]
push eax
call fcn.1003fc6f
test eax, eax
je 0x1002fb20
push eax
mov bl, 1
call edi
mov byte [esi + 0x331], bl
xor ebx, ebx
jmp 0x1002fb30
mov byte [esi + 0x331], bl
push str.D3D9.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x14
test eax, eax
jle 0x1002fb79
lea eax, [ebp - 0x114]
push eax
call fcn.1003fc6f
test eax, eax
je 0x1002fb6f
push eax
mov bl, 1
call edi
mov byte [esi + 0x332], bl
xor ebx, ebx
jmp 0x1002fb88
mov byte [esi + 0x332], bl
jmp 0x1002fb88
mov word [esi + 0x331], bx
cmp byte [esi + 0x332], 0
push 0xff
je 0x1002fb9d
push str.viewport_DX9
jmp 0x1002fbb2
cmp byte [esi + 0x331], 0
je 0x1002fbad
push str.viewport_DX8
jmp 0x1002fbb2
push str.Dimension_X__Z_Buffer_
lea edi, [esi + 0x231]
push edi
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x330], bl
mov ecx, esi
push edi
call fcn.1003bf22
mov ecx, esi
mov byte [esi + 0x230], 1
mov byte [esi + 0x3c0], 1
call fcn.1003d19b
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, esi
call fcn.1003d19b
mov ebx, dword [ebp + 0x14]
mov ecx, esi
mov dword [eax + 4], ebx
call fcn.1003d19b
mov edi, dword [ebp - 0x230]
mov ecx, esi
mov dword [eax + 8], edi
call fcn.1003d19b
mov ecx, dword [ebp - 0x220]
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.1003d19b
mov ecx, esi
mov dword [eax + 0x10], edi
call fcn.1003d19b
mov ecx, dword [ebp - 0x220]
mov dword [eax + 0x14], ecx
mov ecx, esi
call fcn.1003d19b
movsd xmm0, qword [ebp + 0x20]
mov ecx, esi
movsd qword [eax + 0x28], xmm0
call fcn.1003d19b
movsd xmm0, qword [ebp + 0x28]
mov ecx, esi
movsd qword [eax + 0x30], xmm0
xor eax, eax
mov dword [esi + 0x118], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x210], 1
mov dword [esi + 0x214], 0xf
mov byte [esi + 0x128], 1
mov dword [esi + 0x218], eax
mov dword [esi + 0x228], eax
mov byte [esi + 0x3c1], al
mov dword [esi + 0x3c4], eax
call fcn.1003d19b
mov edx, dword [ebp - 0x21c]
and dword [ebp - 0x224], 0
and dword [ebp - 0x228], 0
and dword [ebp - 0x22c], 0
mov dword [eax + 0x40], edx
xor eax, eax
mov dword [esi + 0x124], eax
mov dword [esi + 0x12c], eax
mov byte [esi + 0x1f0], al
lea eax, [esi + 0x1f1]
push 6
pop ecx
lea esi, [ebp - 0x25c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0xc]
xor ecx, ecx
lea esi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x234]
mov dword [edi + 0x114], ecx
mov esi, dword [ebp - 0x220]
or eax, 0xffffffff
push esi
push dword [ebp - 0x230]
xorps xmm0, xmm0
mov dword [edi + 0x110], ecx
push ebx
push dword [ebp + 0x10]
mov dword [edi + 0x130], ecx
mov dword [edi + 0x120], ecx
mov dword [edi + 0x22c], ecx
mov dword [edi + 0x224], ecx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], ecx
mov word [edi + 0x334], cx
mov dword [edi + 0x338], ecx
mov dword [edi + 0x33c], ecx
mov dword [edi + 0x340], ecx
mov dword [edi + 0x3b8], ecx
mov dword [edi + 0x3bc], ecx
mov ecx, edi
push edx
mov dword [edi + 0x20c], 0x48
mov dword [edi + 0x21c], eax
mov dword [edi + 0x220], eax
mov dword [edi + 0x344], eax
mov dword [edi + 0x348], eax
movups xmmword [edi + 0x3a0], xmm0
movsd qword [edi + 0x3b0], xmm0
call fcn.10031f1d
mov ecx, edi
call fcn.1003d19b
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x1003008a
lea ecx, [ebp - 0x23c]
call fcn.10006cf4
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.10036afd
lea ecx, [ebp - 0x23c]
call fcn.1000709c
push eax
call fcn.1009f83c
mov dword [edi + 0x114], eax
pop ecx
test eax, eax
je 0x1003007b
mov ecx, dword [eax]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [ecx + 0x234]
push 3
mov dword [edi + 0x118], eax
mov eax, dword [0x107ad68c]
push ebx
push ebx
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xdc]
push ebx
mov ebx, dword [ebp - 0x230]
push esi
push ebx
mov dword [edi + 0x110], eax
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x314]
mov ecx, edi
mov esi, eax
call fcn.1003d19b
mov ecx, edi
mov dword [eax + 0x38], esi
call fcn.1003d19b
mov esi, dword [ebp - 0x220]
mov ecx, 0xc09
push 1
push esi
mov eax, dword [eax + 0x38]
push ebx
and dword [eax + 0x60], 0
mov eax, dword [edi + 0x110]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x164]
mov word [eax + 0x2c], cx
mov eax, dword [edi + 0x110]
push dword [eax + 0x10c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2b8]
mov ecx, edi
call fcn.1003d19b
mov ecx, edi
mov dword [eax + 8], ebx
call fcn.1003d19b
push 0
mov ecx, edi
mov dword [eax + 0xc], esi
call fcn.10030996
mov ecx, edi
call fcn.1003d19b
push 4
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf0]
mov ecx, dword [edi + 0x110]
mov ebx, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x154]
and dword [ebp - 0x22c], 0
and dword [ebp - 0x228], 0
mov dword [edi + 0x11c], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x224], 0x3f800000
mov ecx, dword [ebx]
push eax
push ebx
call dword [ecx + 0xf0]
and dword [ebp - 0x250], 0
lea esi, [ebp - 0x250]
and dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0xc1200000
lea edi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x22c]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
call dword [eax + 0xe0]
and dword [ebp - 0x250], 0
lea esi, [ebp - 0x250]
and dword [ebp - 0x24c], 0
lea edi, [ebp - 0x22c]
and dword [ebp - 0x248], 0
lea ecx, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
call dword [eax + 0xe8]
push 0x20
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x21c], eax
mov edi, dword [ebp - 0x234]
mov byte [ebp - 4], 3
test eax, eax
je 0x1002ff92
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.1004033b
jmp 0x1002ff94
xor eax, eax
push 0x74
mov byte [ebp - 4], 2
mov dword [edi + 0x134], eax
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1002ffc7
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10068fad
jmp 0x1002ffc9
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.10002017
push 0x28
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x1002ffff
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10046e2f
jmp 0x10030001
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.10002017
push 0x40
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10030037
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10058b5d
jmp 0x10030039
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.10002017
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x10030070
mov ecx, dword [edi + 4]
and dword [eax + 0xc], 0
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov byte [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax], vtable.V4CManipulatorToolHandler.0
jmp 0x10030072
xor eax, eax
mov ecx, dword [edi + 4]
push eax
call fcn.10002017
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.10006d16
mov eax, edi
call fcn.10123c26
ret 0x28