Function at 0x1003b1cf
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x10117202
call fcn.101134c8
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x224], ecx
push eax
mov ecx, ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x220], edi
call fcn.1010e06e
xor esi, esi
lea ecx, [ebx + 0xb0]
mov dword [ebp - 4], esi
mov dword [ebx], vtable.V4CRHRenderContext.0
call fcn.1002cf70
mov dword [ebx + 0xfc], esi
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x104], esi
lea ecx, [ebx + 0x140]
mov byte [ebp - 4], 1
call fcn.10012d0e
lea ecx, [ebx + 0x350]
call fcn.1002d9ab
lea eax, [ebp - 0x244]
push eax
mov byte [ebx + 0x33b], 0
mov byte [ebx + 0x3d0], 0
mov dword [ebx + 0xf8], esi
mov dword [ebp - 0x244], 8
mov dword [ebp - 0x240], 0x4000
call fcn.10039efd
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x1003b36a
push str.D3D8.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
test eax, eax
jle 0x1003b2fd
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x219], 0
call fcn.10039fa1
cmp eax, esi
je 0x1003b2ef
push eax
mov byte [ebp - 0x219], 1
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov al, byte [ebp - 0x219]
mov byte [ebx + 0x339], al
jmp 0x1003b304
mov byte [ebx + 0x339], 0
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.MSVCR100.dll_sprintf_s]
add esp, 0x14
test eax, eax
jle 0x1003b361
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 0x219], 0
call fcn.10039fa1
cmp eax, esi
je 0x1003b353
push eax
mov byte [ebp - 0x219], 1
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov al, byte [ebp - 0x219]
mov byte [ebx + 0x33a], al
jmp 0x1003b373
mov byte [ebx + 0x33a], 0
jmp 0x1003b373
mov word [ebx + 0x339], 0
cmp byte [ebx + 0x33a], 0
push 0xff
je 0x1003b388
push str.viewport_DX9
jmp 0x1003b39d
cmp byte [ebx + 0x339], 0
je 0x1003b398
push str.viewport_DX8
jmp 0x1003b39d
push str.Dimension_X__Z_Buffer_
lea eax, [ebx + 0x239]
push eax
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
lea eax, [ebx + 0x239]
push eax
mov ecx, ebx
mov byte [ebx + 0x338], 0
call fcn.1010e06e
mov ecx, ebx
mov byte [ebx + 0x238], 1
mov byte [ebx + 0x3c8], 1
call fcn.1003223b
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, ebx
call fcn.1003223b
mov ecx, dword [ebp + 0x14]
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.1003223b
mov dword [eax + 8], edi
call fcn.1003223b
mov edx, dword [ebp - 0x224]
mov dword [eax + 0xc], edx
call fcn.1003223b
mov dword [eax + 0x10], edi
call fcn.1003223b
mov dword [eax + 0x14], edx
call fcn.1003223b
fld qword [ebp + 0x20]
fstp qword [eax + 0x28]
call fcn.1003223b
fld qword [ebp + 0x28]
fstp qword [eax + 0x30]
mov dword [ebx + 0x11c], esi
mov dword [ebx + 0x138], esi
mov dword [ebx + 0x218], 1
mov dword [ebx + 0x21c], 0xf
mov byte [ebx + 0x12c], 1
mov dword [ebx + 0x220], esi
mov dword [ebx + 0x230], esi
mov byte [ebx + 0x3c9], 0
mov dword [ebx + 0x3cc], esi
call fcn.1003223b
fldz
mov ecx, dword [ebp - 0x228]
fst dword [ebp - 0x22c]
mov dword [eax + 0x40], ecx
fst dword [ebp - 0x230]
mov dword [ebx + 0x130], esi
fstp dword [ebp - 0x234]
push 6
mov dword [ebx + 0x128], 0
mov byte [ebx + 0x1f8], 0
pop ecx
lea esi, [ebp - 0x25c]
lea edi, [ebx + 0x1f9]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x205]
lea esi, [ebp - 0x234]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x234]
lea edi, [ebx + 0x1f9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
or eax, 0xffffffff
mov dword [ebx + 0x118], esi
mov dword [ebx + 0x114], esi
mov dword [ebx + 0x134], esi
mov dword [ebx + 0x124], esi
mov dword [ebx + 0x234], esi
mov dword [ebx + 0x214], 0x48
mov dword [ebx + 0x224], eax
mov dword [ebx + 0x228], eax
mov dword [ebx + 0x22c], esi
mov dword [ebx + 0x10c], esi
mov edi, dword [ebp - 0x220]
fldz
push edx
fst qword [ebx + 0x3a8]
push edi
fst qword [ebx + 0x3b0]
push dword [ebp + 0x14]
fstp qword [ebx + 0x3b8]
mov ecx, ebx
push dword [ebp + 0x10]
mov dword [ebx + 0x110], esi
push dword [ebp - 0x228]
mov word [ebx + 0x33c], si
mov dword [ebx + 0x340], esi
mov dword [ebx + 0x344], esi
mov dword [ebx + 0x348], esi
mov dword [ebx + 0x34c], eax
mov dword [ebx + 0x350], eax
mov dword [ebx + 0x3c0], esi
mov dword [ebx + 0x3c4], esi
call fcn.1010e06e
mov ecx, ebx
call fcn.1003223b
cmp dword [eax + 0x3c], esi
je 0x1003b867
lea ecx, [ebp - 0x23c]
call fcn.10006254
lea eax, [ebp - 0x23c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.1002d901
lea ecx, [ebp - 0x23c]
call fcn.1000603d
push eax
call fcn.1010e06e
pop ecx
mov dword [ebx + 0x118], eax
cmp eax, esi
je 0x1003b858
mov ecx, dword [eax]
push esi
push esi
push eax
call dword [ecx + 0x234]
push 3
push esi
push esi
mov dword [ebx + 0x11c], eax
mov eax, dword [0x1079d9f0]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xdc]
push esi
push dword [ebp - 0x224]
mov dword [ebx + 0x114], eax
mov ecx, dword [eax]
push edi
push esi
push eax
call dword [ecx + 0x314]
mov ecx, ebx
mov edx, eax
call fcn.1003223b
mov dword [eax + 0x38], edx
call fcn.1003223b
mov eax, dword [eax + 0x38]
mov dword [eax + 0x60], esi
mov eax, dword [ebx + 0x114]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x164]
push 1
push dword [ebp - 0x224]
mov ecx, 0xc09
mov word [eax + 0x2c], cx
mov eax, dword [ebx + 0x114]
mov ecx, dword [eax]
push edi
push dword [eax + 0x10c]
push eax
call dword [ecx + 0x2b8]
mov ecx, ebx
call fcn.1003223b
mov dword [eax + 8], edi
call fcn.1003223b
mov ecx, dword [ebp - 0x224]
mov dword [eax + 0xc], ecx
push esi
mov ecx, ebx
call fcn.1010e06e
mov ecx, ebx
call fcn.1003223b
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push 4
push eax
call dword [ecx + 0xf0]
mov esi, eax
mov eax, dword [ebx + 0x114]
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x228], esi
call dword [ecx + 0x154]
fldz
fst dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
fstp dword [ebp - 0x230]
push ecx
fld1
mov dword [ebx + 0x120], eax
fstp dword [ebp - 0x22c]
push esi
mov eax, dword [esi]
call dword [eax + 0xf0]
fldz
fst dword [ebp - 0x250]
fld dword [0x1012af74]
fstp dword [ebp - 0x24c]
fstp dword [ebp - 0x248]
mov eax, dword [ebp - 0x228]
lea esi, [ebp - 0x250]
lea edi, [ebp - 0x234]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x234]
push edx
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe0]
mov eax, dword [ebp - 0x228]
fldz
lea esi, [ebp - 0x250]
fst dword [ebp - 0x250]
lea edi, [ebp - 0x234]
fst dword [ebp - 0x24c]
lea edx, [ebp - 0x234]
fstp dword [ebp - 0x248]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push edx
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xe8]
push 0x24
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x220], eax
xor esi, esi
mov byte [ebp - 4], 3
cmp eax, esi
je 0x1003b76f
push dword [ebx + 0x114]
mov ecx, dword [ebx + 4]
push ebx
push ecx
mov ecx, eax
call fcn.1010e06e
jmp 0x1003b771
xor eax, eax
push 0x78
mov byte [ebp - 4], 2
mov dword [ebx + 0x138], eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 4
cmp ecx, esi
je 0x1003b7a5
push dword [ebx + 0x114]
mov eax, dword [ebx + 4]
push ebx
push eax
call fcn.1010e06e
jmp 0x1003b7a7
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1010e06e
push 0x28
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 5
cmp ecx, esi
je 0x1003b7de
push dword [ebx + 0x114]
mov eax, dword [ebx + 4]
push ebx
push eax
call fcn.10042c72
jmp 0x1003b7e0
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1010e06e
push 0x40
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
cmp eax, esi
je 0x1003b817
push dword [ebx + 0x114]
mov ecx, dword [ebx + 4]
push ebx
push ecx
mov ecx, eax
call fcn.10051c6e
jmp 0x1003b819
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1010e06e
push 0x18
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, esi
je 0x1003b84d
mov ecx, dword [ebx + 4]
mov byte [eax + 4], 0
mov dword [eax + 8], ecx
mov dword [eax], vtable.V4CManipulatorToolHandler.0
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
jmp 0x1003b84f
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
call fcn.1010e06e
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.100062c0
mov eax, ebx
call fcn.1011354b
ret 0x28