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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbe50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7dbc
call fcn.004f2630
push ebx
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xcc], 0x94
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xbc]
mov edi, 2
cmp eax, edi
jne 0x4ae984
mov eax, dword [ebp - 0xc8]
mov esi, 5
cmp eax, esi
jae 0x4ae8a9
push str.This_os_is_nt_4.0_for_server_or_workstation_version::
mov ecx, 0xf558a0
call fcn.004f0087
mov ecx, dword [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwMajorVersion::
mov ecx, 0xf558a0
call fcn.004f0087
mov edx, dword [ebp - 0xc8]
mov ecx, eax
push edx
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwMinorVersion::
mov ecx, 0xf558a0
call fcn.004f0087
mov ecx, dword [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwBuildNumber::
mov ecx, 0xf558a0
call fcn.004f0087
mov edx, dword [ebp - 0xc0]
mov ecx, eax
push edx
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x28], 1
cmp eax, edi
jne 0x4ae984
cmp dword [ebp - 0xc8], esi
jb 0x4aecea
push str.This_os_is_above__win2000_version::
mov ecx, 0xf558a0
call fcn.004f0087
mov ecx, dword [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwMajorVersion::
mov ecx, 0xf558a0
call fcn.004f0087
mov edx, dword [ebp - 0xc8]
mov ecx, eax
push edx
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwMinorVersion::
mov ecx, 0xf558a0
call fcn.004f0087
mov ecx, dword [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwBuildNumber::
mov ecx, 0xf558a0
call fcn.004f0087
mov edx, dword [ebp - 0xc0]
mov ecx, eax
push edx
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov eax, dword [ebp - 0xbc]
mov ebx, 1
cmp eax, edi
je 0x4aea4e
push str.ThisdwMajorVersion_os_is_before_win9X_vesion::
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwMajorVersion::
mov ecx, 0xf558a0
call fcn.004f0087
mov ecx, dword [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwMinorVersion::
mov ecx, 0xf558a0
call fcn.004f0087
mov edx, dword [ebp - 0xc4]
mov ecx, eax
push edx
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.dwBuildNumber::
mov ecx, 0xf558a0
call fcn.004f0087
mov ecx, dword [ebp - 0xc0]
push ecx
mov ecx, eax
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
cmp ebx, 1
mov dword [ebp - 0x24], 1
jne 0x4aecdb
push 0x40
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x14], eax
push 0x100
call fcn.004f266a
add esp, 4
lea edx, [ebp - 0x18]
xor ebx, ebx
mov edi, eax
push edx
push 8
push ebx
push 0xc30c0c
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aec1e
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push 0
push eax
push edi
push ebx
push ecx
mov dword [ebp - 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x4aebff
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push 8
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aebf5
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
push eax
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionExplorer_
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aebeb
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
push ecx
push edx
push 0
push str.Logon_User_Name
push eax
mov dword [ebp - 0x30], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aebeb
mov edi, dword [ebp - 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, dword [ebp + 8]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebx]
mov edi, dword [ebp - 0x2c]
or ecx, 0xffffffff
xor eax, eax
add edx, 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
add ecx, 0x100
push ecx
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x20]
push eax
call esi
mov ecx, dword [ebp - 0x18]
push ecx
call esi
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp esi, 0x103
jne 0x4aea95
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
jmp 0x4aecb7
mov edi, str.NO_LOGIN
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebx]
mov edi, str..DEFAULT
or ecx, 0xffffffff
xor eax, eax
add edx, 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
add ecx, 0x100
push ecx
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call fcn.004f265f
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.004f265f
add esp, 4
jmp 0x4aecde
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x28], 1
jne 0x4aee1b
jmp 0x4aeced
mov ebx, dword [ebp + 8]
lea edx, [ebp + 8]
lea eax, [ebp - 0x3f4c]
push edx
push eax
mov dword [ebp + 8], 0
call fcn.004af030
mov eax, dword [ebp + 8]
add esp, 8
cmp eax, 1
jle 0x4aed85
shl eax, 6
lea ecx, [ebp + eax - 0x3f8c]
push ecx
call fcn.004fa6c0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp + 8]
shl ecx, 6
lea edx, [ebp + ecx - 0x3f8c]
push edx
call fcn.004fa6c0
mov edx, dword [ebx]
add esp, 4
add edx, 0x100
mov edi, eax
jmp 0x4aedd6
mov edi, str..DEFAULT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebx]
mov edi, str..DEFAULT
add edx, 0x100
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
add ecx, 0x100
push ecx
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
cmp dword [ebp - 0x24], 1
jne 0x4aebd6
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x7dcc]
push edx
push eax
mov dword [ebp - 0x14], 0
call fcn.004af030
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 1
jle 0x4aef6b
shl eax, 6
lea ecx, [ebp + eax - 0x7e0c]
push ecx
call fcn.004fa6c0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp - 0x14]
shl ecx, 6
lea edx, [ebp + ecx - 0x7e0c]
push edx
call fcn.004fa6c0
mov edx, dword [ebx]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
add edx, 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
add ecx, 0x100
push ecx
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebx]
push str.software
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4aebd6
mov edi, str..DEFAULT
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx]
mov edi, str..DEFAULT
or ecx, 0xffffffff
add edx, 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4aebd6
mov edi, str..DEFAULT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebx]
mov edi, str..DEFAULT
or ecx, 0xffffffff
xor eax, eax
add edx, 0x100
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
add ecx, 0x100
push ecx
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
jmp 0x4aebd6