Function at 0x41f230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499110
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push 0
push 0x400
mov byte [ebp - 0x41], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x800
call fcn.0040f230
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 4], 0
mov esi, dword [eax]
push dword [esi + 4]
push eax
call fcn.00420f40
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [eax + 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41f2ba
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
mov word [eax], cx
lea ecx, [ebp - 0x4c]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push str.ProductsInstalled
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub eax, 0
je 0x41f325
sub eax, 2
je 0x41f46e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push str.RegQueryValueEx_failed_with__i
push eax
call fcn.0041d400
add esp, 0xc
mov ecx, edi
push eax
call fcn.004093d0
lea ecx, [ebp - 0x28]
call fcn.004036b0
xor bl, bl
jmp 0x41f471
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
shr ecx, 1
cmp ecx, eax
ja 0x41f347
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x41f354
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.0040a490
sub esp, 8
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x108]
push eax
call fcn.004204d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
jne 0x41f463
nop dword [eax]
nop word [eax + eax]
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x108]
call fcn.004210a0
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x41f411
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
jb 0x41f3db
mov esi, ecx
lea edi, [ecx + eax*2]
jmp 0x41f3e1
lea edi, [edx + eax*2]
lea esi, [ebp - 0x28]
cmp esi, edi
je 0x41f411
movzx eax, word [esi]
push eax
call fcn.00478744
add esp, 4
test eax, eax
jne 0x41f3fe
add esi, 2
cmp esi, edi
jne 0x41f3e5
jmp 0x41f40e
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00420c60
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41f44c
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f442
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f4c5
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xfc], 0
je 0x41f390
lea ecx, [ebp - 0x108]
call fcn.0041f4d0
mov bl, byte [ebp - 0x41]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x41f4a7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41f49d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f4c5
push edx
push ecx
call fcn.0046e37b
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
int3