Function at 0x4a8141
Capabilities:
Get common file path

Disassembly:
push 0x2e4
mov eax, 0x58786d
call fcn.0054f23c
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.004639a2
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 0x4a81d6
lea eax, [ebp - 0x2f0]
push eax
call fcn.004044d0
mov esi, eax
push str.Cannot_initialize_COM:
push esi
mov byte [ebp - 4], 2
call fcn.0040511f
pop ecx
pop ecx
push dword [ebp - 0x244]
push esi
call fcn.0041f394
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 3
push 0x15
mov ecx, edi
lea eax, [ebp - 0x234]
call fcn.00402bb1
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00543fe0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4a8222
push str.GetSystemDirectory_failed
lea esi, [ebp - 0x234]
call fcn.004041a9
mov byte [ebp - 4], 4
push 0x1b
jmp 0x4a81c9
push str.nvspcap.dll
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x4a8254
push str.PathCombineW_failed
lea esi, [ebp - 0x234]
call fcn.004041a9
mov byte [ebp - 4], 5
push 0x1f
jmp 0x4a81c9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x4a82b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.004044d0
mov esi, eax
push str.Cannot_load_ShadowPlay_DLL:
push esi
mov byte [ebp - 4], 6
call fcn.004052d3
pop ecx
pop ecx
push ebx
push esi
call fcn.00409937
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 7
push 0x26
jmp 0x4a81c9
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 0x4a8313
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea eax, [ebp - 0x2f0]
push eax
call fcn.004044d0
mov esi, eax
push str.GetProcAddress_failed_with
push esi
mov byte [ebp - 4], 9
call fcn.004052d3
pop ecx
pop ecx
push ebx
push esi
call fcn.00409937
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 0xa
push 0x30
jmp 0x4a81c9
and dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x23c]
push ecx
push 8
call eax
mov ebx, eax
test ebx, ebx
jns 0x4a836a
lea eax, [ebp - 0x2f0]
push eax
call fcn.004044d0
mov esi, eax
push str.QueryShadowPlayInterface_failed_with
push esi
mov byte [ebp - 4], 0xb
call fcn.004052d3
pop ecx
pop ecx
push ebx
push esi
call fcn.0041f394
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 0xc
push 0x38
jmp 0x4a81c9
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.004a847e
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.00543fe0
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 0x4a841f
lea eax, [ebp - 0x2f0]
push eax
call fcn.004044d0
mov esi, eax
push str.GetStatInfo_failed_with
push esi
mov byte [ebp - 4], 0xe
call fcn.004052d3
pop ecx
pop ecx
push dword [ebp - 0x248]
push esi
call fcn.0041f394
lea eax, [ebp - 0x234]
push eax
mov eax, esi
call fcn.0040453a
mov byte [ebp - 4], 0xf
push 0x58
jmp 0x4a81c9
cmp dword [ebp - 0x238], 0
je 0x4a8441
mov eax, dword [esi + 4]
sub eax, dword [esi]
mov ecx, 0x234
cdq
idiv ecx
cmp eax, dword [ebp - 0x238]
jae 0x4a8441
xor al, al
jmp 0x4a8444
xor eax, eax
inc eax
push 0x5a
push eax
call fcn.004639d7
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, esi
call fcn.004a847e
push 0xffffffffffffffff
mov byte [ebp - 4], 8
call dword [ebx + 0x4c]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
call fcn.0054f2bf
ret