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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x32c
mov eax, dword [0x4a86f0]
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.00406afb
and dword [ebp - 0x2c0], ebx
push 0x44
lea eax, [ebp - 0x2a4]
push ebx
push eax
call fcn.0046a330
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.00406556
push dword [ebp - 0x2bc]
lea eax, [ebp + 0x20]
push 0x40
push eax
call fcn.0046a482
add esp, 0x1c
push 1
push 1
lea eax, [ebp + 0x20]
push eax
call fcn.0040700c
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046db50
mov eax, esp
push esi
lea ecx, [ebp + 0x20]
push ecx
push eax
call fcn.00406299
push eax
lea eax, [ebp - 0x60]
push 0x40
push eax
call fcn.0046befa
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 0x408136
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 0x407f7c
mov eax, dword [ebp - 0x2c0]
call fcn.0046db50
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 0x407f7c
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2c8]
call fcn.00406ace
mov eax, dword [ebp - 0x2c0]
cmp eax, 0x44
jb 0x407f66
push 0x44
pop eax
push eax
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2a4]
push eax
call fcn.00469ce0
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 0x407fc3
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 0x407fcb
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor esi, esi
push dword [ebp - 0x278]
call fcn.00406671
pop ecx
test eax, eax
jge 0x408021
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x408021
push 8
lea esi, [ebp - 0x268]
lea eax, [ebp - 0x270]
call fcn.00406822
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.00406617
mov dword [ebp - 0x278], eax
push 0x44
pop eax
lea ecx, [ebp - 0x2a4]
call fcn.00406aa3
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2b8], esi
jne 0x408136
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 0x4080b9
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.00406afb
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.004065b6
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 0x408136
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.00406afb
pop ecx
mov ebx, dword [ebp - 0x2b8]
push 0x49fa94
call fcn.00406afb
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.0046984a
add ebp, 0x64
leave
ret 0x14