Function at 0x407663
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x248
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x238], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x237]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x110], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x458a28
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
push 0x458a2c
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
push 1
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
push edx
push str._s_softwareMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x240]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x120], 0x20019
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
lea edx, [ebp + 8]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x250], eax
call sub.OriginalSysInfo.dll_GetOriginalSysIsWom64
add esp, 4
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x40777b
mov eax, dword [ebp - 0x120]
or ah, 1
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x120]
push edx
push 0
lea eax, [ebp - 0x238]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x4078ba
push 0x100
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0x100
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push str.CurrentVersion
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_2
push 0x100
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0x100
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
push str.CurrentBuildNumber
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x134], eax
push 0x455c2c
lea ecx, [ebp - 0x128]
call fcn.004128ce
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004128ce
lea ecx, [ebp - 0x128]
call fcn.00405a10
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
fstp dword [0x458c08]
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4078ce
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret