Function at 0x40b8a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a1d2
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x449570]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
mov eax, dword [0x449570]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x34]
call fcn.00406b10
cmp dword [esi + 0x14], 8
mov edx, dword [esi + 0x10]
jb 0x40b8f5
mov esi, dword [esi]
push edx
push ecx
push esi
mov ecx, eax
call fcn.0040f510
cmp eax, 0xffffffff
setne al
mov byte [ebx + 0x94], al
push 0xb
xor eax, eax
push str.ProductName
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], 1
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00404220
xor eax, eax
mov dword [esp + 0x4c0], 0
xor ecx, ecx
cmp word [str.SOFTWARE_nuragoGacela2Config], cx
mov word [esp + 0x38], ax
mov eax, 0x1e
cmove eax, ecx
push eax
push str.SOFTWARE_nuragoGacela2Config
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
call fcn.00404220
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x98]
mov byte [esp + 0x4c4], 1
call fcn.00415050
add esp, 4
cmp dword [esp + 0x4c], 8
jb 0x40b9ac
push dword [esp + 0x38]
call fcn.0041df62
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov byte [esp + 0x4c0], 4
cmp dword [esp + 0x28], 8
jb 0x40b9de
push dword [esp + 0x14]
call fcn.0041df62
add esp, 4
xor eax, eax
lea ecx, [esp + 0x7c]
mov word [esp + 0x14], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call dword [eax + 4]
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerExtensions
mov byte [esp + 0x4d0], 5
push 0x80000002
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bda0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ecx]
xor eax, eax
push 0x1fc
push eax
mov word [esp + 0xb4], ax
lea eax, [esp + 0xb6]
push eax
call fcn.004219e0
add esp, 0xc
lea eax, [esp + 0x6c]
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xc0]
push eax
push esi
push dword [esp + 0x48]
mov dword [esp + 0x8c], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40bbfb
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
push 0x17
push str.SOFTWAREClassesCLSID_
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c8], 6
call fcn.00411b00
cmp word [esp + 0xac], 0
jne 0x40bacf
xor ecx, ecx
jmp 0x40baef
lea ecx, [esp + 0xac]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bae0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x40]
call fcn.00411b00
cmp dword [esp + 0x4c], 8
lea ecx, [esp + 0x34]
push ecx
push 0x20019
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbda
push 0x1fc
push eax
mov word [esp + 0x2b4], ax
lea eax, [esp + 0x2b6]
push eax
mov dword [esp + 0x7c], 4
call fcn.004219e0
add esp, 0xc
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x2b0]
push eax
lea eax, [esp + 0x78]
push eax
push 0
push 0x441e88
push dword [esp + 0x48]
mov dword [esp + 0x8c], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bbd4
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x94]
cmovae eax, dword [esp + 0x94]
lea ecx, [esp + 0x2ac]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40bbcb
test dx, dx
je 0x40bbc7
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40bbcb
add ecx, 4
add eax, 4
test dx, dx
jne 0x40bba5
xor eax, eax
jmp 0x40bbd0
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bc0c
push dword [esp + 0x34]
call edi
mov byte [esp + 0x4c0], 5
cmp dword [esp + 0x4c], 8
jb 0x40bc06
push dword [esp + 0x38]
call fcn.0041df62
add esp, 4
inc esi
jmp 0x40ba40
cmp eax, 0x103
je 0x40bd94
inc esi
jmp 0x40ba40
xor eax, eax
push 0xffffffffffffffff
push eax
push 0x44af4c
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
call fcn.00403ba0
push 0x35
push str.SOFTWAREMicrosoftWindowsCurrentVersionExtStats_
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c8], 7
call fcn.00411b00
cmp word [esp + 0xac], 0
jne 0x40bc5b
xor ecx, ecx
jmp 0x40bc74
lea ecx, [esp + 0xac]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc65
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x58]
call fcn.00411b00
cmp dword [esp + 0x64], 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x30]
push ecx
push 0x20019
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push 0
push eax
push 0x80000003
mov dword [esp + 0x44], 0
call esi
test eax, eax
jne 0x40bd57
push 0xffffffffffffffff
push eax
push 0x44af4c
lea ecx, [esp + 0x5c]
mov word [ebx + 0x96], 0x101
call fcn.00403ba0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExtSettings_
lea ecx, [esp + 0x54]
call fcn.0040c990
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x54]
call fcn.0040c990
cmp dword [esp + 0x64], 8
lea ecx, [esp + 0x30]
push ecx
push 0x20019
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push 0
push eax
push 0x80000003
call esi
test eax, eax
jne 0x40bd57
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push str.Flags
push dword [esp + 0x44]
mov dword [esp + 0x80], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bd57
test byte [esp + 0x78], 3
sete al
mov byte [ebx + 0x97], al
cmp dword [esp + 0x64], 8
jb 0x40bd6a
push dword [esp + 0x50]
call fcn.0041df62
add esp, 4
xor eax, eax
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x40bd94
push dword [esp + 0x38]
call fcn.0041df62
add esp, 4
push dword [esp + 0x2c]
call edi
mov bl, byte [esp + 0x13]
jmp 0x40bda2
xor bl, bl
cmp dword [esp + 0x90], 8
jb 0x40bdb8
push dword [esp + 0x7c]
call fcn.0041df62
add esp, 4
xor eax, eax
cmp dword [esp + 0xa8], 8
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], ax
jb 0x40bdee
push dword [esp + 0x94]
call fcn.0041df62
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret