Function at 0x4041f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b0e5
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4394c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x294], esi
cmp dword [eax + 0x14], 8
jb 0x404231
mov eax, dword [eax]
push 0xc8
lea ebx, [esi + 0xc]
mov dword [esi], vtable.tvhooks::CInterface.0
push eax
mov ecx, ebx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00409ca0
cmp byte [ebp + 0x10], 0
je 0x404262
mov ecx, ebx
call fcn.00409d90
mov eax, dword [ebp + 0x14]
lea edi, [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi], vtable.tvhooks::CDriverInstaller.0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004084e0
mov eax, dword [esi + 4]
test eax, eax
je 0x4042a6
mov eax, dword [eax]
push 0
mov eax, dword [eax + 0x20]
call eax
lea ecx, [ebp - 0x260]
call fcn.00404080
push str.x86TVMonitor.inf
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00407b30
add esp, 4
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.00406a40
lea eax, [ebp - 0x230]
push eax
call fcn.00406970
test al, al
jne 0x404325
push str.CDriverInstaller::c_tor__:_Provided_TVMonitor.inf_file_is_unknown_to_the_loader__Add_to_DB_
push 0xc8
push ebx
call fcn.00409df0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], 0
mov word [ebp - 0x278], ax
cmp word [ebp - 0x218], ax
jne 0x404361
xor ecx, ecx
jmp 0x40437f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404370
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
call fcn.004024d0
push ecx
lea edx, [ebp - 0x278]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x290]
call fcn.00407c20
mov ebx, eax
add esp, 4
cmp edi, ebx
je 0x4043dc
cmp dword [edi + 0x14], 8
jb 0x4043c1
push dword [edi]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push ebx
mov word [edi], ax
call fcn.00407680
cmp dword [ebp - 0x27c], 8
jb 0x4043f3
push dword [ebp - 0x290]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [ebp - 0x27c], 7
cmp dword [ebp - 0x264], 8
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
jb 0x404427
push dword [ebp - 0x278]
call fcn.00417533
add esp, 4
cmp dword [ebp - 0x21c], 0x10
jb 0x40443e
push dword [ebp - 0x230]
call fcn.00417533
add esp, 4
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
jb 0x404470
push dword [ebp - 0x248]
call fcn.00417533
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x4044a4
push dword [ebp - 0x260]
call fcn.00417533
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416cb0
mov esp, ebp
pop ebp
ret 0x10