Function at 0x10040b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d50b
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x100cb080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100022b1
add esp, 0xc
mov dword [ebp - 0x338], 0
lea eax, [ebp - 0x338]
push eax
push 0
push 0
push 0x100b66e4
call sub.SHELL32.dll_SHGetKnownFolderPath
mov edi, eax
test edi, edi
jns 0x10040b97
cmp dword [0x100c8418], 7
mov dword [0x100c82e8], 7
jg 0x10040b90
push edi
push str.NvRtmpStreamerSink::Initialize:_SHGetKnownFolderPath_failed.HRESULT__0x_08X
push 0x100c82e0
call fcn.10001a0f
add esp, 0xc
mov eax, edi
jmp 0x10040d9d
push str.NvRtmpStreamer32.dll
push str.NVIDIA_CorporationShadowPlay
push dword [ebp - 0x338]
lea eax, [ebp - 0x218]
push str._s_s_s
push 0xffffffffffffffff
push 0x104
push eax
call fcn.1000453e
add esp, 0x1c
push dword [ebp - 0x338]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x338], 0
push 0
push eax
call fcn.10001604
add esp, 8
mov dword [esi + 0x56c], eax
test eax, eax
jne 0x10040c3d
cmp dword [0x100c8418], 7
mov dword [0x100c82e8], 7
jg 0x10040c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
lea eax, [ebp - 0x218]
mov ecx, 0x100c82e0
push eax
call fcn.10004de5
push eax
push str.NvRtmpStreamerSink::Initialize_:Could_not_Load_NvRtmpStreamer.dll_from_path:____s_status0x_x
push 0x100c82e0
call fcn.10001a0f
add esp, 0x10
mov eax, 0x80004005
jmp 0x10040d9d
push str.NvCreateRTMP
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x570], eax
test eax, eax
jne 0x10040c9f
cmp dword [0x100c8418], 7
mov dword [0x100c82e8], 7
jg 0x10040c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NvRtmpStreamerSink::Initialize_:_NvCreateRTMP_GetProcAddressFailed__status0x_x
push 0x100c82e0
call fcn.10001a0f
add esp, 0xc
push dword [esi + 0x56c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x56c], 0
mov eax, 0x80004005
jmp 0x10040d9d
push 0x18
push str.NvRtmpStreamerSink_begin
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10002185
push 0x104
lea eax, [ebp - 0x334]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.100022b1
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x334]
push eax
call fcn.1000226b
lea eax, [ebp - 0x334]
push eax
mov eax, dword [esi + 0x570]
call eax
add esp, 0x1c
test eax, eax
je 0x10040d57
cmp dword [0x100c8418], 7
mov dword [0x100c82e8], 7
jg 0x10040d67
push dword [ebp - 0x234]
lea eax, [ebp - 0x334]
push eax
push str.NvRtmpStreamerSink::Initialize:_message_____s_rtmp0x_x
push 0x100c82e0
call fcn.10001a0f
add esp, 0x10
jmp 0x10040d67
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x574], eax
test eax, eax
jne 0x10040d84
push dword [esi + 0x56c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x56c], 0
mov esi, 0x80004005
jmp 0x10040d90
mov dword [esi + 0x584], 0
xor esi, esi
lea ecx, [ebp - 0x230]
call fcn.10003b02
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100041bf
mov esp, ebp
pop ebp
ret