Function at 0x4316c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca976
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x524ee0]
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 eax, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
mov eax, dword [0x524ab0]
xor ebx, ebx
cmp byte [0x526b68], bl
mov ecx, 0x524ab0
sete bl
mov dword [ebp - 4], 0
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
or edi, 0xffffffff
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 1
je 0x43179e
cmp byte [0x52024c], 0
jne 0x43179e
mov eax, dword [0x526ce0]
cmp dword [eax - 0xc], 0
jne 0x43174d
mov ebx, SysReAllocStringLen
jmp 0x43179e
push 0x4dfbc0
lea eax, [ebp - 0x814]
push 0x526ce0
push eax
mov ebx, VariantInit
call fcn.0040b6c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 2
call fcn.00402ab0
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43179e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
mov byte [ebp - 4], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, str.Software_
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x431807
movzx esi, ax
push 0
push esi
call fcn.00403b10
add esp, 8
test eax, eax
je 0x431817
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.004074c0
jmp 0x431817
push str.Software_
lea ecx, [ebp - 0x814]
call fcn.0040b3b0
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 5
call fcn.0040b600
push 0x526ce4
push eax
lea eax, [ebp - 0x834]
push eax
mov byte [ebp - 4], 6
call fcn.0040b600
push 0x4dfbc0
push eax
lea eax, [ebp - 0x830]
push eax
mov byte [ebp - 4], 7
call fcn.0040b6c0
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x83c]
push eax
mov byte [ebp - 4], 8
call fcn.0040b600
add esp, 0x30
lea ecx, [ebp - 0x82c]
push 1
push dword [eax]
push ebx
call fcn.0040bf00
mov edx, dword [ebp - 0x83c]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4318ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x830]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4318d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x834]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4318f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431916
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431939
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x43194a
mov eax, dword [ebp - 0x82c]
xor bl, bl
jmp 0x431b36
call fcn.00433890
test al, al
jne 0x43195d
call fcn.004a96f9
mov dword [0x526340], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x820], 0x400
call fcn.004a9c90
mov eax, dword [ebp - 0x82c]
add esp, 0xc
xor esi, esi
or ebx, 0xffffffff
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x820]
push ecx
lea ecx, [ebp - 0x810]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
mov eax, dword [0x526340]
imul eax, eax
cdq
mov ecx, 0x15
idiv ecx
inc esi
mov dword [ebp - 0x81c], esi
cmp edx, 0xc
jne 0x4319ec
lea eax, [ecx + 0x5b]
mov esi, 0x82
test esi, esi
je 0x4319e5
cdq
idiv esi
mov ecx, esi
mov eax, ecx
mov esi, edx
test ecx, ecx
jne 0x4319d4
add eax, esi
mov dword [0x526340], eax
test edi, edi
je 0x4319fc
cmp edi, 0x103
jne 0x431af5
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 9
test eax, 0xffff0000
jne 0x431a44
movzx esi, ax
push 0
push esi
call fcn.00403b10
add esp, 8
test eax, eax
je 0x431a69
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.004074c0
jmp 0x431a69
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431a47
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00409670
mov eax, dword [0x526340]
imul eax, eax
cdq
mov ecx, 0xd
idiv ecx
mov byte [ebp - 4], 0xa
cmp edx, 7
jne 0x431a94
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [ebp - 0x814]
cmp dword [eax - 0xc], 0
je 0x431ab2
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x814]
push eax
call fcn.0042baf0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x820], 0x400
call fcn.004a9c90
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431af5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004338e0
test al, al
jne 0x431b10
push 4
call fcn.004a834d
mov ecx, dword [0x526340]
add esp, 4
mov dword [eax], ecx
mov eax, dword [ebp - 0x82c]
mov esi, dword [ebp - 0x81c]
test edi, edi
je 0x431990
test eax, eax
je 0x431b31
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov bl, 1
or edi, 0xffffffff
test eax, eax
je 0x431b41
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x431b64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x431b85
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.004a8b24
mov esp, ebp
pop ebp
ret