Function at 0x4e0247
Capabilities:
Get common file path

Disassembly:
push 0x2e4
mov eax, 0x55df25
call fcn.00523c97
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 int.004922e6
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 0x4e02dc
lea eax, [ebp - 0x2f0]
push eax
call fcn.004036c8
mov esi, eax
push str.Cannot_initialize_COM:
push esi
mov byte [ebp - 4], 2
call fcn.00405d7d
pop ecx
pop ecx
push dword [ebp - 0x244]
push esi
call fcn.00410478
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 3
push 0x15
mov ecx, edi
lea eax, [ebp - 0x234]
call fcn.004025fb
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00517e90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4e0328
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x234]
call fcn.0040338f
mov byte [ebp - 4], 4
push 0x1b
jmp 0x4e02cf
push str.nvspcap.dll
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4e035a
push str.PathCombineW_failed
lea esi, [ebp - 0x234]
call fcn.0040338f
mov byte [ebp - 4], 5
push 0x1f
jmp 0x4e02cf
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x4e03b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.004036c8
mov esi, eax
push str.Cannot_load_ShadowPlay_DLL:
push esi
mov byte [ebp - 4], 6
call fcn.00405f31
pop ecx
pop ecx
push ebx
push esi
call fcn.0041056c
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 7
push 0x26
jmp 0x4e02cf
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 0x4e0419
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.004036c8
mov esi, eax
push str.GetProcAddress_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.00405f31
pop ecx
pop ecx
push ebx
push esi
call fcn.0041056c
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0xa
push 0x30
jmp 0x4e02cf
and dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x23c]
push ecx
push 8
call eax
mov ebx, eax
test ebx, ebx
jns 0x4e0470
lea eax, [ebp - 0x2f0]
push eax
call fcn.004036c8
mov esi, eax
push str.QueryShadowPlayInterface_failed_with
push esi
mov byte [ebp - 4], 0xb
call fcn.00405f31
pop ecx
pop ecx
push ebx
push esi
call fcn.00410478
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0xc
push 0x38
jmp 0x4e02cf
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.004e0588
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, 0x278
cdq
idiv ecx
mov dword [ebp - 0x24c], 1
imul eax, eax, 0x278
push eax
push 0
push dword [esi]
call fcn.00517e90
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x238]
push ecx
push eax
push 1
push 7
call dword [ebx + 0x44]
mov dword [ebp - 0x248], eax
test eax, eax
jns 0x4e0525
lea eax, [ebp - 0x2f0]
push eax
call fcn.004036c8
mov esi, eax
push str.GetStatInfo_failed_with
push esi
mov byte [ebp - 4], 0xe
call fcn.00405f31
pop ecx
pop ecx
push dword [ebp - 0x248]
push esi
call fcn.00410478
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 0xf
push 0x58
jmp 0x4e02cf
cmp dword [ebp - 0x238], 0
je 0x4e0547
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, 0x278
cdq
idiv ecx
cmp eax, dword [ebp - 0x238]
jae 0x4e0547
xor al, al
jmp 0x4e054a
xor eax, eax
inc eax
push 0x5a
push eax
call fcn.0049231b
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, esi
call fcn.004e0588
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.00523d1a
ret