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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7762ae
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x88bba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 0
push 0x799e88
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
call fcn.0042fb60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x9c]
push 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x799e88
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
call fcn.0042fb60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
call fcn.00497d20
lea eax, [ebp - 0x9c]
push eax
call fcn.00497ed0
cmp dword [ebp - 0x70], 0x10
lea esi, [ebp - 0x84]
push 0x40
cmovae esi, dword [ebp - 0x84]
lea eax, [ebp - 0x53]
cmp dword [ebp - 0x88], 0x10
lea edi, [ebp - 0x9c]
push 0
cmovae edi, dword [ebp - 0x9c]
push eax
mov dword [ebp - 0xa8], 1
mov byte [ebp - 0x54], 0
call fcn.00723180
add esp, 0x14
mov dword [ebp - 0xa4], 0x41
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0xffff
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x49896c
cmp dword [ebp - 0xa4], 0x41
jne 0x49896c
mov bl, 1
jmp 0x498a51
lea eax, [ebp - 0xa0]
push eax
push 0x20006
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4989bc
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa0]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4989bc
xor bl, bl
jmp 0x498a51
push 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0
push 0x799e88
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.0042fb60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x6c]
push 0x40
push eax
call fcn.00497ba0
add esp, 8
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
cmovae eax, dword [ebp - 0x6c]
push dword [ebp - 0x5c]
push eax
push 1
push 0
push edi
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x58], 0x10
jb 0x498a3f
push dword [ebp - 0x6c]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x88], 0x10
jb 0x498a6c
push dword [ebp - 0x9c]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x70], 0x10
jb 0x498aa2
push dword [ebp - 0x84]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x70], 0xf
mov al, bl
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00722035
mov esp, ebp
pop ebp
ret