Function at 0x1004be60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007dee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x6b4
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x6c4]
push eax
push ecx
mov dword [ebp - 0x24], 0x208
call fcn.1004c2c0
test eax, eax
je 0x1004bebb
lea edx, [ebp - 0x1b8]
push 0x104
lea eax, [ebp - 0x6c4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x1004bee4
lea edi, [ebp - 0x6c4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1b8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
je 0x1004bfc9
lea ecx, [ebp - 0x14]
push ecx
push str.SystemCurrentControlSetcontrolMediaResourcesicm_vidc.IV50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1004bfb3
mov edx, dword [0x100a43e4]
or ecx, 0xffffffff
mov edi, edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp - 0x14]
push 1
push eax
push str.Description
push edx
call esi
xor ebx, ebx
cmp eax, ebx
jne 0x1004bfb3
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x6c4]
push eax
push ecx
push 1
push ebx
push str.Driver
push edx
call esi
cmp eax, ebx
jne 0x1004bfb3
mov edx, dword [0x100a43e4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x14]
not ecx
push ecx
push edx
push 1
push ebx
push str.FriendlyName
push eax
call esi
cmp eax, ebx
jne 0x1004bfb3
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x1b8]
push str.system.ini
push edx
push str.VIDC.IV50
push str.drivers32
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp eax, ebx
jne 0x1004c063
mov eax, 0x8000ffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x14]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionDrivers32
push 0x80000002
call ebx
test eax, eax
jne 0x1004bfb3
lea edi, [ebp - 0x1b8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
push 1
push eax
push str.vidc.iv50
push edx
call esi
test eax, eax
jne 0x1004bfb3
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
push ecx
push str.SoftwareMicrosoftWindows_NTCurrentVersiondrivers.desc
push 0x80000002
call ebx
test eax, eax
jne 0x1004bfb3
mov edx, dword [0x100a43e4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1b8]
push edx
push eax
call esi
test eax, eax
jne 0x1004bfb3
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
call fcn.1004c3e0
cmp eax, ebx
je 0x1004c243
mov edi, 1
push edi
call fcn.100765a7
cmp eax, ebx
jl 0x1004bfb3
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
push edx
push 0x10093350
push edi
push ebx
push 0x10093340
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x1004c243
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x100000
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0x10092d10
mov esi, dword [eax]
push 0x2d
call fcn.1004bd50
add esp, 4
lea edx, [ebp - 0x18]
push eax
push 0x10093330
push edx
push 0x2d
call fcn.1004bd50
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push 0x10092bb0
push eax
call dword [esi + 0x14]
cmp eax, ebx
jl 0x1004bfb3
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
push 0x10094418
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jl 0x1004c13b
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x48]
mov word [ebp - 0x48], 3
mov dword [ebp - 0x40], edi
mov ecx, dword [eax]
push edx
push str.EncoderType
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebx
jl 0x1004bfb3
mov ecx, 0x1b
xor eax, eax
lea edi, [ebp - 0xb4]
lea edx, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov ecx, 0x42
lea edi, [ebp - 0x3bc]
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [ebp - 0x2b4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3bc]
lea ecx, [ebp - 0x2b4]
push edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x54], ecx
call fcn.10046290
mov eax, dword [ebp - 0x9c]
add esp, 4
cmp eax, ebx
je 0x1004c23a
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push ecx
push 0x36
mov esi, dword [eax]
call fcn.1004bd50
add esp, 4
lea edx, [ebp - 0x18]
push eax
push 0x10093330
push edx
push 0x36
call fcn.1004bd50
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push 0x10092bb0
push eax
call dword [esi + 0x14]
cmp eax, ebx
jl 0x1004bfb3
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push 0x10094418
mov ecx, dword [eax]
push ebx
push ebx
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, ebx
jl 0x1004c229
mov eax, 3
lea edx, [ebp - 0x48]
mov word [ebp - 0x48], ax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
push edx
push str.EncoderType
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esi, eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebx
jl 0x1004bfb3
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x4bc]
push 0x208
push edx
lea ecx, [ebp - 0x6c4]
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1004c29e
mov word [ebp + eax*2 - 0x4bc], bx
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x4bc]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
cmp eax, ebx
jne 0x1004c29e
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x4bc]
push ebx
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_QueryPathOfRegTypeLib]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret