Function at 0x40bf00
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1050
call fcn.0042cfe0
mov eax, dword [0x453b8c]
xor eax, esp
mov dword [esp + 0x104c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1060]
push esi
mov esi, dword [esp + 0x1060]
push edi
push 2
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, 0x3e8
push edi
push esi
mov dword [0x4555c8], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp ebp, ebx
mov dword [0x4555cc], eax
jne 0x40bfb4
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push str.AMCapIcon
push esi
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], 6
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 0x100b
mov dword [esp + 0x1c], fcn.0040acb0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40bfb4
xor eax, eax
jmp 0x40c32e
push 0xc
call dword [sym.imp.GDI32.dll_GetStockObject]
push ebx
mov dword [0x4555d0], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x4555d0]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x4555d4
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
push esi
push ebx
push ebx
push 0x12c
push 0x140
push ebx
push SysReAllocStringLen
push 0x2cf0000
push 0x4521a4
push 0x3e8
push ebx
call edi
push ebp
push esi
mov dword [0x455610], eax
call fcn.00410d30
mov edx, dword [0x455610]
add esp, 8
push ebx
push esi
push ebx
push edx
push ebx
push ebx
push ebx
push ebx
push 0x54800000
push ebx
push str.StatusClass
push ebx
call edi
cmp eax, ebx
mov dword [0x455614], eax
je 0x40bfad
mov eax, dword [esp + 0x106c]
mov ecx, dword [0x455610]
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0x104
push 0x454f80
push 0x442c10
push str.CaptureFile
push 0x442bec
call esi
xor eax, eax
push 0x400
lea edx, [esp + 0x860]
push edx
push 0x442c10
push str.VideoDevice2
push 0x442bec
mov dword [0x45542c], eax
mov dword [0x455430], eax
mov dword [0x455434], eax
mov dword [0x455438], eax
mov dword [0x45543c], eax
mov dword [0x455440], eax
mov dword [0x455444], eax
mov dword [0x455448], eax
mov dword [0x45544c], eax
mov dword [0x455450], eax
mov dword [0x455404], eax
mov dword [0x455408], eax
mov dword [0x45540c], eax
mov dword [0x455410], eax
mov dword [0x455414], eax
mov dword [0x455418], eax
mov dword [0x45541c], eax
mov dword [0x455420], eax
mov dword [0x455424], eax
mov dword [0x455428], eax
mov dword [0x455454], ebx
mov dword [0x455458], ebx
mov dword [0x4553ec], ebx
mov word [esp + 0x870], bx
mov word [esp + 0x70], bx
call esi
push 0x400
lea eax, [esp + 0x60]
push eax
push 0x442c10
push str.AudioDevice2
push 0x442bec
call esi
mov byte [0x455400], bl
call fcn.00405960
mov ecx, dword [0x455610]
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
push 0x27
push 0x455188
push ecx
mov dword [0x4555c0], ebx
call esi
test eax, eax
jne 0x40c183
mov edx, dword [0x455610]
push 1
push 0x10
push 0x455188
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProfileIntW]
push 1
push str.CaptureAudio
push 0x442bec
call esi
push ebx
push str.CaptureCC
push 0x442bec
mov dword [0x4553f0], eax
call esi
push ebx
push str.WantPreview
push 0x442bec
mov dword [0x4553f4], eax
call esi
push 1
push str.MasterStream
push 0x442bec
mov dword [0x455468], eax
call esi
push 1
push str.UseFrameRate
push 0x442bec
mov dword [0x4553d8], eax
call esi
push 0xa2c2b
push str.FrameRate
push 0x442bec
mov dword [0x455568], eax
call esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivr qword [0x443430]
fld qword [0x444080]
fmul st(1), st(0)
fxch st(1)
call fcn.0042c730
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fdivrp st(1)
fst qword [0x455460]
fldz
fcompp
fnstsw ax
test ah, 1
jne 0x40c23b
fld qword [0x444078]
fstp qword [0x455460]
push ebx
push str.UseTimeLimit
push 0x442bec
call esi
push ebx
push str.TimeLimit
push 0x442bec
mov dword [0x455564], eax
call esi
mov dword [0x45556c], eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x860]
push ecx
call fcn.00409110
mov edx, dword [0x4449a8]
mov ecx, dword [0x4449b0]
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
add esp, 8
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], eax
mov eax, dword [0x4449ac]
mov dword [esp + 0x48], edx
mov edx, dword [0x4449b4]
push str.user32.dll
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x44], 5
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [0x45561c], ebx
mov dword [0x455620], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.UnregisterDeviceNotification
push esi
call edi
push str.RegisterDeviceNotificationW
push esi
mov dword [0x45561c], eax
call edi
cmp eax, ebx
mov dword [0x455620], eax
mov dword [0x455618], ebx
je 0x40c324
mov edx, dword [0x455610]
push ebx
lea ecx, [esp + 0x40]
push ecx
push edx
call eax
mov dword [0x455618], eax
call fcn.00405650
mov eax, 1
mov ecx, dword [esp + 0x105c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c60f
add esp, 0x1050
ret