Function at 0x415e5b
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 8]
push ebp
push esi
push edi
push eax
push dword [0x5218bc]
mov ebp, ecx
push 0x80000001
mov esi, ebp
call ebx
test eax, eax
jne 0x41603d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x7070615b
mov edx, ebp
mov word [esp + 0x20], 0x5d
mov eax, ecx
xor edi, edi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x415eb2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea esi, [ebp + 5]
lea eax, [esp + 0x40]
mov word [esi], 0xa0d
push eax
add esi, 2
push 0
jmp 0x41600e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x415fe2
cmp eax, 2
jbe 0x415f67
cmp eax, 4
jne 0x415fe2
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0x5000]
add eax, 0xd
add eax, esi
cmp eax, ecx
ja 0x416231
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x415f27
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f38
sub ecx, edx
add esi, ecx
push 0xa
mov byte [esi], 0x3d
inc esi
push esi
push dword [esp + 0xb4]
call fcn.004b5885
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f5e
jmp 0x415fd6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 3
add eax, ecx
lea ecx, [ebp + 0x5000]
add eax, esi
cmp eax, ecx
ja 0x416231
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x415f8e
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f9f
sub ecx, edx
add esi, ecx
lea ecx, [esp + 0xac]
mov eax, ecx
mov byte [esi], 0x3d
inc esi
mov edx, esi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x415fbb
lea ecx, [esp + 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415fcf
sub ecx, edx
add esi, ecx
mov word [esi], 0xa0d
add esi, 2
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
lea eax, [esp + 0xb0]
mov byte [esp + 0x30], cl
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0xb4], cl
push eax
push ecx
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x80
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x415eec
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4e8940
push 0xf475e66f
mov edx, 0x58efd81b
mov ecx, 0x5cb18cae
call fcn.004015a1
pop ecx
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xb0]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x416231
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x7379735b
xor ebx, ebx
mov word [esp + 0x28], 0x5d
lea edx, [esi + 2]
mov word [esi], 0xa0d
mov eax, ecx
mov edi, ebx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4160a8
lea eax, [esp + 0x1c]
mov word [esi + 7], 0xa0d
push eax
lea eax, [esp + 0xb0]
add esi, 9
push eax
lea eax, [esp + 0x20]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x416206
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4161da
cmp eax, 2
jbe 0x41615f
cmp eax, 4
jne 0x4161da
mov eax, dword [esp + 0x10]
lea ecx, [ebp + 0x5000]
add eax, 0xd
add eax, esi
cmp eax, ecx
ja 0x416231
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x41611f
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416130
sub ecx, edx
add esi, ecx
push 0xa
mov byte [esi], 0x3d
inc esi
push esi
push dword [esp + 0xb4]
call fcn.004b5885
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416156
jmp 0x4161ce
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 3
add eax, ecx
lea ecx, [ebp + 0x5000]
add eax, esi
cmp eax, ecx
ja 0x416231
lea ecx, [esp + 0x2c]
mov edx, esi
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x416186
lea ecx, [esp + 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416197
sub ecx, edx
add esi, ecx
lea ecx, [esp + 0xac]
mov eax, ecx
mov byte [esi], 0x3d
inc esi
mov edx, esi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4161b3
lea ecx, [esp + 0xac]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4161c7
sub ecx, edx
add esi, ecx
mov word [esi], 0xa0d
add esi, 2
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
lea eax, [esp + 0xb0]
mov byte [esp + 0x30], cl
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0xb4], cl
push eax
push ecx
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x80
mov dword [esp + 0x3c], 0x104
call ebx
cmp eax, 0x103
jne 0x4160e4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1b0]
sub esi, ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x1a4
ret