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

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x338
mov eax, dword [0x4b06f0]
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.00401862
pop ecx
test edi, edi
je 0x40385a
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.0040125d
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 0x403c07
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 0x403bfc
cmp dword [ebp - 0x30], 0x44
ja 0x403bf5
cmp dword [ebp - 0x4c], 3
jne 0x403bf5
push 0x44
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.0046fe20
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 0x403bfc
lea eax, [ebp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.00470be0
mov eax, esp
push esi
lea ecx, [ebp + 0x234]
push ecx
push eax
call fcn.00401023
push dword [ebp + 0x2d8]
push eax
push dword [ebp + 0x2d8]
push dword [ebp - 0x28]
call fcn.00471070
mov eax, dword [ebp - 0x30]
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.00401835
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.00402a66
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.0040321b
add esp, 0x18
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x403bfc
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x38], ebx
call fcn.004013d8
pop ecx
test eax, eax
je 0x4039d3
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.00402b62
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x34]
call fcn.004028ac
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x403a6c
test byte [ebp + 0x10], 1
jne 0x403a6c
cmp byte [ebp - 0x73], 3
jne 0x403a69
cmp byte [ebp - 0x66], 2
je 0x403a08
cmp byte [ebp - 0x66], 3
jne 0x403a69
lea esi, [ebp + 0x1c]
call fcn.00401616
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea esi, [ebp - 0x40]
call fcn.00401616
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.004015e4
cmp eax, ebx
mov dword [ebp - 0x38], eax
jle 0x403a57
lea eax, [ebp - 0x80]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x403a69
push str.SerialNumber_Get__Computer_system_time_changed_
jmp 0x403a5c
push str.SerialNumber_Get__Time_elapsed._Serial_has_expired.
mov dword [ebp - 0x38], ebx
xor ebx, ebx
call fcn.00401862
pop ecx
jmp 0x403a6c
mov dword [ebp - 0x24], ebx
cmp byte [ebp - 0x73], 3
jne 0x403aa3
cmp byte [ebp - 0x66], 1
je 0x403a7e
cmp byte [ebp - 0x66], 7
jne 0x403aa3
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.004030a1
test eax, eax
je 0x403aa6
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x24], ebx
jne 0x403acd
cmp dword [ebp - 0x3c], ebx
je 0x403acd
movzx eax, byte [ebp - 0x65]
cmp dword [ebp - 0x58], eax
jbe 0x403acd
push str.SerialNumber_Get__Count_too_big._Serial_has_expired.
xor ebx, ebx
mov dword [ebp - 0x24], 1
call fcn.00401862
pop ecx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x48]
cmp eax, ebx
je 0x403adf
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x24], 1
jne 0x403bdd
or dword [ebp + 0x10], 1
call fcn.0040137e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.0040180a
call fcn.004013f6
test eax, eax
jne 0x403b62
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 0x403b62
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push esi
push dword [ebp - 0x28]
push eax
call fcn.00401000
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.0040131d
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 0x403bdb
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.00470be0
mov eax, esp
push esi
push dword [ebp - 0x28]
push eax
call fcn.00401000
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 0x403bfc
push 0x28
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x44]
call fcn.0046f7d0
add esp, 0xc
jmp 0x403bfc
mov dword [ebp - 0x2c], 0xffff0000
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403c0e
mov dword [ebp - 0x2c], 0x103
mov ebx, dword [ebp - 0x2c]
push 0x4a75a0
call fcn.00401862
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.0046f33a
add ebp, 0x2b8
leave
ret 0x24