Function at 0x401710
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x40a890]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x40a894]
test eax, eax
jbe 0x401a50
push ebp
push esi
push edi
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx]
mov edi, dword [ebp]
cmp byte [edi], 0x2e
jne 0x40179b
mov edi, dword [0x40a86c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [0x40a870]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
cmp byte [eax + 1], 0x5c
jne 0x4017bc
lea edi, [eax + 2]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x40a870]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4017b7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [0x40a870]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov edx, dword [0x40a870]
push edx
cmp byte [ecx], 0
je 0x401a23
call fcn.004012a0
mov edi, dword [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [0x40a870]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp + 8]
mov edi, 1
test al, 1
je 0x401923
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018a7
mov eax, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [0x40a870]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
mov esi, edi
push ecx
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018a7
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40187d
dec eax
mov dword [esp + 0xc], eax
test eax, eax
je 0x401881
xor edi, edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [0x40a870]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x401910
lea edx, [esp + 0x14]
push edx
push 0x400
call fcn.00401360
add esp, 8
test eax, eax
je 0x4018f2
mov eax, dword [0x40a870]
mov ecx, dword [esp + 0x14]
push eax
push 0xa
push ecx
call fcn.00401440
mov edx, dword [esp + 0x20]
push 0x24
push edx
call fcn.00401410
add esp, 0x14
cmp eax, 6
je 0x4018e5
xor edi, edi
lea eax, [esp + 0x14]
push eax
call fcn.004013a0
add esp, 4
test edi, edi
je 0x40190c
test esi, esi
je 0x40191b
mov ecx, dword [0x40a870]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x40191b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x401a2b
test byte [ebp + 8], 2
je 0x401947
mov ecx, dword [0x40a870]
push ecx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp + 8], 4
je 0x40197a
mov edx, dword [0x40a870]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jb 0x40197a
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401973
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x40a870]
push eax
call fcn.0040376d
add esp, 4
test eax, eax
je 0x401a2b
cmp dword [0x40a8ac], 0xd
jne 0x401a2b
cmp dword [0x40a04c], 0xffffffff
jne 0x4019f9
mov ecx, dword [0x40a870]
push ecx
call fcn.004016a0
add esp, 4
sub eax, 6
jne 0x4019d7
mov edx, dword [0x40a870]
push 0x80
push edx
call fcn.0040362c
add esp, 8
test edi, edi
je 0x401a2b
jmp 0x401923
sub eax, 0x3e3
je 0x4019ed
dec eax
jne 0x4019f9
mov dword [0x40a04c], 0
jmp 0x401a2b
mov dword [0x40a04c], 1
jmp 0x401a02
mov eax, dword [0x40a04c]
test eax, eax
je 0x401a2b
mov eax, dword [0x40a870]
push 0x80
push eax
call fcn.0040362c
mov ecx, dword [0x40a870]
push ecx
call fcn.0040376d
add esp, 0xc
jmp 0x401a2b
call fcn.00403602
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [0x40a894]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
jb 0x401734
pop edi
pop esi
pop ebp
add esp, 0x1c
ret