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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x32c
mov eax, dword [0x4af6f0]
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.00401862
and dword [ebp - 0x2c0], ebx
push 0x44
lea eax, [ebp - 0x2a4]
push ebx
push eax
call fcn.0046f7e0
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.004012bd
push dword [ebp - 0x2bc]
lea eax, [ebp + 0x20]
push 0x40
push eax
call fcn.0046fdbd
add esp, 0x1c
push 1
push 1
lea eax, [ebp + 0x20]
push eax
call fcn.00401d73
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.004705a0
mov eax, esp
push esi
lea ecx, [ebp + 0x20]
push ecx
push eax
call fcn.00401000
push eax
lea eax, [ebp - 0x60]
push 0x40
push eax
call fcn.0046fe12
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 0x402e9d
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 0x402ce3
mov eax, dword [ebp - 0x2c0]
call fcn.004705a0
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 0x402ce3
mov eax, dword [ebp - 0x2c0]
mov ecx, dword [ebp - 0x2c8]
call fcn.00401835
mov eax, dword [ebp - 0x2c0]
cmp eax, 0x44
jb 0x402ccd
push 0x44
pop eax
push eax
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x2a4]
push eax
call fcn.0046f190
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 0x402d2a
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 0x402d32
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor esi, esi
push dword [ebp - 0x278]
call fcn.004013d8
pop ecx
test eax, eax
jge 0x402d88
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x402d88
push 8
lea esi, [ebp - 0x268]
lea eax, [ebp - 0x270]
call fcn.00401589
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.0040137e
mov dword [ebp - 0x278], eax
push 0x44
pop eax
lea ecx, [ebp - 0x2a4]
call fcn.0040180a
push dword [ebp - 0x2c4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2b8], esi
jne 0x402e9d
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 0x402e20
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.00401862
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.0040131d
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 0x402e9d
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.00401862
pop ecx
mov ebx, dword [ebp - 0x2b8]
push 0x4a5d64
call fcn.00401862
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.0046ecfa
add ebp, 0x64
leave
ret 0x14