Function at 0x401e9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x278
lea ebp, [esp - 4]
mov eax, dword [0x427520]
xor eax, ebp
mov dword [ebp + 0x278], eax
push 0x14
mov eax, 0x41e6cb
call fcn.0040fd9e
mov ecx, dword [ebp + 0x2a0]
mov dword [ebp - 0x14], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
cmp dword [ebp + 0x298], ebx
jne 0x401f11
mov byte [ebp - 0x10], bl
push ebx
push 1
lea ecx, [ebp + 0x284]
call fcn.0040159b
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x278]
xor ecx, ebp
call fcn.0040f62a
add ebp, 0x27c
leave
ret
or esi, 0xffffffff
push esi
push ebx
call fcn.0040150b
push str..exe
lea ecx, [ebp + 0x284]
call fcn.00401d4a
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [ebp + 0x38]
call fcn.00401dae
push ebx
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x6c], 0xf
call fcn.004014ef
push esi
push ebx
lea eax, [ebp + 0x284]
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.00401783
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x401f69
lea eax, [ebp + 0x3c]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4020b4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x4020b7
cmp dword [ebp - 0x18], 1
je 0x401fc2
cmp dword [ebp - 0x18], 2
jne 0x4020b7
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x54]
call fcn.00401d67
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 0x10], 0x25
call fcn.004013cd
mov edi, eax
cmp edi, esi
jne 0x401ffe
mov ecx, dword [ebp - 0x14]
push esi
push ebx
lea eax, [ebp + 0x54]
push eax
call fcn.004018c6
mov byte [ebp - 0x10], 1
jmp 0x4020b7
push 1
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 0x10], 0x25
call fcn.004013cd
cmp eax, esi
je 0x4020b4
mov esi, eax
sub esi, edi
lea eax, [esi - 1]
push eax
lea eax, [edi + 1]
push eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.00401dd0
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 3
jae 0x402044
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x174]
push eax
call fcn.0040f680
lea eax, [ebp + 0x174]
push eax
call fcn.0040fee7
add esp, 0xc
push eax
lea ecx, [ebp]
call fcn.00401dae
mov byte [ebp - 4], 4
cmp dword [ebp + 0x14], ebx
je 0x402099
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
inc esi
push esi
push edi
lea ecx, [ebp + 0x54]
call fcn.004019ca
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x54]
push eax
call fcn.004018c6
mov byte [ebp - 0x10], 1
jmp 0x40209c
mov byte [ebp - 0x10], bl
push ebx
push 1
lea ecx, [ebp]
call fcn.0040159b
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040159b
jmp 0x4020b7
mov byte [ebp - 0x10], bl
push ebx
push 1
lea ecx, [ebp + 0x54]
call fcn.0040159b
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.0040159b
mov al, byte [ebp - 0x10]
mov byte [ebp - 0x10], al
jmp 0x401edd