Function at 0x636560
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7c42b6
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov eax, dword [esp + 0x198]
mov ebx, dword [esp + 0x194]
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], eax
xor eax, eax
push 0x11c
push eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.007202b0
add esp, 0xc
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x68], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x636b62
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x63664f
push str.RtlGetNtVersionNumbers
push esi
call edi
test eax, eax
je 0x636648
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x70]
push ecx
call eax
and dword [esp + 0x70], 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call esi
push eax
call edi
test eax, eax
je 0x636671
lea edx, [esp + 0x40]
push edx
call eax
jmp 0x63667c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x74], 2
jne 0x636b62
cmp dword [esp + 0x68], 4
jbe 0x636b62
lea ecx, [esp + 0x14]
call fcn.00636240
push str.Microsoft
lea ecx, [esp + 0x24]
mov dword [esp + 0x190], 0
call fcn.00406890
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], edx
mov dx, word [esp + 0x40]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x28], dx
mov ebx, 1
cmp ecx, 6
je 0x6366e9
cmp ecx, 0xa
jne case.0x6367db.5
mov al, byte [esp + 0x17e]
xor edx, edx
cmp al, bl
sete dl
mov dword [esp + 0x34], edx
cmp ecx, 6
jne 0x636775
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x63671e
lea ecx, [esp + 0x20]
cmp al, bl
jne 0x636717
push str.Windows_Vista
jmp 0x636795
push str.Windows_Server_2008
jmp 0x636795
cmp ecx, ebx
jne 0x636738
lea ecx, [esp + 0x20]
cmp al, bl
jne 0x636731
push str.Windows_7
jmp 0x636795
push str.Windows_Server_2008_R2
jmp 0x636795
cmp ecx, 2
jne 0x636753
lea ecx, [esp + 0x20]
cmp al, bl
jne 0x63674c
push str.Windows_8
jmp 0x636795
push str.Windows_Server_2012
jmp 0x636795
cmp ecx, 3
jne 0x63676e
lea ecx, [esp + 0x20]
cmp al, bl
jne 0x636767
push str.Windows_8.1
jmp 0x636795
push str.Windows_Server_2012_R2
jmp 0x636795
cmp ecx, 4
je 0x636781
jmp 0x63679a
cmp ecx, 0xa
jne 0x63679a
cmp dword [esp + 0x6c], 0
jne 0x63679a
lea ecx, [esp + 0x20]
cmp al, bl
jne 0x636790
push str.Windows_10
jmp 0x636795
push str.Windows_Server_2016
call fcn.004036b0
push str.GetProductInfo
push str.kernel32.dll
call esi
push eax
call edi
test eax, eax
je case.0x6367db.5
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x6c]
push 0
push 0
push edx
push ecx
call eax
mov eax, dword [esp + 0x38]
dec eax
cmp eax, 0x2f
ja case.0x6367db.5
movzx edx, byte [eax + 0x636be0]
jmp dword [edx*4 + 0x636b98]
push str.Ultimate_Edition
jmp 0x636857
push str.Professional
jmp 0x636857
push str.Home_Premium_Edition
jmp 0x636857
push str.Home_Basic_Edition
jmp 0x636857
push str.Enterprise_Edition
jmp 0x636857
push str.Business_Edition
jmp 0x636857
push str.Starter_Edition
jmp 0x636857
push str.Cluster_Server_Edition
jmp 0x636857
push str.Datacenter_Edition
jmp 0x636857
push str.Datacenter_Edition__core_installation_
jmp 0x636857
push str.Enterprise_Edition__core_installation_
jmp 0x636857
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x636857
push str.Small_Business_Server
jmp 0x636857
push str.Small_Business_Server_Premium_Edition
jmp 0x636857
push str.Standard_Edition
jmp 0x636857
push str.Standard_Edition__core_installation_
jmp 0x636857
push str.Web_Server_Edition
lea ecx, [esp + 0x28]
call fcn.00406890
mov esi, 5
cmp dword [esp + 0x68], esi
jne 0x636a1a
cmp dword [esp + 0x6c], 2
jne 0x636989
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x63688d
push str.Windows_Server_2003_R2
jmp 0x6368cd
mov eax, dword [esp + 0x17c]
test eax, 0x2000
je 0x6368a2
push str.Windows_Storage_Server_2003
jmp 0x6368cd
test eax, 0x8000
je 0x6368b0
push str.Windows_Home_Server
jmp 0x6368cd
cmp byte [esp + 0x17e], bl
jne 0x6368c8
cmp word [esp + 0x40], 9
jne 0x6368c8
push str.Windows_XP_Professional_x64_Edition
jmp 0x6368cd
push str.Windows_Server_2003
lea ecx, [esp + 0x24]
call fcn.004036b0
cmp byte [esp + 0x17e], bl
je 0x63697f
mov eax, dword [esp + 0x40]
cmp ax, 6
jne 0x63690a
mov al, byte [esp + 0x17c]
test al, al
jns 0x6368ff
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x636976
test al, 2
je 0x63697f
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x636976
cmp ax, 9
jne 0x636938
mov al, byte [esp + 0x17c]
test al, al
jns 0x636922
push str.Datacenter_x64_Edition
jmp 0x636976
lea ecx, [esp + 0x24]
test al, 2
je 0x636931
push str.Enterprise_x64_Edition
jmp 0x63697a
push str.Standard_x64_Edition
jmp 0x63697a
mov eax, dword [esp + 0x17c]
test eax, 0x4000
je 0x63694d
push str.Compute_Cluster_Edition
jmp 0x636976
test al, al
jns 0x636958
push str.Datacenter_Edition
jmp 0x636976
test al, 2
je 0x636963
push str.Enterprise_Edition
jmp 0x636976
test eax, 0x400
je 0x636971
push str.Web_Edition
jmp 0x636976
push str.Standard_Edition
lea ecx, [esp + 0x28]
call fcn.00406890
cmp dword [esp + 0x68], esi
jne 0x636a1a
cmp dword [esp + 0x6c], ebx
jne 0x6369ca
push str.Windows_XP
lea ecx, [esp + 0x24]
call fcn.004036b0
test dword [esp + 0x17c], 0x200
lea ecx, [esp + 0x24]
je 0x6369ba
push str.Home_Edition
call fcn.004036b0
jmp 0x6369c4
push str.Professional
call fcn.00406890
cmp dword [esp + 0x68], esi
jne 0x636a1a
cmp dword [esp + 0x6c], 0
jne 0x636a1a
push str.Windows_2000
lea ecx, [esp + 0x24]
call fcn.004036b0
cmp byte [esp + 0x17e], bl
jne 0x6369ef
push str.Professional
jmp 0x636a11
mov al, byte [esp + 0x17c]
test al, al
jns 0x636a01
push str.Datacenter_Server
jmp 0x636a11
test al, 2
je 0x636a0c
push str.Advanced_Server
jmp 0x636a11
push str.Server
lea ecx, [esp + 0x28]
call fcn.00406890
cmp word [esp + 0x78], 0
je 0x636a30
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x34]
call fcn.00406890
cmp dword [esp + 0x68], 6
jb 0x636a5b
mov eax, dword [esp + 0x40]
cmp ax, 9
jne 0x636a48
push str.64_bit
jmp 0x636a52
test ax, ax
jne 0x636a5b
push str.32_bit
lea ecx, [esp + 0x30]
call fcn.00406890
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x636a6d
lea edx, [esp + 0x14]
push edx
call fcn.00636500
mov eax, dword [0x8a14f8]
mov edx, dword [eax + 0xc]
mov ecx, 0x8a14f8
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x80db1c
push edx
mov byte [esp + 0x19c], bl
call fcn.0040e430
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 0xc]
add esp, 0x10
test eax, eax
jne 0x636aba
mov ecx, 0x830150
mov eax, ecx
jmp 0x636abf
mov eax, 0x8027d8
push ecx
push eax
lea eax, [esp + 0x18]
push 0x80db10
push eax
call fcn.004a23e0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx - 0xc]
add esp, 0x10
test eax, eax
jne 0x636ae7
mov ecx, 0x830150
mov eax, ecx
jmp 0x636aec
mov eax, 0x8027d8
push ecx
push eax
lea ecx, [esp + 0x18]
push 0x80db10
push ecx
call fcn.004a23e0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push str.__d._d._d_
push edx
call fcn.004a23e0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00405cc0
mov edi, dword [esp + 0x64]
add eax, 0x10
mov dword [edi], eax
add esp, 0x28
mov byte [esp + 0x18c], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x636b55
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x14]
call fcn.006362b0
mov eax, edi
jmp 0x636b70
push 0x830150
mov ecx, ebx
call fcn.004068d0
mov eax, ebx
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x180
ret