Function at 0x1003852d
Capabilities:
Get common file path

Disassembly:
push 0x258
mov eax, 0x10147d9d
call fcn.1014377c
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 - 0x238], 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 - 0x264], esi
call fcn.1013d095
lea edi, [esi + 0xb0]
mov dword [esi], vtable.V4CRHRenderContext.0
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10038c6f
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.1001843c
lea ecx, [esi + 0x348]
call fcn.10038ca1
lea eax, [ebp - 0x248]
mov byte [esi + 0x333], bl
push eax
mov byte [esi + 0x3c8], bl
mov dword [esi + 0xf8], ebx
mov dword [ebp - 0x248], 8
mov dword [ebp - 0x244], 0x4000
call fcn.1004acb4
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x1003869e
push str.D3D8.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.1013d095
add esp, 0x14
test eax, eax
jle 0x1003864c
lea eax, [ebp - 0x114]
push eax
call fcn.1004ad7c
test eax, eax
je 0x1003864c
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 fcn.1013d095
add esp, 0x14
xor bl, bl
test eax, eax
jle 0x10038696
lea eax, [ebp - 0x114]
push eax
call fcn.1004ad7c
test eax, eax
je 0x10038696
push eax
inc bl
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov byte [esi + 0x332], bl
jmp 0x100386a5
mov word [esi + 0x331], bx
lea eax, [esi + 0x231]
push 0xff
test bl, bl
je 0x100386bb
push str.viewport_DX9
jmp 0x100386d0
cmp byte [esi + 0x331], 0
je 0x100386cb
push str.viewport_DX8
jmp 0x100386d0
push str.Dimension_X__Z_Buffer_
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
test eax, eax
mov ebx, dword [ebp + 0x10]
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 - 0x238]
mov byte [esi + 0x128], 1
mov dword [ecx + 0x40], eax
xor eax, eax
and dword [ebp - 0x22c], 0
mov dword [esi + 0x124], eax
mov dword [esi + 0x12c], eax
mov byte [esi + 0x1f0], al
lea eax, [esi + 0x1f1]
pop ecx
lea esi, [ebp - 0x260]
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 - 0x234]
movsd dword es:[edi], dword [esi]
xor ecx, ecx
push dword [ebp - 0x220]
xorps xmm0, xmm0
push dword [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
push edx
push ebx
push dword [ebp - 0x238]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [ebp - 0x234]
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 fcn.1013d095
mov eax, dword [edi + 0xf8]
lea ebx, [edi + 0xb0]
test eax, eax
mov ecx, ebx
cmovne ecx, eax
cmp dword [ecx + 0x3c], 0
je 0x10038c65
lea ecx, [ebp - 0x240]
call fcn.1000840d
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.100407e5
lea ecx, [ebp - 0x240]
call fcn.10008855
push eax
call fcn.1013d095
mov dword [edi + 0x114], eax
pop ecx
test eax, eax
je 0x10038c5a
mov ecx, dword [eax]
push 0
push 0
push eax
mov esi, dword [ecx + 0x234]
mov ecx, esi
call dword [0x10151b24]
call esi
mov dword [edi + 0x118], eax
mov ecx, dword [0x107d1580]
push 3
call fcn.1013d095
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 [0x10151b24]
call esi
mov dword [edi + 0x38], eax
mov ecx, ebx
mov edi, dword [ebp - 0x228]
push 1
push dword [ebp - 0x220]
mov eax, dword [edi + 0xf8]
test eax, eax
push dword [ebp - 0x21c]
cmovne ecx, eax
mov eax, dword [ecx + 0x38]
mov ecx, 0xc09
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]
mov esi, dword [eax]
push dword [eax + 0x10c]
push eax
mov esi, dword [esi + 0x2b8]
mov ecx, esi
call dword [0x10151b24]
call esi
mov eax, dword [edi + 0xf8]
mov ecx, ebx
test eax, eax
push 0
cmovne ecx, eax
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
mov ecx, ebx
mov eax, dword [edi + 0xf8]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ecx + 0xc], eax
mov ecx, edi
call fcn.1013d095
mov eax, dword [edi + 0xf8]
test eax, eax
push 4
cmovne ebx, eax
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xf0]
mov ecx, esi
call dword [0x10151b24]
call esi
mov ecx, dword [edi + 0x110]
mov ebx, eax
mov edx, dword [ecx]
mov esi, dword [edx + 0x154]
push ecx
mov ecx, esi
call dword [0x10151b24]
call esi
and dword [ebp - 0x234], 0
lea ecx, [ebp - 0x234]
and dword [ebp - 0x230], 0
mov dword [edi + 0x11c], eax
mov dword [ebp - 0x22c], 0x3f800000
mov eax, dword [ebx]
push ecx
push ebx
mov esi, dword [eax + 0xf0]
mov ecx, esi
call dword [0x10151b24]
call esi
and dword [ebp - 0x254], 0
lea esi, [ebp - 0x254]
and dword [ebp - 0x24c], 0
lea edi, [ebp - 0x234]
mov dword [ebp - 0x250], 0xc1200000
lea ecx, [ebp - 0x234]
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]
mov esi, dword [eax + 0xe0]
mov ecx, esi
call dword [0x10151b24]
call esi
and dword [ebp - 0x254], 0
lea esi, [ebp - 0x254]
and dword [ebp - 0x250], 0
lea edi, [ebp - 0x234]
and dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x234]
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]
mov esi, dword [eax + 0xe8]
mov ecx, esi
call dword [0x10151b24]
call esi
push 0x20
call fcn.1013d095
pop ecx
mov dword [ebp - 0x224], eax
mov edi, dword [ebp - 0x228]
mov byte [ebp - 4], 3
test eax, eax
je 0x10038b6b
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.1013d095
jmp 0x10038b6d
xor eax, eax
push 0x74
mov byte [ebp - 4], 2
mov dword [edi + 0x134], eax
call fcn.1013d095
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x10038ba0
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.1013d095
jmp 0x10038ba2
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1013d095
push 0x28
call fcn.1013d095
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x10038bd8
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.10052933
jmp 0x10038bda
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1013d095
push 0x40
call fcn.1013d095
pop ecx
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10038c10
push dword [edi + 0x110]
mov ecx, eax
push edi
push dword [edi + 4]
call fcn.100650f7
jmp 0x10038c12
xor eax, eax
mov ecx, dword [edi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1013d095
push 0x18
call fcn.1013d095
mov dword [ebp - 0x224], eax
pop ecx
test eax, eax
je 0x10038c4f
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 0x10038c51
xor eax, eax
mov ecx, dword [edi + 4]
push eax
call fcn.1013d095
lea ecx, [ebp - 0x240]
call fcn.1013d095
mov eax, edi
call fcn.10143726
ret 0x28