Function at 0x10009d40
Capabilities:
Delete registry key
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push edi
push esi
sub esp, 0x210
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push 0x10320e94
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10009d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
push eax
push 0x10320e68
push 0x10320640
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x210
pop esi
pop edi
ret
push 0x10320ec4
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x10009de7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x84]
push eax
push 0x10320ea4
push 0x10320640
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x210
pop esi
pop edi
ret
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xfc], 0x40000000
lea eax, [esp + 0xfc]
xor edx, edx
push edx
push eax
push edx
push edx
call sym.xvid.dll_xvid_init
add esp, 0x10
mov eax, dword [esp + 0xfc]
mov dword [0x102dcec4], eax
lea edx, [esp + 0x108]
push edx
push 0x20019
push 0
push 0x10320e08
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp], ebp
xor esi, esi
mov dword [esp + 0x10c], 4
lea edx, [esp + 0x10c]
xor eax, eax
push edx
push dword [esi + 0x10083064]
push eax
push eax
push dword [esi + 0x10083060]
push dword [esp + 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10009e83
mov eax, dword [esi + 0x10083064]
mov edx, dword [esi + 0x10083068]
mov dword [eax], edx
add esi, 0xc
cmp esi, 0x348
jb 0x10009e41
mov ebp, dword [esp]
mov dword [esp + 4], ebx
mov dword [esp], ebp
xor eax, eax
mov ebx, eax
mov dword [esp + 0x10c], 0x104
lea ecx, [esp + 0x10c]
xor edx, edx
push ecx
push dword [ebx + 0x100833ac]
push edx
push edx
push dword [ebx + 0x100833a8]
push dword [esp + 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10009ee3
mov edi, dword [ebx + 0x100833ac]
mov esi, dword [ebx + 0x100833b0]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
add ebx, 0xc
cmp ebx, 0x24
jb 0x10009e9c
mov ebx, dword [esp + 4]
mov ebp, dword [esp]
lea edx, [esp + 0x110]
mov eax, 0x10320900
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
lea edx, [esp + 0x150]
mov eax, 0x103208c0
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov dword [esp + 0x10c], pe_nt_image_headers32
lea eax, [esp + 0x10c]
xor edx, edx
push eax
push 0x102dcba0
push edx
push edx
push 0x10320e1c
push dword [esp + 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000a062
lea eax, [esp + 0x110]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov edx, 0x102dcba0
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov dword [esp + 0x10c], pe_nt_image_headers32
lea eax, [esp + 0x10c]
xor edx, edx
push eax
push 0x102dcbe0
push edx
push edx
push 0x10320e2c
push dword [esp + 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1000a0fe
lea eax, [esp + 0x150]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov edx, 0x102dcbe0
mov dword [edx], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], esi
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
mov edi, dword [esp + 0x21c]
mov esi, 0x102dca20
mov ecx, 0x12c
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x194]
lea eax, [esp + 0x190]
push eax
xor ecx, ecx
push edx
push ecx
push 0x20006
push ecx
push 0x10320e60
push ecx
push 0x10320e08
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000a186
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x198]
push eax
push 0x10320e3c
push 0x10320640
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1000a252
mov esi, dword [esp + 0x21c]
mov edi, 0x102dca20
mov ecx, 0x12c
rep movsd dword es:[edi], dword [esi]
mov dword [esp], ebp
xor esi, esi
mov eax, 4
push eax
push dword [esi + 0x10083064]
push eax
push 0
push dword [esi + 0x10083060]
push dword [esp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xc
cmp esi, 0x348
jb 0x1000a19e
mov ebp, dword [esp]
mov dword [esp], ebp
xor esi, esi
push dword [esi + 0x100833ac]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push dword [esi + 0x100833ac]
push 1
push 0
push dword [esi + 0x100833a8]
push dword [esp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esi, 0xc
cmp esi, 0x24
jb 0x1000a1d3
mov ebp, dword [esp]
push pe_nt_image_headers32
push 0x102dcba0
push 3
push 0
push 0x10320e1c
push dword [esp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push pe_nt_image_headers32
push 0x102dcbe0
push 3
push 0
push 0x10320e2c
push dword [esp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x194]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x210
pop esi
pop edi
ret