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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4bfb90
push eax
mov dword fs:[0], esp
sub esp, 0x85c
cmp dword [ebp + 0x10], 1
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
push 0x4dc690
mov edx, str._Temp__
lea ecx, [ebp - 0x58]
jne 0x416a10
call fcn.00405bc0
add esp, 4
push str._Files_Information.txt
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x416975
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x464]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x4169c2
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4169b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416c10
push edx
push ecx
call fcn.004a24e6
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
cmp edx, 8
jb 0x416a93
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416a89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416c10
jmp 0x416a89
call fcn.00405bc0
add esp, 4
push str._files__system_info.txt
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00405d20
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x416a39
mov eax, dword [eax]
push 0x208
lea ecx, [ebp - 0x464]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x4169c2
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4169b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416c10
jmp 0x4169b8
push edx
push ecx
call fcn.004a24e6
add esp, 8
lea eax, [ebp + 0x10]
mov dword [ebp - 0x18], pe_nt_image_headers32
push eax
push 0x20119
xor edi, edi
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416bfd
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x25c]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, 0x103
je 0x416be5
test eax, eax
jne 0x416bfd
lea eax, [ebp - 0x464]
push str.a_ccsUTF_16LE
push eax
call fcn.004a9b59
mov esi, eax
add esp, 8
test esi, esi
je 0x416bbd
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416bfd
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x200
push eax
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416b68
lea eax, [ebp - 0x664]
push eax
push str._wS
push esi
call fcn.0040edd0
add esp, 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x200
push eax
lea eax, [ebp - 0x864]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416ba7
lea eax, [ebp - 0x864]
push eax
push str.____wS___n
push esi
call fcn.0040edd0
add esp, 0xc
push esi
call fcn.004a5e1b
add esp, 4
push dword [ebp - 0x14]
call ebx
inc edi
mov dword [ebp - 0x18], pe_nt_image_headers32
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x25c]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x416ae0
push dword [ebp + 0x10]
call ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a9d47
int3