Function at 0x420630
Capabilities:
Get common file path
Get file version info
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x55800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x28]
push edi
push ecx
push 0x80
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
movzx eax, word [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
push eax
call fcn.004d0170
mov ax, word [ebp + 0x18]
add esp, 0xc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov word [esi + 0x94], ax
mov ax, word [ebp + 0x1c]
mov word [esi + 0x96], ax
lea eax, [ebp - 0x408]
push eax
push 0x20119
push 0
push str.SystemCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x408], 0
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4207dc
lea eax, [ebp - 0x40c]
mov byte [ebp - 0x404], 0
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0x400
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4207d4
lea eax, [ebp - 0x404]
push str.LANMANNT
push eax
call fcn.004d5932
add esp, 8
cmp dword [ebp + 0x24], 0
je 0x42074c
test eax, eax
jne 0x420724
or dword [esi + 0x130], 4
jmp 0x4207d4
lea eax, [ebp - 0x404]
push str.LANSECNT
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x4207d4
or dword [esi + 0x130], 8
jmp 0x4207d4
test eax, eax
jne 0x420763
or dword [esi + 0x130], 4
mov dword [esi + 0x13c], 3
jmp 0x4207d4
lea eax, [ebp - 0x404]
push str.SERVERNT
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x420787
mov dword [esi + 0x13c], 2
jmp 0x4207d4
lea eax, [ebp - 0x404]
push str.LANSECNT
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x4207b2
or dword [esi + 0x130], 8
mov dword [esi + 0x13c], 3
jmp 0x4207d4
lea eax, [ebp - 0x404]
push str.WinNT
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x4207d4
mov dword [esi + 0x13c], 1
push dword [ebp - 0x408]
call edi
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
push 0x20119
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x42088d
mov byte [ebp - 0x404], al
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0x400
push eax
push 0
push 0
push str.EditionID
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420885
lea eax, [ebp - 0x404]
push eax
call fcn.004d575b
lea eax, [ebp - 0x404]
push str.CORECONNECTED
push eax
call fcn.004da5d6
add esp, 0xc
test eax, eax
jne 0x42087b
lea eax, [ebp - 0x404]
push str.CONNECTEDCORE
push eax
call fcn.004da5d6
add esp, 8
test eax, eax
je 0x420885
or dword [esi + 0x134], 0x800000
push dword [ebp - 0x408]
call edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x57
call edi
test eax, eax
jne 0x42091f
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push 0x20119
push 0
push str.SystemWPAMediaCenter
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x420929
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], 4
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push str.Installed
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420911
cmp dword [ebp - 0x40c], eax
je 0x420911
or dword [esi + 0x130], 0x4000
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x420929
or dword [esi + 0x130], 0x4000
push 0x56
call edi
test eax, eax
jne 0x4209b5
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x408]
push eax
push 0x20119
push 0
push str.SystemWPATabletPC
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4209bf
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], 4
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push str.Installed
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4209a7
cmp dword [ebp - 0x40c], eax
je 0x4209a7
or dword [esi + 0x130], 0x8000
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4209bf
or dword [esi + 0x130], 0x8000
push 0x58
call edi
test eax, eax
je 0x4209d1
or dword [esi + 0x130], 0x10000
push 0x59
call edi
test eax, eax
je 0x4209e3
or dword [esi + 0x130], 0x20000
mov eax, dword [ebp + 0x20]
xor ecx, ecx
sub eax, 1
je 0x420a03
sub eax, 1
je 0x4209fc
sub eax, 1
jne 0x420a08
lea ecx, [eax + 5]
jmp 0x420a08
mov ecx, 4
jmp 0x420a08
mov ecx, 3
mov eax, dword [esi]
mov dword [esi + 0x98], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
mov dword [esi + 0xa4], ecx
lea ecx, [esi + 0x14]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 8]
push ecx
mov dword [esi + 0xa0], eax
lea eax, [esi + 0xac]
push 0x80
push eax
call fcn.004d0170
movzx eax, word [esi + 0x94]
add esp, 0xc
mov word [esi + 0x12c], ax
movzx eax, word [esi + 0x96]
mov word [esi + 0x12e], ax
push esi
call fcn.0041fc10
cmp dword [esi + 0x98], 4
mov edi, 1
jne 0x420ac3
cmp word [esi + 0x12c], 6
jne 0x420ac3
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x420ac3
push dword [ebp - 0x40c]
mov word [esi + 0x12e], di
mov word [esi + 0x96], di
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x420ac9
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x98], 5
jne 0x420b83
cmp dword [esi + 0x9c], 0
je 0x420b83
cmp word [esi + 0x12c], 1
jne 0x420b83
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x420b83
mov byte [ebp - 0x404], al
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x410], 0x400
push eax
push 0
push 0
push str.SubVersionNumber
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420b7b
lea eax, [ebp - 0x404]
push 0x53e528
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x420b7b
mov eax, 1
mov word [esi + 0x12e], ax
mov word [esi + 0x96], ax
push dword [ebp - 0x408]
call edi
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x420c80
mov byte [ebp - 0x404], al
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
mov dword [ebp - 0x410], 0x400
push eax
push 0
push 0
push str.CurrentType
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420c78
lea eax, [ebp - 0x404]
push str.Uniprocessor_Free
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x420c0e
or dword [esi + 0x130], 0x400
jmp 0x420c78
lea eax, [ebp - 0x404]
push str.Uniprocessor_Checked
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x420c32
or dword [esi + 0x130], 0x800
jmp 0x420c78
lea eax, [ebp - 0x404]
push str.Multiprocessor_Free
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x420c56
or dword [esi + 0x130], 0x1000
jmp 0x420c78
lea eax, [ebp - 0x404]
push str.Multiprocessor_Checked
push eax
call fcn.004d5932
add esp, 8
test eax, eax
jne 0x420c78
or dword [esi + 0x130], 0x2000
push dword [ebp - 0x408]
call edi
cmp dword [ebp + 0x20], 0
jne 0x420cbf
or dword [esi + 0x134], 0x200000
mov dword [esi + 0xc], 4
mov dword [esi + 0x98], 3
mov dword [esi + 0x9c], 0xa
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov eax, 0xffff
push str.KERNEL32.DLL
mov word [ebp - 0x45c], ax
mov word [ebp - 0x438], ax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420d55
push str.GetNativeSystemInfo
push eax
call edi
test eax, eax
je 0x420d0d
lea ecx, [ebp - 0x438]
push ecx
call eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x420d36
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movups xmm0, xmmword [ebp - 0x438]
movups xmmword [ebp - 0x45c], xmm0
movups xmm0, xmmword [ebp - 0x428]
movups xmmword [ebp - 0x44c], xmm0
mov ecx, dword [ebp - 0x438]
call fcn.0041f550
mov ecx, dword [ebp - 0x45c]
mov dword [esi + 0xa8], eax
call fcn.0041f550
mov dword [esi + 0x10], eax
push str.NTDLL.DLL
call ebx
test eax, eax
je 0x420e00
push str.RtlGetVersion
push eax
call edi
test eax, eax
je 0x420e00
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push ecx
call eax
test eax, eax
jne 0x420e00
mov eax, dword [ebp - 0x114]
lea ebx, [esi + 0xac]
push 0
push 0
push 0x80
mov dword [esi + 0xa0], eax
mov eax, dword [ebp - 0x11c]
push ebx
mov dword [esi + 0x98], eax
mov eax, dword [ebp - 0x118]
push 0xffffffffffffffff
mov dword [esi + 0x9c], eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, ebx
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x420dd7
sub edx, edi
je 0x420dee
mov ecx, ebx
call fcn.004210d0
movzx eax, ax
jmp 0x420df0
xor eax, eax
mov word [esi + 0x12c], ax
xor eax, eax
mov word [esi + 0x12e], ax
cmp dword [esi + 0xa4], 4
jne 0x420f0f
cmp dword [esi + 0x98], 6
jne 0x420f0f
cmp dword [esi + 0x9c], 3
jne 0x420f0f
push 0x104
lea eax, [ebp - 0x108]
mov byte [ebp - 0x108], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x420f0f
push str.HAL.DLL
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004d01ca
add esp, 0xc
mov dword [ebp - 0x410], 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x420f0f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x420f0f
push edi
push ebx
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x420eff
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], 0
push eax
push 0x53e1f8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x420eff
mov eax, dword [ebp - 0x40c]
cmp dword [eax + 0xc], 0x25804287
jb 0x420eff
or dword [esi + 0x134], 0x400000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf27
mov esp, ebp
pop ebp
ret 0x24