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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b148
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x449f6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, 1
cmp dword [0x44cdf8], edi
jne 0x4222e3
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x42240e
cmp ax, word [esi]
je 0x4222e3
call fcn.00421570
push eax
lea ecx, [ebp - 0x10]
call fcn.00419f60
push 0x442b44
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 4], ebx
call fcn.00421fd0
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.00421fd0
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0041a010
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 0x422266
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 0x422288
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 0x4222a2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041a410
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 0x4222f7
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 0x4222e3
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 0x422363
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x28]
push 1
push ebx
push ebx
push ecx
call fcn.00428d90
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 0x4223a4
jb 0x422374
cmp edi, 0x47868c00
ja 0x4223a4
cmp edi, ebx
jne 0x42237c
cmp esi, ebx
je 0x4223a4
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 0x4223cb
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 0x42240c
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