Function at 0x4a9e80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x244
test byte [0x6af8dc], 2
push ebx
mov ebx, dword [esp + 0x24c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
jne 0x4a9fa3
push 0x104
lea eax, [esp + 0x14]
push eax
call ebp
cmp byte [esp + 0x10], 0
lea esi, [esp + 0x10]
je 0x4a9ec9
add esi, 1
cmp byte [esi], 0
jne 0x4a9ec1
cmp byte [esi - 1], 0x5c
je 0x4a9ed5
mov byte [esi], 0x5c
add esi, 1
mov ecx, dword [str.systemh20capt.dll]
mov edx, dword [0x63e0d4]
mov eax, dword [0x63e0d8]
mov dword [esi], ecx
mov ecx, dword [0x63e0dc]
mov dword [esi + 4], edx
mov dx, word [0x63e0e0]
mov dword [esi + 8], eax
mov al, byte [0x63e0e2]
mov dword [esi + 0xc], ecx
mov word [esi + 0x10], dx
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esi + 0x12], al
call edi
cmp eax, 0xffffffff
jne 0x4a9f67
mov eax, dword [str.systemh22capt.dll]
mov ecx, dword [0x63e0c0]
mov edx, dword [0x63e0c4]
mov dword [esi], eax
mov eax, dword [0x63e0c8]
mov dword [esi + 4], ecx
mov cx, word [0x63e0cc]
mov dword [esi + 8], edx
mov dl, byte [0x63e0ce]
mov dword [esi + 0xc], eax
mov word [esi + 0x10], cx
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esi + 0x12], dl
call edi
cmp eax, 0xffffffff
je 0x4a9fa3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.004a9e10
push 4
push str.Zoran_drivers_detected
push str.You_may_experience_difficulty_getting_exact_framerates_with_your_capture_card__resulting_in_dropped_frames.__Do_you_want_to_know_more_about_this_problem_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4a9f99
push str.capwarn.html
push ebx
call fcn.0046acd0
add esp, 8
push 2
call fcn.004a9da0
add esp, 4
test byte [0x6af8dc], 4
jne 0x4aa09e
push 0x104
lea edx, [esp + 0x14]
push edx
call ebp
cmp byte [esp + 0x10], 0
lea esi, [esp + 0x10]
je 0x4a9fcf
add esi, 1
cmp byte [esi], 0
jne 0x4a9fc7
cmp byte [esi - 1], 0x5c
je 0x4a9fdb
mov byte [esi], 0x5c
add esi, 1
mov eax, dword [str.system_bt848_32.dll]
mov ecx, dword [0x63dff4]
mov edx, dword [0x63dff8]
mov dword [esi], eax
mov eax, dword [0x63dffc]
mov dword [esi + 4], ecx
mov ecx, dword [0x63e000]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x10], ecx
call edi
cmp eax, 0xffffffff
jne 0x4aa062
mov ecx, dword [str.system32_bt848_32.dll]
mov edx, dword [0x63dfdc]
mov eax, dword [0x63dfe0]
mov dword [esi], ecx
mov ecx, dword [0x63dfe4]
mov dword [esi + 4], edx
mov edx, dword [0x63dfe8]
mov dword [esi + 8], eax
mov ax, word [0x63dfec]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x14]
push edx
mov word [esi + 0x14], ax
call edi
cmp eax, 0xffffffff
je 0x4aa09e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.004a9e10
push 4
push str.Brooktree_Bt848_878_drivers_detected
push str.You_may_have_difficulty_capturing_above_320x240_with_this_card.__Do_you_want_to_know_more_about_this_problem_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4aa094
push str.capwarn.html
push ebx
call fcn.0046acd0
add esp, 8
push 4
call fcn.004a9da0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret