Function at 0x100382b6
Capabilities:
Get common file path

Disassembly:
push 0x24c
mov eax, 0x1014c590
call fcn.10147e2c
mov ebx, ecx
mov dword [ebp - 0x220], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x22c], ecx
mov ecx, ebx
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], edi
call fcn.1007acd9
and dword [ebp - 4], 0
lea eax, [ebx + 8]
push 0x80
push 0
push eax
mov dword [ebx], vtable.V4CRHRenderContext.0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebx + 0xb0]
call fcn.10038a17
xor eax, eax
mov dword [ebx + 0xfc], eax
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], eax
lea ecx, [ebx + 0x138]
mov byte [ebp - 4], 1
call fcn.100184bc
lea ecx, [ebx + 0x348]
call fcn.10038a49
xor eax, eax
mov dword [ebp - 0x254], 8
mov byte [ebx + 0x333], al
mov byte [ebx + 0x3c8], al
mov dword [ebx + 0xf8], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x250], 0x4000
call fcn.1004a97c
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x10038473
push str.D3D8.dll
lea eax, [ebp - 0x218]
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.1007acd9
add esp, 0x14
test eax, eax
jle 0x100383fa
xor al, al
mov byte [ebp - 0x219], al
lea eax, [ebp - 0x114]
push eax
call fcn.1004aa44
mov ecx, eax
test ecx, ecx
je 0x100383f2
push ecx
mov byte [ebp - 0x219], 1
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov al, byte [ebp - 0x219]
jmp 0x100383fc
xor al, al
mov byte [ebx + 0x331], al
lea eax, [ebp - 0x218]
push str.D3D9.dll
push eax
push str._s_s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.1007acd9
add esp, 0x14
test eax, eax
jle 0x1003845b
xor al, al
mov byte [ebp - 0x219], al
lea eax, [ebp - 0x114]
push eax
call fcn.1004aa44
mov ecx, eax
test ecx, ecx
je 0x10038453
push ecx
mov byte [ebp - 0x219], 1
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov al, byte [ebp - 0x219]
jmp 0x1003845d
xor al, al
mov byte [ebx + 0x332], al
test al, al
je 0x1003847c
push 0xff
push str.viewport_DX9
jmp 0x10038496
mov word [ebx + 0x331], 0
cmp byte [ebx + 0x331], 0
push 0xff
je 0x10038491
push str.viewport_DX8
jmp 0x10038496
push str.Dimension_X__Z_Buffer_
lea eax, [ebx + 0x231]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [ebx + 0x330], 0
add esp, 0xc
mov eax, dword [ebx + 0xf8]
mov byte [ebx + 0x230], 1
mov byte [ebx + 0x3c0], 1
test eax, eax
jne 0x100384cb
lea eax, [ebx + 0xb0]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x100384e0
lea eax, [ebx + 0xb0]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x100384f6
lea eax, [ebx + 0xb0]
mov dword [eax + 8], esi
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x10038509
lea eax, [ebx + 0xb0]
mov dword [eax + 0xc], edi
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x1003851c
lea eax, [ebx + 0xb0]
mov dword [eax + 0x10], esi
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x1003852f
lea eax, [ebx + 0xb0]
mov dword [eax + 0x14], edi
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x10038542
lea eax, [ebx + 0xb0]
movsd xmm0, qword [ebp + 0x20]
movsd qword [eax + 0x28], xmm0
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x1003855c
lea eax, [ebx + 0xb0]
movsd xmm0, qword [ebp + 0x28]
movsd qword [eax + 0x30], xmm0
xor eax, eax
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x134], eax
mov dword [ebx + 0x218], eax
mov dword [ebx + 0x228], eax
mov byte [ebx + 0x3c1], al
mov dword [ebx + 0x3c4], eax
mov eax, dword [ebx + 0xf8]
mov dword [ebx + 0x210], 1
mov dword [ebx + 0x214], 0xf
mov byte [ebx + 0x128], 1
test eax, eax
jne 0x100385b7
lea eax, [ebx + 0xb0]
mov ecx, dword [ebp - 0x22c]
lea esi, [ebp - 0x244]
mov dword [eax + 0x40], ecx
xorps xmm0, xmm0
xor eax, eax
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x12c], eax
mov byte [ebx + 0x1f0], al
lea eax, [ebx + 0x1f1]
push 6
pop ecx
push dword [ebp - 0x224]
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]
push dword [ebp - 0x228]
push edx
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
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 dword [ebx + 0x114], ecx
mov dword [ebx + 0x110], ecx
mov dword [ebx + 0x130], ecx
mov dword [ebx + 0x120], ecx
mov dword [ebx + 0x22c], ecx
mov dword [ebx + 0x224], ecx
mov dword [ebx + 0x108], ecx
mov dword [ebx + 0x10c], ecx
mov word [ebx + 0x334], cx
mov dword [ebx + 0x338], ecx
mov dword [ebx + 0x33c], ecx
mov dword [ebx + 0x340], ecx
mov dword [ebx + 0x3b8], ecx
mov dword [ebx + 0x3bc], ecx
mov ecx, ebx
mov dword [ebx + 0x20c], 0x48
mov dword [ebx + 0x21c], eax
mov dword [ebx + 0x220], eax
mov dword [ebx + 0x344], eax
mov dword [ebx + 0x348], eax
movups xmmword [ebx + 0x3a0], xmm0
movsd qword [ebx + 0x3b0], xmm0
call fcn.1007acd9
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x100386ce
lea eax, [ebx + 0xb0]
cmp dword [eax + 0x3c], 0
je 0x10038a0d
lea ecx, [ebp - 0x24c]
call fcn.100083bd
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.100404d5
lea ecx, [ebp - 0x24c]
call fcn.1000879b
push eax
call fcn.1007acd9
mov dword [ebx + 0x114], eax
pop ecx
test eax, eax
je 0x10038a02
mov ecx, dword [eax]
push 0
push 0
push eax
mov esi, dword [ecx + 0x234]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov dword [ebx + 0x118], eax
mov ecx, dword [0x107d4510]
push 3
call fcn.1007acd9
mov edi, dword [ebx + 0xf8]
mov dword [ebx + 0x110], eax
test edi, edi
jne 0x10038755
lea edi, [ebx + 0xb0]
mov esi, dword [eax]
push 0
push dword [ebp - 0x224]
push dword [ebp - 0x228]
mov esi, dword [esi + 0x314]
mov ecx, esi
push 0
push eax
call dword [0x10155aa8]
call esi
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x1003878b
lea eax, [ebx + 0xb0]
mov eax, dword [eax + 0x38]
mov ecx, 0xc09
mov edi, dword [ebp - 0x228]
push 1
push dword [ebp - 0x224]
and dword [eax + 0x60], 0
mov eax, dword [ebx + 0x110]
push edi
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 [0x10155aa8]
call esi
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x100387e8
lea eax, [ebx + 0xb0]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x100387fb
lea eax, [ebx + 0xb0]
mov ecx, dword [ebp - 0x224]
mov dword [eax + 0xc], ecx
mov ecx, ebx
push 0
call fcn.1007acd9
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x1003881d
lea eax, [ebx + 0xb0]
mov eax, dword [eax + 0x38]
push 4
mov eax, dword [eax + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xf0]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [ebx + 0x110]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x154]
mov ecx, esi
call dword [0x10155aa8]
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 [0x10155aa8]
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 [0x10155aa8]
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 [0x10155aa8]
call esi
push 0x20
call fcn.1007acd9
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x10038915
push dword [ebx + 0x110]
mov ecx, eax
push ebx
push dword [ebx + 4]
call fcn.1007acd9
jmp 0x10038917
xor eax, eax
push 0x74
mov byte [ebp - 4], 2
mov dword [ebx + 0x134], eax
call fcn.1007acd9
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1003894a
push dword [ebx + 0x110]
mov ecx, eax
push ebx
push dword [ebx + 4]
call fcn.1007acd9
jmp 0x1003894c
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1007acd9
push 0x28
call fcn.1007acd9
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x10038982
push dword [ebx + 0x110]
mov ecx, eax
push ebx
push dword [ebx + 4]
call fcn.100565a5
jmp 0x10038984
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1007acd9
push 0x40
call fcn.1007acd9
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x100389ba
push dword [ebx + 0x110]
mov ecx, eax
push ebx
push dword [ebx + 4]
call fcn.100688a7
jmp 0x100389bc
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
mov byte [ebp - 4], 2
call fcn.1007acd9
push 0x18
call fcn.1007acd9
mov dword [ebp - 0x220], eax
pop ecx
test eax, eax
je 0x100389f7
mov ecx, dword [ebx + 4]
xor edx, edx
mov byte [eax + 4], dl
mov dword [eax + 8], ecx
mov dword [eax], vtable.V4CManipulatorToolHandler.0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
jmp 0x100389f9
xor eax, eax
mov ecx, dword [ebx + 4]
push eax
call fcn.1007acd9
lea ecx, [ebp - 0x24c]
call fcn.1007acd9
mov eax, ebx
call fcn.10147dd6
ret 0x28