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

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x338
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
mov eax, dword [ebp + 0x2dc]
push ebx
push esi
push edi
lea esi, [ebp + 0x2c0]
lea edi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x2d4]
mov edi, dword [ebp + 0x2e0]
push str._SerialNumber_Get
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edi
call fcn.00406afb
pop ecx
test edi, edi
je 0x408af3
mov dword [edi], 1
mov byte [esi], bl
sub esp, 0x10
lea esi, [ebp + 0x24]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
call fcn.004064f6
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp + 0x34]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ea0
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x234]
push eax
push dword [ebp + 0x2d0]
mov dword [ebp - 0x50], 0x40
push dword [ebp - 0x34]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x408e95
cmp dword [ebp - 0x30], 0x44
ja 0x408e8e
cmp dword [ebp - 0x4c], 3
jne 0x408e8e
push 0x44
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
lea eax, [ebp + 0x234]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x408e95
lea eax, [ebp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.0046dbb0
mov eax, esp
push esi
lea ecx, [ebp + 0x234]
push ecx
push eax
call fcn.004062bc
push dword [ebp + 0x2d8]
push eax
push dword [ebp + 0x2d8]
push dword [ebp - 0x28]
call fcn.0046a537
mov eax, dword [ebp - 0x30]
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.00406ace
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
lea esi, [ebp + 0x24]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00407cff
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x10
lea esi, [ebp + 0x24]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004084b4
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x408e95
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x38], ebx
call fcn.00406671
pop ecx
test eax, eax
je 0x408c6c
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00407dfb
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x34]
call fcn.00407b45
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x408d05
test byte [ebp + 0x10], 1
jne 0x408d05
cmp byte [ebp - 0x73], 3
jne 0x408d02
cmp byte [ebp - 0x66], 2
je 0x408ca1
cmp byte [ebp - 0x66], 3
jne 0x408d02
lea esi, [ebp + 0x1c]
call fcn.004068af
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea esi, [ebp - 0x40]
call fcn.004068af
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x1c]
mov ecx, esi
call fcn.0040687d
cmp eax, ebx
mov dword [ebp - 0x38], eax
jle 0x408cf0
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x408d02
push str.SerialNumber_Get__Computer_system_time_changed_
jmp 0x408cf5
push str.SerialNumber_Get__Time_elapsed._Serial_has_expired.
mov dword [ebp - 0x38], ebx
xor ebx, ebx
call fcn.00406afb
pop ecx
jmp 0x408d05
mov dword [ebp - 0x24], ebx
cmp byte [ebp - 0x73], 3
jne 0x408d3c
cmp byte [ebp - 0x66], 1
je 0x408d17
cmp byte [ebp - 0x66], 7
jne 0x408d3c
movzx eax, byte [ebp - 0x66]
push eax
lea eax, [ebp - 0x58]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], 1
movsd dword es:[edi], dword [esi]
call fcn.0040833a
test eax, eax
je 0x408d3f
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x24], ebx
jne 0x408d66
cmp dword [ebp - 0x3c], ebx
je 0x408d66
movzx eax, byte [ebp - 0x65]
cmp dword [ebp - 0x58], eax
jbe 0x408d66
push str.SerialNumber_Get__Count_too_big._Serial_has_expired.
xor ebx, ebx
mov dword [ebp - 0x24], 1
call fcn.00406afb
pop ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x408d78
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x24], 1
jne 0x408e76
or dword [ebp + 0x10], 1
call fcn.00406617
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.00406aa3
call fcn.0040668f
test eax, eax
jne 0x408dfb
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push ebx
lea eax, [ebp + 0x34]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408dfb
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push esi
push dword [ebp - 0x28]
push eax
call fcn.00406299
push 0x44
lea ecx, [ebp - 0x20]
push ecx
push 3
push ebx
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 0x10
lea esi, [ebp + 0x24]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
call fcn.004065b6
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408e74
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dbb0
mov eax, esp
push esi
push dword [ebp - 0x28]
push eax
call fcn.00406299
push 0x44
lea ecx, [ebp - 0x20]
push ecx
push 3
push 0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 0x44], ebx
je 0x408e95
push 0x28
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x44]
call fcn.00469d40
add esp, 0xc
jmp 0x408e95
mov dword [ebp - 0x2c], 0xffff0000
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408ea7
mov dword [ebp - 0x2c], 0x103
mov ebx, dword [ebp - 0x2c]
push 0x4a0030
call fcn.00406afb
pop ecx
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.004698aa
add ebp, 0x2b8
leave
ret 0x24