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

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp + 0x294], eax
mov eax, dword [ebp + 0x2b8]
push ebx
push esi
push edi
lea esi, [ebp + 0x2a0]
lea edi, [ebp - 0x40]
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 + 0x2b0]
push str._SerialNumber_Add
xor ebx, ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], eax
call fcn.00488b9a
pop ecx
lea eax, [ebp - 0x80]
push eax
push esi
sub esp, 0x10
lea esi, [ebp - 0x40]
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.0048a553
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x48ab08
push dword [ebp - 0x54]
lea eax, [ebp + 0x214]
push 0x80
push eax
call fcn.0046a7ad
add esp, 0xc
push 1
push 1
lea eax, [ebp + 0x214]
push eax
call fcn.004890ab
mov ebx, eax
lea eax, [ebp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0046dc70
mov eax, esp
push esi
lea ecx, [ebp + 0x214]
push ecx
push eax
call fcn.00488338
mov dword [ebp - 0x4c], eax
test ebx, ebx
jne 0x48ab08
sub esp, 0x10
lea esi, [ebp - 0x40]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0x14]
movsd dword es:[edi], dword [esi]
call fcn.00488595
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
push 0xf003f
push edi
push edi
push edi
mov eax, ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x48ab08
cmp byte [ebp - 0x7b], 3
jne 0x48a9c9
cmp byte [ebp - 0x6e], 2
je 0x48a9c4
cmp byte [ebp - 0x6e], 3
jne 0x48a9c9
xor esi, esi
inc esi
jmp 0x48a9cb
xor esi, esi
cmp dword [ebp - 0x58], 2
jne 0x48aa0a
cmp dword [ebp + 0x2b4], edi
je 0x48a9de
cmp esi, 1
jne 0x48aa0a
push edi
push edi
push edi
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48aa0a
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._SerialNumber_Add___fReplaceExitingFALSE___ERROR_ALREADY_EXISTS
mov ebx, 0xb7
jmp 0x48ab0d
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00468010
mov dword [ebp - 0x30], ebx
call fcn.004886b6
push 0x28
push dword [ebp - 0x54]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push 0x28
push eax
call fcn.0046a8a8
add esp, 0x1c
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x48aa89
lea eax, [ebp + 0x14]
push eax
call fcn.004687a8
pop ecx
inc eax
push eax
lea eax, [ebp + 0x14]
push eax
push 1
push edi
push edi
push dword [ebp - 0x48]
call ebx
lea eax, [ebp + 4]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], edi
jne 0x48aa9d
cmp dword [ebp + 4], edi
jne 0x48aa9d
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp esi, 1
jne 0x48aacb
cmp byte [ebp - 0x6e], 2
movzx eax, byte [ebp - 0x6d]
jne 0x48aaaf
imul eax, eax, 7
mov dword [ebp - 0x64], eax
push eax
lea esi, [ebp + 0xc]
lea eax, [ebp + 4]
call fcn.004888c1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [ebp - 0x68], eax
push 0x44
pop eax
lea ecx, [ebp - 0x30]
call fcn.00488b42
push 0x44
lea eax, [ebp - 0x30]
push eax
push 3
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call ebx
mov ebx, eax
cmp dword [ebp - 0x50], edi
je 0x48aaff
push 0x28
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x50]
call fcn.0046b350
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4c51a0
call fcn.00488b9a
mov eax, ebx
pop ecx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.00467fff
add ebp, 0x298
leave
ret 0x1c