Function at 0x4e013e
Capabilities:
Get common file path

Disassembly:
push 0x2e4
mov eax, 0x55dbf3
call fcn.005239fe
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.0049247f
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 0x4e01d3
lea eax, [ebp - 0x2f0]
push eax
call fcn.00403689
mov esi, eax
push str.Cannot_initialize_COM:
push esi
mov byte [ebp - 4], 2
call fcn.00405d65
pop ecx
pop ecx
push dword [ebp - 0x244]
push esi
call fcn.00410496
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 3
push 0x15
mov ecx, edi
lea eax, [ebp - 0x234]
call fcn.004025bc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00517bf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4e021f
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x234]
call fcn.00403350
mov byte [ebp - 4], 4
push 0x1b
jmp 0x4e01c6
push str.nvspcap.dll
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4e0251
push str.PathCombineW_failed
lea esi, [ebp - 0x234]
call fcn.00403350
mov byte [ebp - 4], 5
push 0x1f
jmp 0x4e01c6
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x4e02af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00403689
mov esi, eax
push str.Cannot_load_ShadowPlay_DLL:
push esi
mov byte [ebp - 4], 6
call fcn.00405f19
pop ecx
pop ecx
push ebx
push esi
call fcn.0041058a
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 7
push 0x26
jmp 0x4e01c6
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 0x4e0310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.00403689
mov esi, eax
push str.GetProcAddress_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.00405f19
pop ecx
pop ecx
push ebx
push esi
call fcn.0041058a
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 0xa
push 0x30
jmp 0x4e01c6
and dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x23c]
push ecx
push 8
call eax
mov ebx, eax
test ebx, ebx
jns 0x4e0367
lea eax, [ebp - 0x2f0]
push eax
call fcn.00403689
mov esi, eax
push str.QueryShadowPlayInterface_failed_with
push esi
mov byte [ebp - 4], 0xb
call fcn.00405f19
pop ecx
pop ecx
push ebx
push esi
call fcn.00410496
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 0xc
push 0x38
jmp 0x4e01c6
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.004e047f
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.00517bf0
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 0x4e041c
lea eax, [ebp - 0x2f0]
push eax
call fcn.00403689
mov esi, eax
push str.GetStatInfo_failed_with
push esi
mov byte [ebp - 4], 0xe
call fcn.00405f19
pop ecx
pop ecx
push dword [ebp - 0x248]
push esi
call fcn.00410496
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 0xf
push 0x58
jmp 0x4e01c6
cmp dword [ebp - 0x238], 0
je 0x4e043e
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, 0x278
cdq
idiv ecx
cmp eax, dword [ebp - 0x238]
jae 0x4e043e
xor al, al
jmp 0x4e0441
xor eax, eax
inc eax
push 0x5a
push eax
call fcn.004924b4
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, esi
call fcn.004e047f
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.00523a81
ret