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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x32c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
lea esi, [ebp + 0x6c]
lea edi, [ebp - 0x2b4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str._SerialNumber_UpdateKeyTime
xor ebx, ebx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2bc], eax
call fcn.004888da
and dword [ebp - 0x2c0], ebx
push 0x44
lea eax, [ebp - 0x2a4]
push ebx
push eax
call fcn.00467d60
lea esi, [ebp - 0x2b4]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x260]
movsd dword es:[edi], dword [esi]
call fcn.00488335
push dword [ebp - 0x2bc]
lea eax, [ebp + 0x20]
push 0x40
push eax
call fcn.0046a4fd
add esp, 0x1c
push 1
push 1
lea eax, [ebp + 0x20]
push eax
call fcn.00488deb
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push esi
lea ecx, [ebp + 0x20]
push ecx
push eax
call fcn.00488078
push eax
lea eax, [ebp - 0x60]
push 0x40
push eax
call fcn.0046a6ad
add esp, 0xc
lea eax, [ebp - 0x2c4]
push eax
mov esi, 0x20019
push esi
push 0
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
mov edi, closesocket
push edi
call ebx
mov dword [ebp - 0x2b8], eax
xor eax, eax
cmp dword [ebp - 0x2b8], eax
jne 0x489f15
lea ecx, [ebp - 0x2c0]
push ecx
push eax
push eax
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2b8], eax
test eax, eax
jne 0x489d5b
mov eax, dword [ebp - 0x2c0]
call fcn.0046d9c0
mov dword [ebp - 0x2c8], esp
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x60]
push 0
push 0
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2b8], eax
test eax, eax
jne 0x489d5b
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2c8]
call fcn.004888ad
mov eax, dword [ebp - 0x2c0]
cmp eax, 0x44
jb 0x489d45
push 0x44
pop eax
push eax
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2a4]
push eax
call fcn.0046b0a0
add esp, 0xc
lea eax, [ebp - 0x2bc]
push eax
push esi
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x2c4]
call ebx
test eax, eax
lea eax, [ebp - 0x270]
push eax
jne 0x489da2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x489daa
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor esi, esi
push dword [ebp - 0x278]
call fcn.00488450
pop ecx
test eax, eax
jge 0x489e00
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x489e00
push 8
lea esi, [ebp - 0x268]
lea eax, [ebp - 0x270]
call fcn.00488601
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x26c]
pop ecx
mov dword [ebp - 0x264], eax
xor esi, esi
and dword [ebp - 0x274], 0xfffffffe
call fcn.004883f6
mov dword [ebp - 0x278], eax
push 0x44
pop eax
lea ecx, [ebp - 0x2a4]
call fcn.00488882
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2b8], esi
jne 0x489f15
lea eax, [ebp - 0x2c4]
push eax
push 0x20006
push esi
lea eax, [ebp - 0x260]
push eax
push edi
call ebx
mov dword [ebp - 0x2b8], eax
cmp eax, esi
jne 0x489e98
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x2a4]
push eax
push 3
push esi
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c4]
mov ebx, eax
mov dword [ebp - 0x2b8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.__SerialNumber_UpdateKeyTime_Machine_Updated_
call fcn.004888da
pop ecx
sub esp, 0x10
lea esi, [ebp - 0x2b4]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp - 0x260]
movsd dword es:[edi], dword [esi]
call fcn.00488395
add esp, 0x10
lea eax, [ebp - 0x2bc]
push eax
push 0x20006
push 0
mov eax, ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x489f15
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x2a4]
push eax
push 3
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2bc]
mov ebx, eax
mov dword [ebp - 0x2b8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.__SerialNumber_UpdateKeyTime_User_Updated_
call fcn.004888da
pop ecx
mov ebx, dword [ebp - 0x2b8]
push 0x4c4c44
call fcn.004888da
pop ecx
mov eax, ebx
lea esp, [ebp - 0x2d4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
call fcn.00467d4f
add ebp, 0x64
leave
ret 0x14