Function at 0x1005fe50
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10077a7f
call fcn.10076250
mov eax, dword [ebp + 8]
sub esp, 0x20c
push esi
push edi
sub eax, 0x1001
je 0x100600ea
sub eax, 1
je 0x100600ca
sub eax, 0xe
je 0x100600c3
sub eax, 0x10
je 0x1006008f
sub eax, 1
je 0x10060043
sub eax, 1
je 0x1006003c
sub eax, 0xefe0
jne 0x10060035
mov ecx, dword [ebp + 0xc]
mov edx, str.viewport_DX9
call fcn.10060168
test al, al
je 0x10060035
cmp dword [0x100bbad0], 0
jne 0x1005ff35
mov esi, 0x104
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x102
ja 0x1005ff19
push str.D3D9.dll
lea eax, [ebp - 0x114]
push eax
push 0x1007a024
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.1003d012
add esp, 0x14
test eax, eax
jle 0x1005ff19
lea eax, [ebp - 0x218]
push eax
call fcn.1005b6cd
mov dword [0x100bbad0], eax
jmp 0x1005ff1e
mov eax, dword [0x100bbad0]
test eax, eax
je 0x1005ff35
push str.Direct3DCreate9
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100bbacc], eax
jmp 0x1005ff3a
mov eax, dword [0x100bbacc]
test eax, eax
je 0x1005ff65
push 0x2654
call fcn.1003d012
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x1006013d
call fcn.1004f011
jmp 0x1006013d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, dword [0x10173d14]
mov edi, eax
test edx, edx
je 0x1005ff84
mov ecx, edi
sub ecx, edx
cmp ecx, 0x64
jbe 0x10060035
mov eax, dword [0x10176170]
push 0x21
push dword [0x10173d10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x100783d8]
call esi
mov ecx, dword [0x10176170]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x1d4]
mov ecx, esi
call dword [0x100783d8]
call esi
mov eax, dword [0x10176170]
pop ecx
pop ecx
push 0x22
mov ecx, dword [eax]
push dword [0x10173d10]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x100783d8]
call esi
mov ecx, dword [0x10176170]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x1d4]
mov ecx, esi
call dword [0x100783d8]
call esi
mov eax, dword [0x10176170]
pop ecx
pop ecx
push 0x23
mov ecx, dword [eax]
push dword [0x10173d10]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x100783d8]
call esi
mov ecx, dword [0x10176170]
push eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 0x1d4]
mov ecx, esi
call dword [0x100783d8]
call esi
pop ecx
pop ecx
mov dword [0x10173d14], edi
xor eax, eax
jmp 0x1006013d
push str._c__Microsoft._All_rights_reserved
jmp 0x100600b3
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1006006f
lea eax, [edi - 1]
push eax
mov eax, dword [0x10176170]
push 1
push dword [0x10173d10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x100783d8]
call esi
push eax
push edi
jmp 0x100600a0
mov eax, dword [0x10176170]
push 1
push dword [0x10173d10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x100783d8]
call esi
push eax
jmp 0x100600b3
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100600ae
lea eax, [ecx - 1]
push eax
push str.9.0.0
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
jmp 0x100600be
push str.9.0.0
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x1006013d
mov eax, 0x91
jmp 0x1006013d
mov eax, dword [0x100bbad0]
test eax, eax
je 0x10060035
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [0x100bbad0], 0
jmp 0x10060035
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [0x10176170], edx
mov dword [0x10176174], eax
mov ecx, dword [edx]
push eax
push edx
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100783d8]
call esi
mov dword [0x10173d10], eax
mov eax, dword [0x10176170]
push str.DirectX_9.0
push 0x110
push str.viewport_DX9
mov esi, dword [eax]
push dword [0x10176174]
push eax
mov ecx, dword [esi + 0x38]
call dword [0x100783d8]
call dword [esi + 0x38]
push 5
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10