Function at 0x30020d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x300f958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov edi, str.PaperPortVersion
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x30], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str.SoftwareScansoft
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], bl
lea eax, [edx + ecx + 5]
push eax
call fcn.0300758f
mov ebp, eax
or ecx, 0xffffffff
mov edi, str.SoftwareScansoft
xor eax, eax
add esp, 4
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x3012120
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
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 edi, str.PaperPortVersion
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
mov ecx, edx
push eax
and ecx, 3
push 0x20019
push ebx
rep movsb byte es:[edi], byte [esi]
push ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x80000002
call edi
cmp eax, ebx
jne 0x300222b
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebx
push edx
push ebx
push str.Version
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x300221c
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x300221c
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.0300758f
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x14], eax
push ecx
push eax
push edx
push ebx
push str.Version
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x300222b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], ebx
push ebp
call fcn.03007526
mov ebp, dword [esp + 0x18]
add esp, 4
cmp ebp, ebx
je 0x300242f
cmp byte [ebp], bl
je 0x3002426
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x1c]
mov byte [esp + 0x30], 2
push eax
push 0xf003f
push ebx
push str.SoftwareScansoft
push 0x80000001
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x30023f1
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x300228a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne 0x30023f1
lea edx, [esp + 0x1c]
xor esi, esi
push edx
push 0xf003f
push ebx
push str.PaperPortVersion
push ecx
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x3002353
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, ebx
je 0x30022cc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x3002353
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ebx
push edx
push ebx
push str.Version
push ecx
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x300232e
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x300232e
inc eax
push eax
mov dword [esp + 0x20], eax
call fcn.0300758f
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push esi
push ecx
push ebx
push str.Version
push edx
mov dword [esp + 0x3c], ebx
call edi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x3002341
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x3002353
push esi
push ebp
call fcn.03007a16
add esp, 8
test eax, eax
je 0x3002358
mov byte [esp + 0x13], 1
cmp esi, ebx
je 0x3002365
push esi
call fcn.03007526
add esp, 4
cmp byte [esp + 0x13], bl
je 0x30023f1
lea eax, [esp + 0x18]
push eax
call fcn.030014f0
add esp, 4
call fcn.03001730
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.PaperPortVersion
push eax
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x30023f1
lea ecx, [esp + 0x14]
call fcn.03001f90
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x30023f1
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
inc eax
push eax
push ebp
push 1
push ebx
push str.Version
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x30023f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x3002404
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x3002417
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x3002426
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.03007526
add esp, 4
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x3002442
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret