Function at 0x40ef80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420600
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x42a42c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
lea ecx, [edi + 0x18]
mov dword [ebp - 0x18], 0x80004005
mov dword [ebp - 4], ebx
call fcn.0040e8d0
push 0x42226c
lea ecx, [ebp - 0x14]
call fcn.0040a2b0
xor esi, esi
mov dword [ebp - 0x38], ebx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f02b
mov eax, dword [edi + 0x48]
mov esi, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
call fcn.004016d0
cmp esi, ebx
je 0x40f022
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], ebx
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x421ed4
push VariantInit
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f23a
xor eax, eax
cmp esi, ebx
je 0x40f064
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ebx
cmp eax, ebx
jne 0x40f237
mov eax, dword [0x42b8d0]
mov edx, dword [eax + 0xc]
mov ecx, 0x42b8d0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xff
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
jmp 0x40f0a0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40f0bd
push edx
lea ecx, [ebp - 0x1c]
call fcn.004026e0
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push esi
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40f203
cmp eax, ebx
jne 0x40f1e9
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004113ca
add esp, 8
cmp eax, ebx
jl 0x40f1f9
cmp eax, dword [esi - 8]
jg 0x40f1f9
mov dword [esi - 0xc], eax
xor ecx, ecx
push 0x422268
lea edx, [ebp - 0x1c]
mov word [esi + eax*2], cx
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.0040e040
add esp, 0xc
mov edi, eax
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00408430
push eax
lea ecx, [ebp - 0x2c]
push edi
push ecx
call fcn.0040e040
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x28]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f1c7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x48]
mov edi, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ebx
call fcn.004016d0
xor ebx, ebx
cmp edi, ebx
je 0x40f1b6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x18], ebx
cmp edi, ebx
je 0x40f1c7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x40], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f1e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp - 0x24]
mov edx, 0xff
mov dword [ebp - 0x20], edx
jmp 0x40f0a0
push 0x80070057
call fcn.00401180
cmp edi, ebx
je 0x40f211
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], ebx
add esi, 0xfffffff0
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f237
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov esi, dword [ebp - 0x3c]
cmp esi, ebx
je 0x40f245
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], bl
cmp ecx, dword [0x429010]
je 0x40f273
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f273
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.00410a7b
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4