Function at 0x57e420
Capabilities:
Check os version
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e848
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x5ebfc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5e0], ecx
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f730
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f73a
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 4], 0
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f741
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f74b
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x5d8], eax
mov byte [ebp - 4], 1
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f752
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f75c
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x5fc], eax
mov byte [ebp - 4], 2
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f763
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f76d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea edi, [eax + 0x10]
mov dword [ebp - 0x5e4], edi
mov byte [ebp - 4], 3
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f774
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f77e
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea esi, [eax + 0x10]
mov dword [ebp - 0x5f4], esi
mov byte [ebp - 4], 4
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f785
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f78f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x5f8], eax
mov byte [ebp - 4], 5
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f796
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f7a0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x5ec], eax
mov byte [ebp - 4], 6
call fcn.00407271
mov ecx, eax
test ecx, ecx
je 0x57f7a7
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5940e4
jne 0x57f7b1
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
add eax, 0x10
mov dword [ebp - 0x5e8], eax
push 0x118
lea eax, [ebp - 0x5d0]
mov byte [ebp - 4], 7
push 0
push eax
call fcn.0053eae0
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x5d4]
add esp, 0xc
mov dword [ebp - 0x5d4], 0x11c
push eax
call ebx
mov dword [ebp - 0x5f0], eax
test eax, eax
jne 0x57e63b
lea eax, [ebp - 0x5d4]
mov dword [ebp - 0x5d4], 0x114
push eax
call ebx
mov eax, dword [ebp - 0x5c4]
sub eax, 1
je 0x57f339
sub eax, 1
jne 0x57f460
mov ecx, dword [ebp - 0x5d0]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp ecx, 3
jne 0x57e683
push dword [ebp - 0x5cc]
lea eax, [ebp - 0x5dc]
push str.Windows_NT3._d
push eax
call fcn.00404950
add esp, 0xc
jmp 0x57e8c0
mov eax, dword [ebp - 0x5cc]
cmp ecx, 4
jne 0x57e6ad
test eax, eax
jne 0x57e8aa
push 0xb
push str.Windows_NT4
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp ecx, 5
jne 0x57e78e
test eax, eax
jne 0x57e6d1
push 0xc
push str.Windows_2000
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp eax, 1
jne 0x57e6ed
push 0xa
push 0x5c94a0
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp eax, 2
jne 0x57e8aa
push 0x59
call esi
test eax, eax
je 0x57e71a
mov ecx, 0x16
mov eax, str.Windows_Server_2003_R2
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov eax, 0x2000
cmp word [ebp - 0x4bc], ax
jne 0x57e744
mov ecx, 0x1b
mov eax, str.Windows_Storage_Server_2003
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp byte [ebp - 0x4ba], 1
jne 0x57e772
call fcn.0057e2f0
test eax, eax
je 0x57e772
mov ecx, 0xa
mov eax, str.Windows_XP
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov ecx, 0x13
mov eax, str.Windows_Server_2003
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp ecx, 6
jne 0x57e940
test eax, eax
jne 0x57e7dc
cmp byte [ebp - 0x4ba], 1
je 0x57e7c0
mov ecx, 0x13
mov eax, str.Windows_Server_2008
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov ecx, 0xd
mov eax, str.Windows_Vista
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp eax, 1
jne 0x57e821
cmp byte [ebp - 0x4ba], al
je 0x57e805
mov ecx, 0x16
mov eax, str.Windows_Server_2008_R2
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov ecx, 9
mov eax, str.Windows_7
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp eax, 2
jne 0x57e861
cmp byte [ebp - 0x4ba], 1
je 0x57e848
mov ecx, 0x13
mov eax, str.Windows_Server_2012
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov ecx, 9
mov eax, str.Windows_8
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp eax, 3
jne 0x57e8a1
cmp byte [ebp - 0x4ba], 1
je 0x57e888
mov ecx, 0x16
mov eax, str.Windows_Server_2012_R2
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov ecx, 0xb
mov eax, str.Windows_8.1
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
cmp eax, 4
je 0x57e951
push eax
push ecx
lea eax, [ebp - 0x5dc]
push str.Windows_NT__d._d
push eax
call fcn.00404950
add esp, 0x10
mov eax, dword [ebp - 0x5d0]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, 6
jb 0x57eda4
push str.GetProductInfo
push str.kernel32.dll
call ebx
push eax
call edi
mov dword [0x5f4d24], eax
test eax, eax
je case.0x57ec6d.50
lea ecx, [ebp - 0x5f0]
mov dword [ebp - 0x5f0], 0
push ecx
push 0
push 0
push dword [ebp - 0x5cc]
push dword [ebp - 0x5d0]
call eax
mov eax, dword [ebp - 0x5f0]
cmp eax, 0x13
ja 0x57eb58
je 0x57eb41
dec eax
cmp eax, 0x11
ja case.0x57ec6d.50
jmp dword [eax*4 + 0x57f834]
cmp ecx, 0xa
jne 0x57e8aa
test eax, eax
jne 0x57e8aa
cmp byte [ebp - 0x4ba], 1
je 0x57e987
cmp dword [ebp - 0x5c8], 0x4563
mov eax, str.Windows_Server_2019
jae 0x57e970
mov eax, str.Windows_Server_2016
mov ecx, 0x13
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
mov ecx, 0xa
mov eax, str.Windows_10
push ecx
push eax
lea ecx, [ebp - 0x5dc]
call fcn.00402430
jmp 0x57e8c0
push 8
push str.Business
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xa
push str.Business_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xe
push str.Cluster_Server
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x1e
push str.Datacenter__Full_installation_
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x25
push str.Datacenter__Server_Core_installation_
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xa
push str.Enterprise
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x1e
push str.Enterprise__Full_installation_
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x25
push str.Enterprise__Server_Core_installation_
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x2f
push str.Datacenter_Enterprise_for_Itanium_based_Systems
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xa
push str.Home_Basic
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xc
push str.Home_Basic_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xc
push str.Home_Premium
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x15
push str.Small_Business_Server
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x23
push str.Server_Standard__full_installation_
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x23
push str.Server_Standard__core_installation_
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 7
push str.Starter
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 8
push str.Ultimate
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xa
push str.Web_Server
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xb
push str.Home_Server
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp eax, 0x1c
ja 0x57ec49
je 0x57ec32
add eax, 0xffffffec
cmp eax, 7
ja case.0x57ec6d.50
jmp dword [eax*4 + 0x57f87c]
push 0xc
push str.Enterprise_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xe
push str.Home_Premium_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x19
push str.Server_for_Small_Business
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x1d
push str.Small_Business_Server_Premium
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x19
push str.Storage_Server_Enterprise
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x16
push str.Storage_Server_Express
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x17
push str.Storage_Server_Standard
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x18
push str.Storage_Server_Workgroup
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0xa
push str.Ultimate_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp eax, 0xa1
ja 0x57ed24
je 0x57ed0d
add eax, 0xffffffd0
cmp eax, 0xe
ja case.0x57ec6d.50
movzx eax, byte [eax + 0x57f8ac]
jmp dword [eax*4 + 0x57f89c]
cmp dword [ebp - 0x5cc], 2
jb 0x57ec99
mov ecx, 3
mov eax, 0x5c9c04
push ecx
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
mov ecx, 0xc
mov eax, 0x5c9c0c
push ecx
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp dword [ebp - 0x5cc], 2
jb 0x57ecda
mov ecx, 5
mov eax, str.Pro_N
push ecx
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
mov ecx, 0xe
mov eax, str.Professional_N
push ecx
push eax
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x11
push str.Essentials_Server
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x13
push str.Pro_for_Workstation
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp eax, 0xa5
ja 0x57ed82
je 0x57ed6b
sub eax, 0xa2
je 0x57ed54
sub eax, 2
jne case.0x57ec6d.50
push 0x11
push str.Pro_for_Education
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x15
push str.Pro_for_Workstation_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
push 0x13
push str.Pro_for_Education_N
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp eax, 0xabcdabcd
jne case.0x57ec6d.50
push 0xa
push str.Unlicensed
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp dword [ebp - 0x5f0], 0
je 0x57effd
cmp eax, 5
jne case.0x57ec6d.50
mov eax, dword [ebp - 0x5cc]
test eax, eax
jne 0x57ee34
mov al, byte [ebp - 0x4ba]
cmp al, 1
jne 0x57ede5
push 0xc
push 0x5c9d18
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
cmp al, 3
jne case.0x57ec6d.50
mov eax, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x5d8]
test al, al
jns 0x57ee0e
push 0x11
push str.DataCenter_Server
call fcn.00402430
jmp case.0x57ec6d.50
test al, 2
je 0x57ee23
push 0xf
push 0x5c9d58
call fcn.00402430
jmp case.0x57ec6d.50
push 6
push 0x5c9d78
call fcn.00402430
jmp case.0x57ec6d.50
cmp eax, 1
jb case.0x57ec6d.50
mov eax, dword [ebp - 0x4bc]
test eax, 0x200
je 0x57ee53
push 0xc
push str.Home_Edition
jmp 0x57ee8d
test al, al
jns 0x57ee60
push 0x12
push str.Datacenter_Edition
jmp 0x57ee8d
test al, 2
je 0x57ee6d
push 0x12
push str.Enterprise_Edition
jmp 0x57ee8d
test eax, 0x400
je 0x57ee7d
push 0xb
push str.Web_Edition
jmp 0x57ee8d
cmp byte [ebp - 0x4ba], 1
jne 0x57ee98
push 0xc
push str.Professional
lea ecx, [ebp - 0x5d8]
call fcn.00402430
push 0x57
call esi
test eax, eax
je 0x57efda
push 0x104
lea eax, [ebp - 0x4b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.ehomeehshell.exe
mov esi, eax
lea eax, [ebp - 0x4b8]
push 0x104
push eax
call fcn.0054392a
add esp, 0xc
test esi, esi
je case.0x57ec6d.50
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x4b8]
call fcn.0057dfb0
test eax, eax
je case.0x57ec6d.50
lea ecx, [ebp - 0x2b0]
lea edx, [ecx + 2]
jmp 0x57ef00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57ef00
sub ecx, edx
lea eax, [ebp - 0x2b0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5e8]
call fcn.00402430
mov esi, dword [ebp - 0x5e8]
cmp dword [esi - 0xc], 0
jl case.0x57ec6d.50
push 0x5c9e50
push esi
call fcn.0053dc90
add esp, 8
test eax, eax
je case.0x57ec6d.50
sub eax, esi
sar eax, 1
jne case.0x57ec6d.50
push 0xd
push str.Media_Center
lea ecx, [ebp - 0x5d8]
call fcn.00402430
push 0x5c9e74
push str.5.1.
lea ecx, [ebp - 0x5e8]
call fcn.00404ff0
push dword [ebp - 0x5e8]
call fcn.005495f9
fld qword [0x5cd478]
lea ecx, [ebp - 0x5d8]
fcomp st(1)
add esp, 4
fnstsw ax
push 4
test ah, 1
jne 0x57efaf
push str.2002
fstp st(0)
call fcn.004052d0
jmp case.0x57ec6d.50
fcomp qword [0x5cd480]
fnstsw ax
test ah, 0x41
jp 0x57efcb
push str.2004
call fcn.004052d0
jmp case.0x57ec6d.50
push str.2005
call fcn.004052d0
jmp case.0x57ec6d.50
push 0x56
call esi
test eax, eax
je case.0x57ec6d.50
push 9
push str.Tablet_PC
lea ecx, [ebp - 0x5d8]
call fcn.00402430
jmp case.0x57ec6d.50
lea eax, [ebp - 0x5f0]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne case.0x57ec6d.50
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x5f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x57f0a1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0xb0]
push eax
push str.WINNT
call esi
test eax, eax
jne 0x57f066
push str.Workstation
jmp 0x57f096
lea eax, [ebp - 0xb0]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x57f07f
push str.Server
jmp 0x57f096
lea eax, [ebp - 0xb0]
push eax
push str.SERVERNT
call esi
test eax, eax
jne 0x57f0a1
push str.Advanced_Server
lea ecx, [ebp - 0x5d8]
call fcn.00405b40
push dword [ebp - 0x5f0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x5c0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57f0b6
sub ecx, edx
lea eax, [ebp - 0x5c0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5fc]
call fcn.00402430
push 0x5c9f8c
push str.Service_Pack
lea ecx, [ebp - 0x5fc]
call fcn.00404ff0
push dword [ebp - 0x5cc]
lea eax, [ebp - 0x5e4]
push dword [ebp - 0x5d0]
push str._d._d
push eax
call fcn.00404950
push dword [ebp - 0x5c8]
lea eax, [ebp - 0x5f4]
push 0x5c9fbc
push eax
call fcn.00404950
add esp, 0x1c
call fcn.0057e2f0
test eax, eax
je 0x57f137
mov eax, 0x5c9fc4
jmp 0x57f298
xor eax, eax
push 0x5c92a4
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x60c], eax
mov dword [ebp - 0x608], eax
mov dword [ebp - 0x604], eax
mov dword [ebp - 0x600], eax
call ebx
test eax, eax
je 0x57f1ad
push 0x5c92b8
push eax
call edi
mov dword [0x5f4d20], eax
test eax, eax
je 0x57f1ad
lea ecx, [ebp - 0x620]
push ecx
call eax
cmp word [ebp - 0x620], 5
jne 0x57f1ad
mov eax, str.ARM32
mov ecx, 5
jmp 0x57f29d
xor eax, eax
push 0x5c92cc
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x60c], eax
mov dword [ebp - 0x608], eax
mov dword [ebp - 0x604], eax
mov dword [ebp - 0x600], eax
call ebx
test eax, eax
je 0x57f220
push 0x5c92e0
push eax
call edi
mov dword [0x5f4d20], eax
test eax, eax
je 0x57f220
lea ecx, [ebp - 0x620]
push ecx
call eax
cmp word [ebp - 0x620], 0xc
jne 0x57f220
mov eax, str.ARM64
mov ecx, 5
jmp 0x57f29d
xor eax, eax
push str.kernel32
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x614], eax
mov dword [ebp - 0x610], eax
mov dword [ebp - 0x60c], eax
mov dword [ebp - 0x608], eax
mov dword [ebp - 0x604], eax
mov dword [ebp - 0x600], eax
call ebx
test eax, eax
je 0x57f293
push str.GetNativeSystemInfo
push eax
call edi
mov dword [0x5f4d20], eax
test eax, eax
je 0x57f293
lea ecx, [ebp - 0x620]
push ecx
call eax
cmp word [ebp - 0x620], 6
jne 0x57f293
mov eax, str.IA64
mov ecx, 4
jmp 0x57f29d
mov eax, 0x5c9ff0
mov ecx, 3
push ecx
push eax
lea ecx, [ebp - 0x5ec]
call fcn.00402430
mov eax, dword [ebp - 0x5fc]
push dword [ebp - 0x5ec]
mov esi, dword [ebp - 0x5f4]
mov edi, dword [ebp - 0x5e4]
cmp dword [eax - 0xc], 0
push esi
push edi
je 0x57f302
push eax
push dword [ebp - 0x5d8]
lea eax, [ebp - 0x5f8]
push dword [ebp - 0x5dc]
push str._s__s__s___s_Build__s____s_
push eax
call fcn.00404950
mov ecx, dword [ebp - 0x5e0]
lea eax, [ebp - 0x5f8]
add esp, 0x20
push eax
call fcn.00401f80
jmp 0x57f460
push dword [ebp - 0x5d8]
lea eax, [ebp - 0x5f8]
push dword [ebp - 0x5dc]
push str._s__s___s_Build__s____s_
push eax
call fcn.00404950
mov ecx, dword [ebp - 0x5e0]
lea eax, [ebp - 0x5f8]
add esp, 0x1c
push eax
call fcn.00401f80
jmp 0x57f460
mov eax, dword [ebp - 0x5cc]
test eax, eax
je 0x57f3b2
cmp eax, 0xa
je 0x57f36e
lea ecx, [ebp - 0x5dc]
cmp eax, 0x5a
je 0x57f362
push str.Windows_9x
call fcn.00405b40
jmp 0x57f403
push 0xa
push str.Windows_Me
jmp 0x57f3fe
mov eax, dword [ebp - 0x5c8]
mov ecx, 0x8ae
cmp ax, cx
jb 0x57f38c
mov ecx, 0xd
mov eax, str.Windows_98_SE
push ecx
push eax
jmp 0x57f3f8
mov ecx, 0x7d0
cmp ax, cx
jb 0x57f3a4
mov ecx, 0xe
mov eax, str.Windows_98_SP1
push ecx
push eax
jmp 0x57f3f8
mov ecx, 0xa
mov eax, str.Windows_98
push ecx
push eax
jmp 0x57f3f8
mov eax, dword [ebp - 0x5c8]
mov ecx, 0x4be
cmp ax, cx
jb 0x57f3cb
push 0x11
push str.Windows_95_OSR2.5
jmp 0x57f3f8
mov ecx, 0x4bc
cmp ax, cx
jb 0x57f3de
push 0x11
push str.Windows_95_OSR2.1
jmp 0x57f3f8
mov ecx, 0x457
cmp ax, cx
jne 0x57f3f1
push 0xf
push str.Windows_95_OSR2
jmp 0x57f3f8
push 0xa
push str.Windows_95
lea ecx, [ebp - 0x5dc]
call fcn.00402430
push dword [ebp - 0x5cc]
lea eax, [ebp - 0x5e4]
push dword [ebp - 0x5d0]
push 0x5c9414
push eax
call fcn.00404950
movzx eax, word [ebp - 0x5c8]
push eax
lea eax, [ebp - 0x5f4]
push 0x5c9420
push eax
call fcn.00404950
mov esi, dword [ebp - 0x5f4]
mov edi, dword [ebp - 0x5e4]
push esi
push edi
push dword [ebp - 0x5dc]
push str._s___s_Build__s_
push dword [ebp - 0x5e0]
call fcn.00404950
add esp, 0x30
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x5e8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jg 0x57f4e2
mov eax, dword [edx]
mov dword [ebp - 0x5e8], eax
push edx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x5e0], edi
mov edi, dword [ebp - 0x5e4]
cmp eax, 0x5940e4
jne 0x57f7c6
mov eax, dword [ebp - 0x5e8]
mov edx, dword [ebp - 0x5e8]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x5e0], edi
mov edi, dword [ebp - 0x5e4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f7b8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x5ec]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x57f555
mov eax, dword [edx]
mov dword [ebp - 0x5ec], eax
push edx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x5e0], edi
mov edi, dword [ebp - 0x5e4]
cmp eax, 0x5940e4
jne 0x57f7e1
mov eax, dword [ebp - 0x5ec]
mov edx, dword [ebp - 0x5ec]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp - 0x5e0], edi
mov edi, dword [ebp - 0x5e4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f7d3
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ecx
mov byte [ebp - 4], 4
mov eax, ebx
mov ecx, dword [ebp - 0x5f8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57f5b3
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x5e0], edx
mov edx, dword [ecx]
cmp eax, 0x5940e4
jne 0x57f7fb
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
mov dword [ebp - 0x5e0], edi
mov edi, dword [ebp - 0x5e4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f7ee
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x57f5fb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x57f808
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f808
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x57f601
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x57f641
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x57f80f
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f80f
push 0
push dword [ecx + 4]
call esi
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x5fc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57f687
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x57f816
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f816
push 0
push dword [edx + 4]
call esi
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x5d8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x57f6cd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x57f81f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f81f
push 0
push dword [edx + 4]
call esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5dc]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x57f714
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x5940e4
jne 0x57f828
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x57f828
push 0
push dword [edx + 4]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c0f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e47a
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e4b0
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e4e3
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e516
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e549
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e57c
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e5af
push 0x80004005
call fcn.00402ab0
call edx
jmp 0x57e5e2
mov ecx, dword [edx + 4]
call dword [ebp - 0x5e0]
jmp 0x57f4dc
mov ecx, dword [edx]
call dword [ebp - 0x5e0]
jmp 0x57f4dc
mov ecx, dword [edx + 4]
call dword [ebp - 0x5e0]
jmp 0x57f555
mov ecx, dword [edx]
call dword [ebp - 0x5e0]
jmp 0x57f555
mov ecx, edx
call dword [ebp - 0x5e0]
jmp 0x57f5b3
mov ecx, edx
call dword [ebp - 0x5e0]
jmp 0x57f5b3
call edx
jmp 0x57f5fb
call edx
jmp 0x57f641
mov ecx, edx
call edi
jmp 0x57f687
mov ecx, edx
call edi
jmp 0x57f6cd
mov ecx, edx
call edi
jmp 0x57f714