Function at 0x40adff
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x452c76
call fcn.0044c764
sub esp, 0x974
push ebx
push esi
push edi
xor ebx, ebx
push 0x4674e4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], ebx
call fcn.0040a9c4
push 0x457f94
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00405ecc
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.0040162e
push ebx
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00425f10
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004064f2
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x80]
call fcn.004018a8
push ebx
push edi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.004017a7
xor eax, eax
push 0x7fe
mov word [ebp - 0x980], ax
lea eax, [ebp - 0x97e]
push ebx
push eax
call fcn.0043ab70
mov esi, 0xff
push esi
lea eax, [ebp - 0x17f]
push ebx
push eax
mov byte [ebp - 0x180], bl
call fcn.0043ab70
mov eax, dword [ebp - 0x38]
add esp, 0x18
cmp dword [ebp - 0x24], 8
jae 0x40aebd
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push ecx
push 0xf003f
push ebx
push eax
push dword [0x467470]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40aef5
push dword [ebp + 8]
push 0x457f98
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
jmp 0x40b0ac
push dword [ebp - 0x18]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x48]
push eax
call fcn.00419fc8
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x980]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.LocalPath
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b087
cmp dword [ebp - 0x14], edi
jne 0x40b087
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.ModifyTime
push dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
test eax, eax
jne 0x40b0a2
cmp dword [ebp - 0x14], edi
jne 0x40b0a2
push 4
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.Length
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x40b087
cmp dword [ebp - 0x14], edi
jne 0x40b087
lea eax, [ebp - 0x48]
push eax
call fcn.0040d7e8
lea eax, [ebp - 0x980]
push eax
call fcn.00419589
pop ecx
pop ecx
test al, al
je 0x40aff4
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040162e
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x20]
lea eax, [ebp - 0x980]
push eax
mov dword [ebp - 0x1c], 1
call fcn.004194eb
add esp, 0xc
mov byte [ebp + 0xb], 1
test al, al
je 0x40aff7
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], ebx
test byte [ebp - 0x1c], 1
je 0x40b00b
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.004017a7
cmp byte [ebp + 0xb], bl
je 0x40b06a
lea eax, [ebp - 0x980]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40b019
sub eax, edx
sar eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043a142
mov esi, eax
lea eax, [ebp - 0x980]
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40b048
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x980]
push ecx
inc eax
push eax
push esi
call fcn.0043a965
add esp, 0xc
jmp 0x40b093
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x40b076
lea eax, [ebp - 0x38]
push eax
push dword [0x467470]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
jmp 0x40b093
lea eax, [ebp - 0x48]
push eax
xor esi, esi
call fcn.0040d7e8
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.004018a8
mov eax, esi
jmp 0x40b0b8
lea eax, [ebp - 0x48]
push eax
call fcn.0040d7e8
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x3c]
call fcn.004018a8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4