Function at 0x40d620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a800
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x567680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or edi, 0xffffffff
cmp dword [0x568b50], 0
mov dword [ebp - 4], 1
je 0x40d79e
cmp dword [0x568b54], 0
je 0x40d79e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004026d0
mov edx, dword [ebp - 0x20]
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 0x40d6ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00422880
push dword [ebp - 0x18]
lea ecx, [ebp + 8]
call fcn.004027d0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004026d0
mov edx, dword [ebp - 0x20]
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 0x40d727
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00422880
push dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.004027d0
mov edx, dword [ebp - 0x14]
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 0x40d77e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
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 0x40d79e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
xor ebx, ebx
cmp byte [0x568b58], bl
mov ecx, 0x5671f0
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 6
je 0x40d82f
cmp byte [0x56203c], 0
jne 0x40d82f
mov eax, dword [0x568bc0]
cmp dword [eax - 0xc], 0
jne 0x40d7e7
mov ebx, SysReAllocStringLen
jmp 0x40d82f
push 0x51a434
lea eax, [ebp - 0x20]
push 0x568bc0
push eax
mov ebx, SysReAllocStringLen
call fcn.00402b60
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.004026d0
mov edx, dword [ebp - 0x20]
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 0x40d82f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
mov byte [ebp - 4], 8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.Software_
mov byte [ebp - 4], 9
test eax, 0xffff0000
jne 0x40d889
movzx esi, ax
push 0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x40d896
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004082e0
jmp 0x40d896
push str.Software_
lea ecx, [ebp - 0x14]
call fcn.004027d0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402aa0
push 0x568b98
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
call fcn.00402aa0
push 0x51a434
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xc
call fcn.00402b60
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402aa0
add esp, 0x30
lea ecx, [ebp - 0x38]
push 0x20019
push dword [eax]
push ebx
call fcn.0040e350
mov edx, dword [ebp - 0x20]
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 0x40d917
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d937
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d957
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d977
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d997
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40d9b5
call fcn.0040fe30
mov esi, dword [ebp - 0x38]
test al, al
jne 0x40da0e
dec dword [0x568b5c]
jmp 0x40da0e
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
push esi
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40da05
cmp dword [ebp - 0x28], 4
jne 0x40da05
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40d9f7
push esi
call ebx
xor esi, esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov byte [ebp - 0xd], 1
jmp 0x40da12
test esi, esi
je 0x40da0e
push esi
call ebx
xor esi, esi
mov byte [ebp - 0xd], 0
test esi, esi
je 0x40da19
push esi
call ebx
mov edx, dword [ebp - 0x18]
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 0x40da39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
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 0x40da59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40da7a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret