Function at 0x1000ecfb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1006f110
call fcn.1006e43c
mov eax, dword [ebp + 8]
sub esp, 0x208
sub eax, 0x1001
push esi
je 0x1000ef38
dec eax
je 0x1000ef18
sub eax, 0xe
je 0x1000ef11
sub eax, 0x10
je 0x1000eef7
dec eax
je 0x1000eea2
dec eax
je 0x1000ee9b
sub eax, 0xefe0
jne 0x1000ee94
mov ecx, dword [ebp + 0xc]
mov edx, str.viewport_DX9
call fcn.1000ecab
test al, al
je 0x1000ee94
cmp dword [0x100b19a8], 0
jne 0x1000edd6
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x1000edbc
push str.D3D9.dll
lea eax, [ebp - 0x110]
push eax
push 0x10070da0
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x14
test eax, eax
jle 0x1000edbc
lea eax, [ebp - 0x214]
push eax
call fcn.10007a8a
mov dword [0x100b19a8], eax
mov eax, dword [0x100b19a8]
test eax, eax
je 0x1000edd6
push 0x10070954
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100b19a4], eax
cmp dword [0x100b19a4], 0
je 0x1000ee05
push 0x2654
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x1000ee94
call fcn.100042af
jmp 0x1000ef78
call dword [sym.imp.kernel32.dll_GetTickCount]
mov esi, eax
mov eax, dword [0x10169c20]
test eax, eax
je 0x1000ee1f
mov ecx, esi
sub ecx, eax
cmp ecx, 0x64
jbe 0x1000ee94
mov eax, dword [0x1016c090]
mov ecx, dword [eax]
push 0x21
push dword [0x10169c1c]
push eax
call dword [ecx + 0xc]
mov ecx, dword [0x1016c090]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1d4]
mov eax, dword [0x1016c090]
pop ecx
pop ecx
mov ecx, dword [eax]
push 0x22
push dword [0x10169c1c]
push eax
call dword [ecx + 0xc]
mov ecx, dword [0x1016c090]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1d4]
mov eax, dword [0x1016c090]
pop ecx
pop ecx
mov ecx, dword [eax]
push 0x23
push dword [0x10169c1c]
push eax
call dword [ecx + 0xc]
mov ecx, dword [0x1016c090]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1d4]
pop ecx
pop ecx
mov dword [0x10169c20], esi
xor eax, eax
jmp 0x1000ef78
push str._c__Microsoft._All_rights_reserved
jmp 0x1000eee4
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000eed0
lea eax, [esi - 1]
push eax
mov eax, dword [0x1016c090]
mov ecx, dword [eax]
push 1
push dword [0x10169c1c]
push eax
call dword [ecx + 0xc]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
jmp 0x1000eeef
mov eax, dword [0x1016c090]
mov ecx, dword [eax]
push 1
push dword [0x10169c1c]
push eax
call dword [ecx + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR100.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x1000ef78
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1000ef0a
lea ecx, [eax - 1]
push ecx
push str.9.0.0
push eax
jmp 0x1000eec2
push str.9.0.0
jmp 0x1000eee4
mov eax, 0x91
jmp 0x1000ef78
mov eax, dword [0x100b19a8]
test eax, eax
je 0x1000ee94
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [0x100b19a8], 0
jmp 0x1000ee94
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ecx
mov dword [0x1016c090], eax
mov dword [0x1016c080], ecx
mov edx, dword [eax]
push eax
call dword [edx + 8]
push str.DirectX_9.0
push 0x110
push str.viewport_DX9
push dword [0x1016c080]
mov dword [0x10169c1c], eax
mov eax, dword [0x1016c090]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
push 5
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x10