Function at 0x440670
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x504e20]
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x220], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4406da
xor al, al
jmp 0x440ab6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x23c], 0
call fcn.004980c0
add esp, 0xc
lea eax, [ebp - 0x22c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x440a9a
mov edi, 0x4c2c7c
shr edi, 0x10
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x244], edi
shr ebx, 0x10
mov esi, 0x4c2c7c
jmp 0x440760
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4407f9
lea eax, [ebp - 0x218]
movzx esi, ax
push ebx
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x4407a5
push esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00406900
mov esi, 0x4c2c7c
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
mov dword [ebp - 4], 1
mov dword [ebp - 0x230], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
test edi, edi
jne 0x440826
movzx esi, si
push edi
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x440838
push esi
push eax
lea ecx, [ebp - 0x224]
call fcn.00406900
jmp 0x440838
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440802
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00407df0
jmp 0x4407aa
push 0x15
push 0x4c2c7c
lea ecx, [ebp - 0x224]
call fcn.00407df0
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 4
call fcn.00429840
lea ecx, [ebp - 0x224]
push ecx
push eax
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 5
call fcn.00429840
add esp, 0x18
lea ecx, [ebp - 0x230]
push ecx
push 0x20019
push 0
push dword [eax]
push VariantInit
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x240]
add esi, 0xfffffff0
mov edi, eax
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4408c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4408ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x440910
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x440934
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4409ec
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5049f8]
mov ecx, 0x5049f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x218]
test ebx, ebx
jne 0x44098c
movzx esi, ax
push ebx
push esi
call fcn.00402da0
add esp, 8
test eax, eax
je 0x4409b2
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.00406900
jmp 0x4409b2
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440990
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
call fcn.00407df0
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 7
call fcn.0040a2e0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4409ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x23c]
inc edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x22c], 0x104
call fcn.00441200
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [0x506280]
mov esi, eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 2
jne 0x440a5a
push 4
call fcn.0049658d
mov ecx, dword [0x506280]
add esp, 4
mov dword [eax], ecx
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x440a81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x244]
test esi, esi
mov esi, 0x4c2c7c
je 0x440760
mov ebx, dword [ebp - 0x234]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
xor ecx, ecx
sar eax, 2
cmp ecx, eax
sbb eax, eax
neg 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.00496d64
mov esp, ebp
pop ebp
ret