Function at 0x402070
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e9a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b0
mov eax, dword [0x452020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x27c], esi
cmp dword [eax + 0x14], 8
jb 0x4020d0
mov eax, dword [eax]
lea edi, [esi + 0xc]
mov dword [esi], 0x44a1d8
push 0xc8
push eax
mov ecx, edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x26c], edi
call fcn.00407c40
cmp byte [ebx + 0x10], 0
je 0x402107
mov ecx, edi
call fcn.00407d20
mov eax, dword [ebx + 0x14]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
mov dword [esi], 0x44a1d4
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov dword [ebp - 0x274], eax
mov word [eax], cx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00405de0
mov eax, dword [esi + 4]
test eax, eax
je 0x402165
mov eax, dword [eax]
push 0
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x43d1ac]
call esi
mov esi, dword [ebp - 0x270]
lea ecx, [ebp - 0x250]
call fcn.00401d80
mov byte [ebp - 4], 2
mov eax, 0x7ffffffe
mov ecx, dword [ebp - 0x240]
sub eax, ecx
cmp eax, 0x12
jb 0x402429
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
push 0x12
cmovae eax, dword [ebp - 0x250]
push str.x86TVMonitor.inf
push ecx
push eax
push ecx
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x268]
call fcn.00405930
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0xf
mov byte [ebp - 0x238], 0
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x268]
mov ecx, esi
push eax
call fcn.00404690
mov ecx, dword [ebp - 0x238]
mov edi, 0x454050
nop dword [eax]
nop word [eax + eax]
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
mov esi, dword [edi + 0x10]
mov edx, edi
cmovae eax, ecx
cmp dword [edi + 0x14], 0x10
jb 0x40222d
mov edx, dword [edi]
cmp esi, dword [ebp - 0x228]
jne 0x402296
sub esi, 4
jb 0x402251
nop word [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x402256
add edx, 4
add eax, 4
sub esi, 4
jae 0x402240
cmp esi, 0xfffffffc
je 0x40228a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x402283
cmp esi, 0xfffffffd
je 0x40228a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x402283
cmp esi, 0xfffffffe
je 0x40228a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x402283
cmp esi, 0xffffffff
je 0x40228a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x40228a
sbb eax, eax
or eax, 1
jmp 0x40228c
xor eax, eax
test eax, eax
je 0x4022aa
mov ecx, dword [ebp - 0x238]
add edi, 0x18
cmp edi, 0x4540b0
je 0x40242e
jmp 0x402210
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x29c], 0
movups xmmword [ebp - 0x2b0], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022e3
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00405800
push 5
push str.inf_
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 5
call fcn.00405aa0
mov esi, dword [ebp - 0x274]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c0], xmm0
movups xmmword [ebp - 0x298], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x298]
movq qword [ebp - 0x280], xmm0
movq qword [ebp - 0x288], xmm0
cmp esi, eax
je 0x40239f
mov ecx, esi
call fcn.00405140
movups xmm0, xmmword [ebp - 0x2c0]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x298], ax
movq xmm0, qword [ebp - 0x280]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x298]
call fcn.00405140
lea ecx, [ebp - 0x2b0]
call fcn.00405140
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x4023ed
mov edx, dword [ebp - 0x238]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4023e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40244b
push ecx
push edx
call fcn.0041d595
add esp, 8
lea ecx, [ebp - 0x268]
call fcn.00405140
lea ecx, [ebp - 0x250]
call fcn.00405140
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d1ec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.00401cc0
push str.CDriverInstaller::c_tor__:_Provided_TVMonitor.inf_file_is_unknown_to_the_loader__Add_to_DB_
push 0xc8
push dword [ebp - 0x26c]
call fcn.00407d80
add esp, 0xc
call fcn.00426241
call fcn.004268a9
int3