Function at 0x100378ed
Capabilities:
Get common file path

Disassembly:
push 0x24c
mov eax, 0x101481ba
call fcn.101439bc
mov esi, ecx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x220], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x258], esi
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
lea edi, [esi + 0xb0]
mov dword [esi], vtable.V4CRHRenderContext.0
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10038013
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.1001809c
lea ecx, [esi + 0x348]
call fcn.10038045
lea eax, [ebp - 0x254]
mov byte [esi + 0x333], bl
push eax
mov byte [esi + 0x3c8], bl
mov dword [esi + 0xf8], ebx
mov dword [ebp - 0x254], 8
mov dword [ebp - 0x250], 0x4000
call fcn.10049b78
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x10037a5e
push str.D3D8.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
add esp, 0x14
test eax, eax
jle 0x10037a0c
lea eax, [ebp - 0x114]
push eax
call fcn.10049c40
test eax, eax
je 0x10037a0c
push eax
mov bl, 1
call dword [sym.imp.kernel32.dll_FreeLibrary]
push str.D3D9.dll
lea eax, [ebp - 0x218]
mov byte [esi + 0x331], bl
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
add esp, 0x14
xor bl, bl
test eax, eax
jle 0x10037a56
lea eax, [ebp - 0x114]
push eax
call fcn.10049c40
test eax, eax
je 0x10037a56
push eax
inc bl
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov byte [esi + 0x332], bl
jmp 0x10037a65
mov word [esi + 0x331], bx
push 0xff
test bl, bl
je 0x10037a75
push str.viewport_DX9
jmp 0x10037a8a
cmp byte [esi + 0x331], 0
je 0x10037a85
push str.viewport_DX8
jmp 0x10037a8a
push str.Dimension_X__Z_Buffer_
lea eax, [esi + 0x231]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [esi + 0x330], 0
add esp, 0xc
mov eax, dword [esi + 0xf8]
mov ecx, edi
mov ebx, dword [ebp + 0x10]
test eax, eax
mov edx, dword [ebp + 0x14]
cmovne ecx, eax
mov byte [esi + 0x230], 1
mov byte [esi + 0x3c0], 1
movsd xmm0, qword [ebp + 0x20]
push 6
mov dword [ecx], ebx
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
cmovne ecx, eax
mov dword [ecx + 4], edx
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ecx + 0xc], eax
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 0x10], eax
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ecx + 0x14], eax
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
cmovne ecx, eax
movsd qword [ecx + 0x28], xmm0
mov ecx, edi
mov eax, dword [esi + 0xf8]
test eax, eax
movsd xmm0, qword [ebp + 0x28]
cmovne ecx, eax
xor eax, eax
movsd qword [ecx + 0x30], xmm0
mov ecx, edi
mov dword [esi + 0x118], eax
mov dword [esi + 0x134], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x228], eax
mov byte [esi + 0x3c1], al
mov dword [esi + 0x3c4], eax
mov eax, dword [esi + 0xf8]
test eax, eax
mov dword [esi + 0x210], 1
cmovne ecx, eax
mov dword [esi + 0x214], 0xf
mov eax, dword [ebp - 0x22c]
mov byte [esi + 0x128], 1
mov dword [ecx + 0x40], eax
xor eax, eax
mov dword [esi + 0x124], eax
mov dword [esi + 0x12c], eax
mov byte [esi + 0x1f0], al
lea eax, [esi + 0x1f1]
pop ecx
lea esi, [ebp - 0x244]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x230], 0
lea edi, [eax + 0xc]
and dword [ebp - 0x234], 0
lea esi, [ebp - 0x238]
and dword [ebp - 0x238], 0
xor ecx, ecx
movsd dword es:[edi], dword [esi]
xorps xmm0, xmm0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
push edx
push ebx
push dword [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [ebp - 0x238]
or eax, 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x228]
mov dword [edi + 0x114], ecx
mov dword [edi + 0x110], ecx
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
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_float__struct_QUAT___struct_QUAT___int_
mov eax, dword [edi + 0xf8]
lea ebx, [edi + 0xb0]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
cmp dword [ecx + 0x3c], 0
je 0x10038009
lea ecx, [ebp - 0x24c]
call fcn.1000837d
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.1003fa05
lea ecx, [ebp - 0x24c]
call fcn.1000875b
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
mov dword [edi + 0x114], eax
pop ecx
test eax, eax
je 0x10037ffe
mov ecx, dword [eax]
push 0
push 0
push eax
mov esi, dword [ecx + 0x234]
mov ecx, esi
call dword [0x10151aac]
call esi
mov dword [edi + 0x118], eax
mov ecx, dword [0x107d05a8]
push 3
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
mov ecx, dword [edi + 0xf8]
test ecx, ecx
push 0
push dword [ebp - 0x220]
mov dword [edi + 0x110], eax
mov edi, ebx
mov esi, dword [eax]
cmovne edi, ecx
push dword [ebp - 0x21c]
push 0
mov esi, dword [esi + 0x314]
mov ecx, esi
push eax
call dword [0x10151aac]
call esi
mov ebx, dword [ebp - 0x228]
mov dword [edi + 0x38], eax
push 1
push dword [ebp - 0x220]
mov eax, dword [ebx + 0xf8]
lea edi, [ebx + 0xb0]
test eax, eax
mov ecx, edi
push dword [ebp - 0x21c]
cmovne ecx, eax
mov eax, dword [ecx + 0x38]
mov ecx, 0xc09
and dword [eax + 0x60], 0
mov eax, dword [ebx + 0x110]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x164]
mov word [eax + 0x2c], cx
mov eax, dword [ebx + 0x110]
mov esi, dword [eax]
push dword [eax + 0x10c]
push eax
mov esi, dword [esi + 0x2b8]
mov ecx, esi
call dword [0x10151aac]
call esi
mov eax, dword [ebx + 0xf8]
mov ecx, edi
test eax, eax
push 0
cmovne ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
mov ecx, edi
mov eax, dword [ebx + 0xf8]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
mov eax, dword [ebx + 0xf8]
test eax, eax
push 4
cmovne edi, eax
mov eax, dword [edi + 0x38]
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xf0]
mov ecx, esi
call dword [0x10151aac]
call esi
mov ecx, dword [ebx + 0x110]
mov edi, eax
mov edx, dword [ecx]
push ecx
mov esi, dword [edx + 0x154]
mov ecx, esi
call dword [0x10151aac]
call esi
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x238]
and dword [ebp - 0x234], 0
mov dword [ebx + 0x11c], eax
mov dword [ebp - 0x230], 0x3f800000
mov eax, dword [edi]
push ecx
push edi
mov esi, dword [eax + 0xf0]
mov ecx, esi
call dword [0x10151aac]
call esi
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x238]
and dword [ebp - 0x230], 0
mov dword [ebp - 0x234], 0xc1200000
mov eax, dword [edi]
push ecx
push edi
mov esi, dword [eax + 0xe0]
mov ecx, esi
call dword [0x10151aac]
call esi
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x238]
and dword [ebp - 0x234], 0
and dword [ebp - 0x230], 0
mov eax, dword [edi]
push ecx
push edi
mov esi, dword [eax + 0xe8]
mov ecx, esi
call dword [0x10151aac]
call esi
push 0x20
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
mov edi, ebx
test eax, eax
je 0x10037f0f
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
jmp 0x10037f11
xor eax, eax
push 0x74
mov byte [ebp - 4], 2
mov dword [edi + 0x134], eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x10037f44
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
jmp 0x10037f46
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
push 0x28
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x10037f7c
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.100540ca
jmp 0x10037f7e
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
push 0x40
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10037fb4
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10065fc9
jmp 0x10037fb6
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
push 0x18
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
mov dword [ebp - 0x224], eax
pop ecx
test eax, eax
je 0x10037ff3
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 0x10037ff5
xor eax, eax
mov ecx, dword [edi + 4]
push eax
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
lea ecx, [ebp - 0x24c]
call sym.rt3d.dll_public:_void___thiscall_QUAT::constructor_float__struct_QUAT___struct_QUAT___int_
mov eax, edi
call fcn.10143966
ret 0x28