Function at 0x402bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4100c0]
mov dword [ebp - 4], eax
push edi
mov al, byte [0x40d338]
mov byte [ebp - 0x108], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x118], 0x1f
mov byte [ebp - 0x11d], 1
mov byte [ebp - 0x10d], 0
mov dword [ebp - 0x11c], str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x114]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp - 0x11c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402c47
push 0x176
call fcn.00402a70
add esp, 4
jmp 0x402ed7
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push 0x40d368
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c81
cmp dword [ebp - 0x10c], 1
je 0x402d3d
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402ca4
push 0x179
call fcn.00402a70
add esp, 4
jmp 0x402ed7
mov dword [ebp - 0x11c], str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov byte [ebp - 0x108], 0
mov dword [ebp - 0x118], 0x1f
lea edx, [ebp - 0x114]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x11c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402cf5
push 0x17e
call fcn.00402a70
add esp, 4
jmp 0x402ed7
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push str.ProductId
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402d2b
cmp dword [ebp - 0x10c], 1
je 0x402d34
mov byte [ebp - 0x11d], 0
jmp 0x402d3b
mov byte [ebp - 0x10d], 2
jmp 0x402d44
mov byte [ebp - 0x10d], 1
movzx edx, byte [ebp - 0x11d]
test edx, edx
jne 0x402e5c
mov byte [ebp - 0x10d], 3
mov dword [ebp - 0x12c], str.CurrentBuildNumber
mov dword [ebp - 0x128], str.InstallDate
mov dword [ebp - 0x124], str.RegisteredOwner
mov byte [ebp - 0x108], 0
mov dword [ebp - 0x130], 0
jmp 0x402d9a
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 3
jge 0x402e5c
mov cl, byte [0x40d3e0]
mov byte [ebp - 0x238], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x134], 0x100
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
mov edx, dword [ebp - 0x130]
mov eax, dword [ebp + edx*4 - 0x12c]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e57
cmp dword [ebp - 0x10c], 1
jne 0x402e26
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00403d80
add esp, 8
jmp 0x402e57
cmp dword [ebp - 0x10c], 4
jne 0x402e57
push 0xa
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call fcn.0040c702
add esp, 0xc
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403d80
add esp, 8
jmp 0x402d8b
mov byte [ebp - 0xea], 0
movsx ecx, byte [ebp - 0x108]
test ecx, ecx
jne 0x402e7d
push 0x19a
call fcn.00402a70
add esp, 4
jmp 0x402ed7
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402e9d
push 0x19c
call fcn.00402a70
add esp, 4
jmp 0x402ed7
push 0x1f
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403c20
add esp, 0xc
mov ecx, dword [ebp + 8]
mov byte [ecx], 8
mov edx, dword [ebp + 8]
add edx, 1
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00402ab0
add esp, 8
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 0x10d]
mov byte [ecx + 9], dl
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00403e99
pop edi
mov esp, ebp
pop ebp
ret