Function at 0x1002f802
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x10127632
call fcn.101236c7
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 sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
xor ebx, ebx
mov dword [esi], vtable.V4CRHRenderContext.0
lea ecx, [esi + 0xb0]
mov dword [ebp - 4], ebx
call fcn.1002fe8d
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.10014195
lea ecx, [esi + 0x348]
call fcn.1002febf
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.1003fa1b
mov edi, 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x1002f97a
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 0x1002f923
lea eax, [ebp - 0x114]
push eax
call fcn.1003fac0
test eax, eax
je 0x1002f919
push eax
mov bl, 1
call edi
mov byte [esi + 0x331], bl
xor ebx, ebx
jmp 0x1002f929
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 0x1002f972
lea eax, [ebp - 0x114]
push eax
call fcn.1003fac0
test eax, eax
je 0x1002f968
push eax
mov bl, 1
call edi
mov byte [esi + 0x332], bl
xor ebx, ebx
jmp 0x1002f981
mov byte [esi + 0x332], bl
jmp 0x1002f981
mov word [esi + 0x331], bx
cmp byte [esi + 0x332], 0
push 0xff
je 0x1002f996
push str.viewport_DX9
jmp 0x1002f9ab
cmp byte [esi + 0x331], 0
je 0x1002f9a6
push str.viewport_DX8
jmp 0x1002f9ab
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 sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov ecx, esi
mov byte [esi + 0x230], 1
mov byte [esi + 0x3c0], 1
call fcn.1003cf9a
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, esi
call fcn.1003cf9a
mov ebx, dword [ebp + 0x14]
mov ecx, esi
mov dword [eax + 4], ebx
call fcn.1003cf9a
mov edi, dword [ebp - 0x230]
mov ecx, esi
mov dword [eax + 8], edi
call fcn.1003cf9a
mov ecx, dword [ebp - 0x220]
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.1003cf9a
mov ecx, esi
mov dword [eax + 0x10], edi
call fcn.1003cf9a
mov ecx, dword [ebp - 0x220]
mov dword [eax + 0x14], ecx
mov ecx, esi
call fcn.1003cf9a
movsd xmm0, qword [ebp + 0x20]
mov ecx, esi
movsd qword [eax + 0x28], xmm0
call fcn.1003cf9a
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.1003cf9a
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 sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov ecx, edi
call fcn.1003cf9a
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x1002fe83
lea ecx, [ebp - 0x23c]
call fcn.10006d1a
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.100368b1
lea ecx, [ebp - 0x23c]
call fcn.100070c1
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov dword [edi + 0x114], eax
pop ecx
test eax, eax
je 0x1002fe74
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 [0x107ac68c]
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.1003cf9a
mov ecx, edi
mov dword [eax + 0x38], esi
call fcn.1003cf9a
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.1003cf9a
mov ecx, edi
mov dword [eax + 8], ebx
call fcn.1003cf9a
push 0
mov ecx, edi
mov dword [eax + 0xc], esi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
mov ecx, edi
call fcn.1003cf9a
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 0x1002fd8b
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
jmp 0x1002fd8d
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 0x1002fdc0
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
jmp 0x1002fdc2
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
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 0x1002fdf8
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10046c36
jmp 0x1002fdfa
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
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 0x1002fe30
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10058563
jmp 0x1002fe32
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x1002fe69
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 0x1002fe6b
xor eax, eax
mov ecx, dword [edi + 4]
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_struct_MATRIX3D_const__
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.10006d3c
mov eax, edi
call fcn.10123676
ret 0x28