Function at 0x40dbf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487a9c
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4af3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40dd23
lea eax, [ebp - 0x248]
push eax
push 0x20019
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ddfe
cmp eax, 2
jne 0x40dd2d
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.Key_not_found
lea ecx, [ebp - 0x278]
call fcn.00402460
mov esi, eax
push str._P_05d__T_05d___04d__02d__02d__02d:_02d:_02d._03d___s___04d_:
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0
call fcn.00402460
mov edi, eax
push 0x4a6560
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401ea0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401c60
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40dcb7
mov esi, dword [esi]
movzx eax, word [ebp - 0x21e]
push 0x5f
push str.Utils::RegOperator::RegDelnodeRecurse
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x224]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
call fcn.0040dab0
add esp, 0x30
lea ecx, [ebp - 0x260]
call fcn.00402590
lea ecx, [ebp - 0x278]
call fcn.00402590
mov eax, 1
jmp 0x40decd
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.Error_opening_key.
lea ecx, [ebp - 0x2a8]
call fcn.00402460
mov esi, eax
push str._P_05d__T_05d___04d__02d__02d__02d:_02d:_02d._03d___s___04d_:
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 2
call fcn.00402460
mov edi, eax
push 0x4a6560
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00401ea0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401c60
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40dd8b
mov esi, dword [esi]
movzx eax, word [ebp - 0x22e]
push 0x63
push str.Utils::RegOperator::RegDelnodeRecurse
push eax
movzx eax, word [ebp - 0x230]
push eax
movzx eax, word [ebp - 0x232]
push eax
movzx eax, word [ebp - 0x234]
push eax
movzx eax, word [ebp - 0x236]
push eax
movzx eax, word [ebp - 0x23a]
push eax
movzx eax, word [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
call fcn.0040dab0
add esp, 0x30
lea ecx, [ebp - 0x290]
call fcn.00402590
lea ecx, [ebp - 0x2a8]
call fcn.00402590
xor eax, eax
jmp 0x40decd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
lea edi, [esi + eax*2]
je 0x40de20
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x21c], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40deae
xor eax, eax
mov ecx, esi
mov word [edi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.0040db40
mov edx, esi
mov ecx, ebx
call fcn.0040dbf0
test eax, eax
je 0x40deae
lea eax, [ebp - 0x244]
mov dword [ebp - 0x21c], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40de57
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046756e
mov esp, ebp
pop ebp
ret