Function at 0x401ae1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x11dc
call fcn.00402ab0
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x11b0], edx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x11b8], eax
mov dword [ebp - 0x11dc], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401b1f
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x12]
mov ecx, 0x104
cmp eax, ecx
jb 0x401b41
xor eax, eax
jmp 0x401d5d
push dword [ebp + 8]
mov edx, ecx
lea ecx, [ebp - 0x20c]
call fcn.004016c0
push 0x401290
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.004016f5
lea eax, [ebp - 0x11bc]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d5b
mov ecx, dword [ebp - 0x11b8]
mov edx, 0x104
mov esi, dword [ebp - 0x11bc]
push 0x4012c0
call fcn.004016c0
push 0x4012c0
mov edx, 0x104
mov ecx, edi
call fcn.004016c0
lea eax, [ebp - 0x11c4]
mov dword [ebp - 0x11c4], 0x7d0
push eax
lea eax, [ebp - 0x9dc]
push eax
lea eax, [ebp - 0x11b4]
push eax
push ebx
push ebx
push dword [ebp - 0x11bc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d50
push 0x4012d0
mov edx, 0x3e8
mov word [ebp - 0x20e], ax
lea ecx, [ebp - 0x9dc]
call fcn.004016f5
lea eax, [ebp - 0x11c8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x9dc]
push eax
push dword [ebp - 0x11b0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x11c8]
lea eax, [ebp - 0x11cc]
push eax
lea eax, [ebp - 0x11ac]
mov dword [ebp - 0x11cc], 0x7d0
push eax
lea eax, [ebp - 0x11b4]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d45
cmp dword [ebp - 0x11b4], 1
jne 0x401d45
mov word [ebp - 0x9de], ax
lea eax, [ebp - 0x11c0]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x11ac]
push eax
push dword [ebp - 0x11b0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d45
mov eax, dword [ebp - 0x11c0]
lea ecx, [ebp - 0x11d0]
push ecx
push dword [ebp - 0x11b8]
lea ecx, [ebp - 0x11b4]
mov dword [ebp - 0x11b0], eax
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 0x11d0], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x11d4]
push eax
push 0x20019
push ebx
push 0x401358
push dword [ebp - 0x11c0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401d34
mov eax, dword [ebp - 0x11d4]
lea ecx, [ebp - 0x11d8]
push ecx
push dword [ebp - 0x11dc]
lea ecx, [ebp - 0x11b4]
mov dword [ebp - 0x11b8], eax
push ecx
push ebx
push ebx
push eax
mov dword [ebp - 0x11d8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x11b8]
xor ebx, ebx
inc ebx
test eax, eax
je 0x401d34
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11b0]
test eax, eax
je 0x401d45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x401d50
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401d5b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402590
leave
ret 0xc