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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bcd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc0
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 - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xbc]
mov edi, 2
cmp eax, edi
jne 0x40244f
mov eax, dword [ebp - 0xc8]
mov esi, 5
cmp eax, esi
jae 0x402374
push str.This_os_is_nt_4.0_for_server_or_workstation_version::
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, dword [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwMajorVersion::
mov ecx, 0x42f778
call fcn.00403bf1
mov edx, dword [ebp - 0xc8]
mov ecx, eax
push edx
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwMinorVersion::
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, dword [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwBuildNumber::
mov ecx, 0x42f778
call fcn.00403bf1
mov edx, dword [ebp - 0xc0]
mov ecx, eax
push edx
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x24], 1
cmp eax, edi
jne 0x40244f
cmp dword [ebp - 0xc8], esi
jb 0x40278d
push str.This_os_is_above__win2000_version::
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, dword [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwMajorVersion::
mov ecx, 0x42f778
call fcn.00403bf1
mov edx, dword [ebp - 0xc8]
mov ecx, eax
push edx
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwMinorVersion::
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, dword [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwBuildNumber::
mov ecx, 0x42f778
call fcn.00403bf1
mov edx, dword [ebp - 0xc0]
mov ecx, eax
push edx
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov eax, dword [ebp - 0xbc]
mov ebx, 1
cmp eax, edi
je 0x402519
push str.ThisdwMajorVersion_os_is_before_win9X_vesion::
mov ecx, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwMajorVersion::
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, dword [ebp - 0xc8]
push ecx
mov ecx, eax
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwMinorVersion::
mov ecx, 0x42f778
call fcn.00403bf1
mov edx, dword [ebp - 0xc4]
mov ecx, eax
push edx
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
push str.dwBuildNumber::
mov ecx, 0x42f778
call fcn.00403bf1
mov ecx, dword [ebp - 0xc0]
push ecx
mov ecx, eax
call fcn.00404073
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
cmp ebx, 1
mov dword [ebp - 0x28], 1
jne 0x40277e
push 0x40
call fcn.004058db
add esp, 4
mov dword [ebp - 0x14], eax
push 0x100
call fcn.004058db
add esp, 4
lea edx, [ebp - 0x18]
xor ebx, ebx
mov edi, eax
push edx
push 8
push ebx
push 0x42f220
push reloc.WSOCK32.dll_closesocket
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026cb
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push 0
push eax
push edi
push ebx
push ecx
mov dword [ebp - 0x2c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x4026b6
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
push 8
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026b6
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
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 0x4026b6
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0
push str.Logon_User_Name
push eax
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4026b6
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, 0x42f778
push eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov edx, dword [ebx]
mov edi, dword [ebp - 0x30]
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, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x1c]
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
inc ebx
cmp esi, 0x103
jne 0x402560
mov ebx, dword [ebp + 8]
jmp 0x402764
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, 0x42f778
push eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
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, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x18]
push ecx
call esi
jmp 0x402781
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x24], 1
jne 0x4028be
jmp 0x402790
mov ebx, dword [ebp + 8]
lea edx, [ebp + 8]
lea eax, [ebp - 0x84c]
push edx
push eax
mov dword [ebp + 8], 0
call fcn.00402060
mov eax, dword [ebp + 8]
add esp, 8
cmp eax, 1
jle 0x402828
shl eax, 6
lea ecx, [ebp + eax - 0x88c]
push ecx
call fcn.0040baea
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, 0x42f778
push eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp + 8]
shl ecx, 6
lea edx, [ebp + ecx - 0x88c]
push edx
call fcn.0040baea
mov edx, dword [ebx]
add esp, 4
add edx, 0x100
mov edi, eax
jmp 0x402879
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, 0x42f778
push eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
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, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
cmp dword [ebp - 0x28], 1
jne 0x4026a1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xfcc]
push edx
push eax
mov dword [ebp - 0x14], 0
call fcn.00402060
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 1
jle 0x402a0e
shl eax, 6
lea ecx, [ebp + eax - 0x100c]
push ecx
call fcn.0040baea
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, 0x42f778
push eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov ecx, dword [ebp - 0x14]
shl ecx, 6
lea edx, [ebp + ecx - 0x100c]
push edx
call fcn.0040baea
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, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
mov edx, dword [ebx]
push str.software
push edx
call fcn.0040bb30
add esp, 8
test eax, eax
jne 0x4026a1
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 0x4026a1
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, 0x42f778
push eax
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
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, 0x42f778
call fcn.00403bf1
push 0xa
mov ecx, eax
call fcn.00403aaa
push 0x401250
mov ecx, eax
call fcn.00401190
jmp 0x4026a1