Function at 0x4bfebf
Capabilities:
Get common file path

Disassembly:
push 0x2e4
mov eax, 0x5a562f
call fcn.0056ce95
and dword [ebp - 4], 0
and dword [ebp - 0x24c], 0
xor ebx, ebx
mov esi, ecx
push 0xe
inc ebx
push ebx
mov edi, str.srcShadowPlaySupport.cpp
mov dword [ebp - 0x254], esi
call fcn.0047a44a
pop ecx
pop ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x244], eax
mov dword [ebp - 4], ebx
test eax, eax
jns 0x4bff54
lea eax, [ebp - 0x2f0]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_initialize_COM:
push esi
mov byte [ebp - 4], 2
call fcn.0040fa1f
pop ecx
pop ecx
push dword [ebp - 0x244]
push esi
call fcn.0040d526
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 3
push 0x15
mov ecx, edi
lea eax, [ebp - 0x234]
call fcn.00401f44
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00560d40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4bffa0
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x234]
call fcn.00409096
mov byte [ebp - 4], 4
push 0x1b
jmp 0x4bff47
push str.nvspcap.dll
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4bffd2
push str.PathCombineW_failed
lea esi, [ebp - 0x234]
call fcn.00409096
mov byte [ebp - 4], 5
push 0x1f
jmp 0x4bff47
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x4c0030
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00409ac6
mov esi, eax
push str.Cannot_load_ShadowPlay_DLL:
push esi
mov byte [ebp - 4], 6
call fcn.0040fd5c
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d432
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 7
push 0x26
jmp 0x4bff47
mov dword [ebp - 0x258], eax
push str.QueryShadowPlayInterface
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4c0091
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00409ac6
mov esi, eax
push str.GetProcAddress_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.0040fd5c
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d432
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0xa
push 0x30
jmp 0x4bff47
and dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x23c]
push ecx
push 8
call eax
mov ebx, eax
test ebx, ebx
jns 0x4c00e8
lea eax, [ebp - 0x2f0]
push eax
call fcn.00409ac6
mov esi, eax
push str.QueryShadowPlayInterface_failed_with
push esi
mov byte [ebp - 4], 0xb
call fcn.0040fd5c
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d526
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0xc
push 0x38
jmp 0x4bff47
mov ebx, dword [ebp - 0x23c]
mov dword [ebp - 0x250], ebx
xor ecx, ecx
mov byte [ebp - 4], 0xd
mov eax, 0x1f4
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov ecx, esi
mov dword [ebp - 0x238], eax
call fcn.004c0200
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, 0x234
cdq
idiv ecx
mov dword [ebp - 0x24c], 1
imul eax, eax, 0x234
push eax
push 0
push dword [esi]
call fcn.00560d40
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
push eax
push 1
push 2
call dword [ebx + 0x44]
mov dword [ebp - 0x248], eax
test eax, eax
jns 0x4c019d
lea eax, [ebp - 0x2f0]
push eax
call fcn.00409ac6
mov esi, eax
push str.GetStatInfo_failed_with
push esi
mov byte [ebp - 4], 0xe
call fcn.0040fd5c
pop ecx
pop ecx
push dword [ebp - 0x248]
push esi
call fcn.0040d526
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 0xf
push 0x58
jmp 0x4bff47
cmp dword [ebp - 0x238], 0
je 0x4c01bf
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, 0x234
cdq
idiv ecx
cmp eax, dword [ebp - 0x238]
jae 0x4c01bf
xor al, al
jmp 0x4c01c2
xor eax, eax
inc eax
push 0x5a
push eax
call fcn.0047a47f
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, esi
call fcn.004c0200
push 0xffffffffffffffff
mov byte [ebp - 4], 8
call dword [ebx + 0x4c]
push dword [ebp - 0x240]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
call fcn.0056cf18
ret