Function at 0x40241d
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x630]
sub esp, 0x6b0
mov eax, dword [0x419050]
xor eax, ebp
mov dword [ebp + 0x62c], eax
mov eax, dword [ebp + 0x638]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x640]
push ebx
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 0x648]
push ebx
push ebx
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], ebx
mov edi, 0x104
push eax
jmp 0x402648
lea eax, [ebp - 0x50]
push eax
xor esi, esi
inc esi
push esi
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402636
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x5dc]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x50]
mov dword [ebp - 0x80], 0x28
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402625
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp + 0x5dc]
push eax
mov eax, dword [ebp + 0x63c]
call fcn.0040238d
test eax, eax
pop ecx
je 0x402625
mov eax, dword [ebp + 0x644]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x74]
mov ecx, esi
lea eax, [ecx + eax*8]
mov dword [ebp - 0x78], eax
cmp esi, dword [ebp - 0x78]
jae 0x40256b
push dword [esi]
mov dword [ebp - 0x5c], 0x105
call fcn.00402343
push dword [esi + 4]
mov dword [ebp - 0x6c], eax
call fcn.00402343
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40254e
push dword [ebp - 0x64]
lea eax, [ebp + 0x3d0]
push eax
call fcn.00404be8
test eax, eax
pop ecx
pop ecx
je 0x402551
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0x64]
call fcn.00403173
push dword [ebp - 0x6c]
call fcn.00403173
pop ecx
add esi, 8
cmp dword [ebp - 0x4c], ebx
pop ecx
jne 0x4024f6
cmp dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], 0x20a
je 0x4025f0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push str.GreHome
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402622
cmp word [ebp + 0x3d0], bx
je 0x402622
mov eax, dword [ebp - 0x60]
dec eax
je 0x4025ca
dec eax
jne 0x402622
push edi
lea eax, [ebp + 0x1c4]
push eax
lea eax, [ebp + 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
ja 0x402622
jmp 0x4025f0
lea eax, [ebp + 0x3d0]
push eax
call fcn.0040315d
cmp eax, edi
pop ecx
jae 0x402622
lea eax, [ebp + 0x3d0]
push eax
lea eax, [ebp + 0x1c4]
push eax
call fcn.00404af4
pop ecx
pop ecx
push dword [ebp + 0x64c]
lea eax, [ebp + 0x1c4]
push str.xpcom.dll
push eax
call fcn.00404bab
add esp, 0xc
test eax, eax
je 0x402622
lea eax, [ebp + 0x1c4]
push 4
push eax
call fcn.00404b97
test eax, eax
pop ecx
pop ecx
je 0x402625
mov dword [ebp - 0x4c], ebx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], ebx
jne 0x402662
inc dword [ebp - 0x54]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x68]
mov dword [ebp - 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402476
mov eax, dword [ebp - 0x70]
mov byte [eax], bl
xor eax, eax
jmp 0x402685
push ebx
push ebx
push dword [ebp + 0x64c]
lea eax, [ebp + 0x1c4]
push dword [ebp - 0x70]
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x62c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403244
add ebp, 0x630
leave
ret