Function at 0x401e10
Capabilities:
Delete registry value
Set current directory
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x589e81
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x67c]
mov dword fs:[0], eax
call fcn.0045082d
mov ebp, dword [eax + 4]
xor edi, edi
push 0x206
lea eax, [esp + 0x66]
push edi
push eax
mov word [esp + 0x6c], di
call fcn.004727f0
add esp, 0xc
call fcn.0045082d
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, edi
je 0x401ea4
push str.Codec
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0045881f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x402082
mov ebx, 1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push edi
lea ecx, [esp + 0x1c]
push str.Driver_04d
push ecx
mov dword [esp + 0x690], 0
call fcn.00409fe0
add esp, 0xc
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x18]
call fcn.0040a190
push ebx
push 0x5e8650
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68c], bl
call fcn.00408ab0
mov esi, dword [esp + 0x18]
push 0x5e8d68
push esi
push str.CODECS
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.00462161
mov byte [esp + 0x684], 2
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40208c
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x5e866c
push eax
call fcn.00473dbb
lea eax, [esp + 0x278]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408ab0
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x474]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jbe 0x401ffd
cmp dword [esp + 0x68c], 0
je 0x401fe8
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea ecx, [esp + 0x474]
push ecx
push ebx
lea edx, [esp + 0x2c]
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionDrivers32
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x401ffd
lea eax, [esp + 0x20]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionDrivers32
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov byte [esp + 0x684], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402024
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x684], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40204c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x684], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402073
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, ebx
call fcn.0045881f
test eax, eax
jne 0x401ec8
push 0x80004005
call fcn.0040a460
add eax, 0xfffffff0
mov byte [esp + 0x684], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x684], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x684], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00410de0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x67c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x664]
xor ecx, esp
call fcn.004721e8
add esp, 0x674
ret 4