Function at 0x415a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x274]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x20a
push 0
push eax
call fcn.00411960
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x27c], 0
push 0
push eax
call fcn.00411960
add esp, 0x18
test esi, esi
je 0x415c76
test ebx, ebx
je 0x415c76
test edi, edi
je 0x415c7e
mov eax, dword [edi]
mov dword [ebp - 0x280], eax
test eax, eax
je 0x415c7a
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0x4a0bf8
call fcn.0041e5a0
add esp, 0xc
test eax, eax
jne 0x415acd
push 0x4a0c98
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
push 0x4a0cd0
push 0x4a0ce0
lea eax, [ebp - 0x274]
push 0x105
push eax
call fcn.00419510
add esp, 0x14
lea eax, [ebp - 0x278]
push eax
push 1
push 0
lea eax, [ebp - 0x274]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415c45
mov eax, dword [edi]
push edi
add eax, eax
push ebx
mov dword [edi], eax
lea eax, [ebp - 0x27c]
push eax
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x278]
shr dword [edi], 1
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x415c54
cmp dword [ebp - 0x27c], 1
je 0x415b75
push 0x4a0d98
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
cmp eax, 2
jae 0x415b9f
push eax
push 0x4a0dd4
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
cmp word [ebx + eax*2 - 2], 0
je 0x415bc9
push 0x4a0e10
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
cmp word [ebx + eax*2 - 4], 0x5c
je 0x415bfe
cmp eax, dword [ebp - 0x280]
jae 0x415c23
push 0x4a0e60
push 0x20
call fcn.00446b80
mov eax, dword [edi]
mov ecx, 0x5c
add esp, 8
mov word [ebx + eax*2 - 2], cx
xor ecx, ecx
mov eax, dword [edi]
mov word [ebx + eax*2], cx
inc dword [edi]
push 0x4a0ee8
push 0x10
call fcn.00446b80
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0x4a0e98
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0x4a0d00
push 4
call fcn.00446b80
add esp, 8
push 0x4a0d48
push 4
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x415c7e
mov eax, dword [edi]
jmp 0x415c80
xor eax, eax
push eax
push edi
push ebx
push esi
push 0x4a0c48
push 1
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret