Function at 0x53c870
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x200
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x1fc], eax
push ebx
xor eax, eax
push esi
mov esi, dword [esp + 0x20c]
push edi
xor ebx, ebx
push 0x9c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push ebx
push eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esi], bl
call fcn.005dfd60
push 0x9c
lea ecx, [esp + 0x17c]
push ebx
push ecx
call fcn.005dfd60
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0x18
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0x9c
call edi
test eax, eax
jne 0x53c92d
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x94
call edi
test eax, eax
jne 0x53c92d
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [esp + 0x1fc]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x200
ret
mov eax, dword [esp + 0x40]
cmp eax, 6
ja 0x53c93f
jne 0x53c951
cmp dword [esp + 0x44], 2
jb 0x53c951
lea ecx, [esp + 0x16c]
push ecx
push ebx
call fcn.004f4a40
mov dword [esp + 0x10], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
push 0x61bed4
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x53c97a
lea edx, [esp + 0x18]
push edx
call eax
jmp 0x53c985
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x50], 2
jne 0x53ce34
cmp dword [esp + 0x44], 4
jbe 0x53ce34
mov edi, 0x60c81c
mov edx, 0x800
mov eax, esi
sub edi, esi
lea esp, [esp]
lea ecx, [edx + 0x7ffff7fe]
test ecx, ecx
je 0x53c9cb
mov cl, byte [edi + eax]
test cl, cl
je 0x53c9cb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x53c9b0
jmp 0x53c9cf
test edx, edx
jne 0x53c9d0
dec eax
cmp dword [esp + 0x44], 6
mov byte [eax], 0
jne 0x53cb6e
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x53c9fe
cmp byte [esp + 0xda], 1
jne 0x53c9f7
push str.Windows_Vista
jmp 0x53ca18
push str.Windows_2008
jmp 0x53ca18
cmp eax, 1
jne 0x53ca23
cmp byte [esp + 0xda], al
jne 0x53ca13
push str.Windows_7
jmp 0x53ca18
push str.Windows_2008_R2
push 0x800
push esi
call fcn.0053c030
cmp byte [esp + 0xda], 1
jne 0x53ca5e
cmp dword [esp + 0x48], 2
jb 0x53cb16
call fcn.004f79d0
test eax, eax
je 0x53ca4b
push str.Windows_10
jmp 0x53cb0b
call fcn.004f78e0
test eax, eax
je 0x53caaa
push str.Windows_8.1
jmp 0x53cb0b
push 0x90
lea edx, [esp + 0xe4]
push 0
push edx
mov dword [esp + 0xe8], 0
call fcn.005dfd60
add esp, 0xc
push 0
lea eax, [esp + 0xe0]
push eax
call fcn.004f4a40
cmp eax, 1
jne 0x53caf3
mov eax, dword [esp + 0xe4]
cmp eax, 2
jne 0x53cab8
cmp byte [esp + 0xda], 1
jne 0x53cab1
push str.Windows_8
jmp 0x53cb0b
push str.Windows_2012
jmp 0x53cb0b
cmp eax, 3
jne 0x53cace
cmp byte [esp + 0xda], 1
jne 0x53cb06
push str.Windows_8.1
jmp 0x53cb0b
cmp dword [esp + 0xe0], 0xa
jb 0x53cb16
cmp dword [esp + 0xe8], 0x44c0
jae 0x53caec
push str.Windows_2016
jmp 0x53cb0b
push str.Windows_2019
jmp 0x53cb0b
cmp dword [esp + 0x48], 2
je 0x53caa0
cmp dword [esp + 0xe4], 3
jne 0x53cb16
jmp 0x53cabd
push str.Windows_2012_R2
push 0x800
push esi
call fcn.0053c030
push str.GetProductInfo
push 0x61bed4
call ebp
push eax
call ebx
test eax, eax
je 0x53cb6e
cmp dword [esp + 0x14], 0
je 0x53cb4b
mov edx, dword [esp + 0x178]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x178]
push 0
push 0
push edx
push ecx
jmp 0x53cb5e
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x48]
push 0
push 0
push ecx
push edx
call eax
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.0053c150
add esp, 8
mov edi, 5
mov ebx, 9
cmp dword [esp + 0x44], edi
jne 0x53cd32
cmp dword [esp + 0x48], 2
jne 0x53cc9c
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x53cba0
push str.Windows_Server_2003_R2
jmp 0x53cbe0
mov eax, dword [esp + 0xd8]
test eax, 0x2000
je 0x53cbb5
push str.Windows_Storage_Server_2003
jmp 0x53cbe0
test eax, 0x8000
je 0x53cbc3
push str.Windows_Home_Server
jmp 0x53cbe0
cmp byte [esp + 0xda], 1
jne 0x53cbdb
cmp word [esp + 0x18], bx
jne 0x53cbdb
push str.Windows_XP_Professional_x64_Edition
jmp 0x53cbe0
push str.Windows_Server_2003
push 0x800
push esi
call fcn.0053c030
cmp byte [esp + 0xda], 1
je 0x53cc92
mov eax, dword [esp + 0x18]
cmp ax, 6
jne 0x53cc20
mov al, byte [esp + 0xd8]
test al, al
jns 0x53cc15
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x53cc87
test al, 2
je 0x53cc92
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x53cc87
cmp ax, bx
jne 0x53cc49
mov al, byte [esp + 0xd8]
test al, al
jns 0x53cc37
push str.Datacenter_x64_Edition
jmp 0x53cc87
test al, 2
je 0x53cc42
push str.Enterprise_x64_Edition
jmp 0x53cc87
push str.Standard_x64_Edition
jmp 0x53cc87
mov eax, dword [esp + 0xd8]
test eax, 0x4000
je 0x53cc5e
push str.Compute_Cluster_Edition
jmp 0x53cc87
test al, al
jns 0x53cc69
push str.Datacenter_Edition
jmp 0x53cc87
test al, 2
je 0x53cc74
push str.Enterprise_Edition
jmp 0x53cc87
test eax, 0x400
je 0x53cc82
push str.Web_Edition
jmp 0x53cc87
push str.Standard_Edition
push 0x800
push esi
call fcn.0053c030
cmp dword [esp + 0x44], edi
jne 0x53cd32
cmp dword [esp + 0x48], 1
jne 0x53ccdd
push str.Windows_XP
push 0x800
push esi
call fcn.0053c030
test dword [esp + 0xd8], 0x200
je 0x53ccc7
push str.Home_Edition
jmp 0x53cccc
push str.Professional
push 0x800
push esi
call fcn.0053c030
cmp dword [esp + 0x44], edi
jne 0x53cd32
cmp dword [esp + 0x48], 0
jne 0x53cd32
push str.Windows_2000
push 0x800
push esi
call fcn.0053c030
cmp byte [esp + 0xda], 1
jne 0x53cd05
push str.Professional
jmp 0x53cd27
mov al, byte [esp + 0xd8]
test al, al
jns 0x53cd17
push str.Datacenter_Server
jmp 0x53cd27
test al, 2
je 0x53cd22
push str.Advanced_Server
jmp 0x53cd27
push str.Server
push 0x800
push esi
call fcn.0053c030
mov edi, dword [esp + 0x218]
test edi, edi
je 0x53cdfd
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53cd48
sub eax, edx
je 0x53cd73
push 0x60ef34
push 0x800
push esi
call fcn.0053c030
lea ecx, [esp + 0x54]
push ecx
push 0x800
push esi
call fcn.0053c030
cmp dword [esp + 0x14], 0
je 0x53cda1
call fcn.00502700
mov edx, dword [esp + 0x17c]
push eax
push edx
push str.__build__d._d_
lea eax, [esp + 0xe8]
push 0x50
push eax
call fcn.0053c0f0
add esp, 0x14
jmp 0x53cdea
call fcn.004d9b00
test eax, eax
je 0x53cdce
call fcn.00502700
mov ecx, dword [esp + 0x4c]
push eax
push ecx
push str.__build__d._d_
lea edx, [esp + 0xe8]
push 0x50
push edx
call fcn.0053c0f0
add esp, 0x14
jmp 0x53cdea
mov eax, dword [esp + 0x4c]
push eax
push str.__build__d_
lea ecx, [esp + 0xe4]
push 0x50
push ecx
call fcn.0053c0f0
add esp, 0x10
lea edx, [esp + 0xdc]
push edx
push 0x800
push esi
call fcn.0053c030
cmp word [esp + 0x18], bx
jne 0x53ce0b
push str._64_bit
jmp 0x53ce10
push str._32_bit
push 0x800
push esi
call fcn.0053c030
test edi, edi
je 0x53ce2d
push esi
push str.VER:__s_n
call fcn.005e0e7f
add esp, 8
mov eax, 1
jmp 0x53ce4d
cmp dword [esp + 0x218], 0
je 0x53ce4b
push str.This_sample_does_not_support_this_version_of_Windows._n
call fcn.005e0e7f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x200
ret