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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486d98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 1
cmp dword [0x4a9420], edi
jne 0x46d933
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x46da5e
cmp ax, word [esi]
je 0x46d933
call fcn.0046cbc0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b010
push 0x4945c4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 4], ebx
call fcn.0046d620
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.0046d620
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00433ef0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d8b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d8d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
cmp dword [eax - 4], edi
jle 0x46d8f2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004028f0
mov eax, dword [ebp - 0x10]
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
push 3
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x46d947
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46d933
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push ebx
push str.Ticks
push eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x46d9b3
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push ecx
call fcn.00474e40
mov esi, edx
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x2c]
mov edi, eax
xor eax, eax
add edi, edx
adc esi, eax
mov dword [ebp - 0x14], ebx
cmp esi, ebx
ja 0x46d9f4
jb 0x46d9c4
cmp edi, 0x47868c00
ja 0x46d9f4
cmp edi, ebx
jne 0x46d9cc
cmp esi, ebx
je 0x46d9f4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push str.Times
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0xc]
add dword [ebp - 0x14], ecx
jmp 0x46da1b
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
push 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xb
push ebx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x18]
push str.Ticks
push edx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x18]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push str.Times
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46da5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret