Function at 0x412270
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x468604
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x47e378]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e378]
xor eax, esp
push eax
lea eax, [esp + 0x2a4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2d0]
mov dword [esp + 0x24], edi
xor ebp, ebp
xor bl, bl
cmp dword [esp + 0x2c8], ebp
mov dword [esp + 0x2ac], ebp
jne 0x4122eb
cmp dword [esp + 0x2cc], 0x10
jb 0x4122e4
mov eax, dword [esp + 0x2b8]
push eax
call fcn.0045389c
add esp, 4
xor al, al
jmp 0x412561
push 0xffffffffffffffff
push ebp
mov ecx, edi
call fcn.00401440
push 4
push 0x46cab0
lea ecx, [esp + 0x2bc]
call fcn.00401aa0
push 0x34
mov esi, 0xf
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebp
mov byte [esp + 0x50], 0
call fcn.00401860
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x2bc]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b8], 2
call fcn.00401930
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x412362
lea eax, [esp + 0x48]
lea edx, [esp + 0x18]
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4124fa
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
jne 0x4124fc
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x4123c9
cmp eax, 2
jne 0x4124fc
lea eax, [esp + 0x98]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4123d3
sub eax, edx
push eax
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x30]
call fcn.00401860
push 1
push ebp
lea eax, [esp + 0x1c]
mov bl, 0x25
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], bl
call fcn.00401350
mov esi, eax
cmp esi, 0xffffffff
lea ecx, [esp + 0x28]
jne 0x412423
push eax
push ebp
push ecx
mov ecx, edi
call fcn.00401780
mov bl, 1
jmp 0x4124fc
push 1
lea edi, [esi + 1]
push edi
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x20], bl
call fcn.00401350
cmp eax, 0xffffffff
je 0x4124fa
mov ebp, eax
sub ebp, esi
lea eax, [ebp - 1]
push eax
push edi
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x34]
call fcn.00401bd0
cmp dword [esp + 0x78], 0x10
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x2ac], 3
jae 0x41246e
lea ecx, [esp + 0x64]
lea edx, [esp + 0x19c]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x412475
lea edx, [esp + 0x19c]
push edx
call fcn.00454898
add esp, 4
push eax
lea ecx, [esp + 0x80]
call fcn.00401b90
cmp dword [esp + 0x90], 0
mov byte [esp + 0x2ac], 4
je 0x4124e2
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x84]
push eax
add ebp, 1
push ebp
push esi
lea ecx, [esp + 0x3c]
call fcn.00411760
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00401780
mov bl, 1
jmp 0x4124e4
xor bl, bl
lea ecx, [esp + 0x7c]
call fcn.00401640
lea ecx, [esp + 0x60]
call fcn.00401640
xor ebp, ebp
jmp 0x4124fc
xor bl, bl
mov esi, 0x10
cmp dword [esp + 0x40], esi
jb 0x412514
mov edx, dword [esp + 0x2c]
push edx
call fcn.0045389c
add esp, 4
cmp dword [esp + 0x5c], esi
mov edi, 0xf
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x2c], 0
jb 0x412539
mov eax, dword [esp + 0x48]
push eax
call fcn.0045389c
add esp, 4
cmp dword [esp + 0x2cc], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov byte [esp + 0x48], 0
jb 0x41255f
mov ecx, dword [esp + 0x2b8]
push ecx
call fcn.0045389c
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28c]
xor ecx, esp
call fcn.00454162
add esp, 0x29c
ret