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

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x338
mov eax, dword [0x4ce724]
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.004888da
pop ecx
test edi, edi
je 0x48a8d2
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.004882d5
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 0x48ac7f
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 0x48ac74
cmp dword [ebp - 0x30], 0x44
ja 0x48ac6d
cmp dword [ebp - 0x4c], 3
jne 0x48ac6d
push 0x44
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00467d60
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 0x48ac74
lea eax, [ebp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.0046d9c0
mov eax, esp
push esi
lea ecx, [ebp + 0x234]
push ecx
push eax
call fcn.0048809b
push dword [ebp + 0x2d8]
push eax
push dword [ebp + 0x2d8]
push dword [ebp - 0x28]
call fcn.0046a5f8
mov eax, dword [ebp - 0x30]
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.004888ad
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.00489ade
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.0048a293
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x48ac74
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x38], ebx
call fcn.00488450
pop ecx
test eax, eax
je 0x48aa4b
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.00489bda
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x34]
call fcn.00489924
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x48aae4
test byte [ebp + 0x10], 1
jne 0x48aae4
cmp byte [ebp - 0x73], 3
jne 0x48aae1
cmp byte [ebp - 0x66], 2
je 0x48aa80
cmp byte [ebp - 0x66], 3
jne 0x48aae1
lea esi, [ebp + 0x1c]
call fcn.0048868e
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea esi, [ebp - 0x40]
call fcn.0048868e
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.0048865c
cmp eax, ebx
mov dword [ebp - 0x38], eax
jle 0x48aacf
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x48aae1
push str.SerialNumber_Get__Computer_system_time_changed_
jmp 0x48aad4
push str.SerialNumber_Get__Time_elapsed._Serial_has_expired.
mov dword [ebp - 0x38], ebx
xor ebx, ebx
call fcn.004888da
pop ecx
jmp 0x48aae4
mov dword [ebp - 0x24], ebx
cmp byte [ebp - 0x73], 3
jne 0x48ab1b
cmp byte [ebp - 0x66], 1
je 0x48aaf6
cmp byte [ebp - 0x66], 7
jne 0x48ab1b
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.0048a119
test eax, eax
je 0x48ab1e
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x24], ebx
jne 0x48ab45
cmp dword [ebp - 0x3c], ebx
je 0x48ab45
movzx eax, byte [ebp - 0x65]
cmp dword [ebp - 0x58], eax
jbe 0x48ab45
push str.SerialNumber_Get__Count_too_big._Serial_has_expired.
xor ebx, ebx
mov dword [ebp - 0x24], 1
call fcn.004888da
pop ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x48ab57
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x24], 1
jne 0x48ac55
or dword [ebp + 0x10], 1
call fcn.004883f6
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.00488882
call fcn.0048846e
test eax, eax
jne 0x48abda
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 0x48abda
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push esi
push dword [ebp - 0x28]
push eax
call fcn.00488078
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.00488395
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 0x48ac53
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046d9c0
mov eax, esp
push esi
push dword [ebp - 0x28]
push eax
call fcn.00488078
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 0x48ac74
push 0x28
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x44]
call fcn.0046b0a0
add esp, 0xc
jmp 0x48ac74
mov dword [ebp - 0x2c], 0xffff0000
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48ac86
mov dword [ebp - 0x2c], 0x103
mov ebx, dword [ebp - 0x2c]
push 0x4c51f8
call fcn.004888da
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.00467d4f
add ebp, 0x2b8
leave
ret 0x24