Function at 0x407df0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x920
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0x91c], eax
mov eax, dword [esp + 0x924]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, 0x4235a0
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
lea ebx, [ebx]
mov edx, dword [edi - 4]
mov eax, dword [edi - 8]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x408024
mov esi, dword [edi]
mov ecx, esi
mov eax, str._ALLVALUES_
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407e78
cmp dl, bl
je 0x407e74
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407e78
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x407e58
xor eax, eax
jmp 0x407e7d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407f25
mov ecx, esi
mov eax, str._ALLVALUENAMES_
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407eb0
cmp dl, bl
je 0x407eac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407eb0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x407e90
xor eax, eax
jmp 0x407eb5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x407f25
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x530]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408024
lea edx, [esp + 0x12c]
push edx
lea ecx, [esp + 0x530]
call fcn.00407380
add esp, 4
test eax, eax
je 0x408024
mov edi, dword [esp + 0x20]
push 1
lea esi, [esp + 0x130]
call fcn.00407460
mov edi, dword [esp + 0x20]
add esp, 4
jmp 0x408024
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x530]
push ecx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
xor ebp, ebp
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x408024
jmp 0x407f70
mov ecx, dword [edi]
mov eax, str._ALLVALUES_
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407f97
cmp dl, bl
je 0x407f93
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407f97
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x407f77
xor eax, eax
jmp 0x407f9c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x407fb1
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x530]
jmp 0x407fbd
lea ecx, [esp + 0x12c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00407380
add esp, 4
test eax, eax
je 0x407fe2
mov edi, dword [esp + 0x20]
push 1
lea esi, [esp + 0x130]
call fcn.00407460
mov edi, dword [esp + 0x20]
add esp, 4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x530]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
inc ebp
push ebp
push ecx
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x407f70
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x408033
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xc
cmp edi, 0x423600
mov dword [esp + 0x1c], edi
jl 0x407e30
mov ecx, dword [esp + 0x92c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00409279
add esp, 0x920
ret