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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x39
push 0
push 0
dec ecx
jne 0x457698
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x458495
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [esi], 0
lea eax, [esi + 8]
mov edx, 0x4584a8
call fcn.004059e4
xor eax, eax
mov dword [esi + 0x1c], eax
xor eax, eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x24], eax
mov byte [esi], 0
mov byte [esi + 1], 0
mov bl, 1
mov dword [ebp - 0x144], 0x11c
lea eax, [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
jne 0x457727
xor ebx, ebx
mov dword [ebp - 0x144], 0x94
lea eax, [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
jne 0x457727
xor eax, eax
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x458357
mov eax, dword [ebp - 0x140]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x13c]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x138]
mov dword [esi + 0x18], eax
cmp dword [ebp - 0x134], 2
jne 0x45775e
cmp byte [ebp - 0x2a], 1
jne 0x457762
xor eax, eax
jmp 0x457764
mov al, 1
mov byte [esi], al
test bl, bl
je 0x457778
movzx eax, word [ebp - 0x30]
mov dword [esi + 0x20], eax
movzx eax, word [ebp - 0x2e]
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edi, dword [ebp - 0x134]
mov eax, edi
sub eax, 1
jb 0x45779c
je 0x4577ae
dec eax
je 0x45785d
jmp 0x458323
lea eax, [esi + 8]
mov edx, 0x4584bc
call fcn.004059e4
jmp 0x458357
cmp dword [esi + 0x10], 4
jne 0x4577f1
cmp dword [esi + 0x14], 0
jne 0x4577f1
movzx eax, word [ebp - 0x12e]
cmp ax, 0x43
je 0x4577cd
cmp ax, 0x42
jne 0x4577df
lea eax, [esi + 8]
mov edx, 0x4584d8
call fcn.004059e4
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x45850c
call fcn.004059e4
jmp 0x458357
cmp dword [esi + 0x10], 4
jne 0x457819
cmp dword [esi + 0x14], 0xa
jne 0x457819
cmp word [ebp - 0x12e], 0x41
jne 0x457819
lea eax, [esi + 8]
mov edx, 0x458528
call fcn.004059e4
jmp 0x458357
cmp dword [esi + 0x10], 4
jne 0x457837
cmp dword [esi + 0x14], 0xa
jne 0x457837
lea eax, [esi + 8]
mov edx, 0x458548
call fcn.004059e4
jmp 0x458357
cmp dword [esi + 0x10], 4
jne 0x458357
cmp dword [esi + 0x14], 0x5a
jne 0x458357
lea eax, [esi + 8]
mov edx, 0x458564
call fcn.004059e4
jmp 0x458357
cmp byte [ebp - 0x2a], 1
jne 0x457e48
mov edi, dword [ebp - 0x140]
cmp edi, 6
jne 0x457d80
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x457890
lea eax, [esi + 8]
mov edx, 0x458580
call fcn.004059e4
jmp 0x4578b5
cmp eax, 1
jne 0x4578a4
lea eax, [esi + 8]
mov edx, 0x458598
call fcn.004059e4
jmp 0x4578b5
test eax, eax
jne 0x4578b5
lea eax, [esi + 8]
mov edx, 0x4585b0
call fcn.004059e4
cmp dword [0x45ec18], 0
je 0x458357
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x140]
push eax
call dword [0x45ec18]
mov eax, dword [ebp - 4]
cmp eax, 0x30
ja case.0x4578f7.0
movzx eax, byte [eax + 0x4578fe]
jmp dword [eax*4 + 0x45792f]
lea eax, [ebp - 0x148]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4585d4
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x148]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4585f8
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x15c]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x160]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45860c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x160]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x164]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45861c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x164]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x168]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458630
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x168]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458648
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x16c]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x170]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45865c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x170]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x174]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45866c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x174]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x178]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458680
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x178]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458694
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x17c]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x180]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4586ac
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x180]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x184]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4586c0
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x184]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x188]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4586d8
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4585e8
call fcn.0040a120
mov edx, dword [ebp - 0x188]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
cmp edi, 5
jne 0x457df9
cmp dword [ebp - 0x13c], 2
jne 0x457da7
cmp word [ebp - 0x28], 9
jne 0x457da7
lea eax, [esi + 8]
mov edx, 0x4586f0
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x457dcc
test byte [ebp - 0x2b], 2
je 0x457dcc
cmp dword [ebp - 0x13c], 1
jne 0x457dcc
lea eax, [esi + 8]
mov edx, 0x45872c
call fcn.004059e4
jmp 0x458357
cmp dword [ebp - 0x13c], 1
jne 0x457de7
lea eax, [esi + 8]
mov edx, 0x458750
call fcn.004059e4
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x458784
call fcn.004059e4
jmp 0x458357
lea eax, [ebp - 0x18c]
push eax
mov dword [ebp - 0x158], edi
mov byte [ebp - 0x154], 0
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x4587c0
call fcn.0040a120
mov edx, dword [ebp - 0x18c]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
cmp dword [ebp - 0x140], 6
jne 0x45817a
cmp dword [ebp - 0x13c], 0
jne 0x45817a
lea eax, [esi + 8]
mov edx, 0x4587d8
call fcn.004059e4
cmp dword [0x45ec18], 0
je 0x458357
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x140]
push eax
call dword [0x45ec18]
mov eax, dword [ebp - 4]
add eax, 0xfffffff9
cmp eax, 0xa
ja case.0x457ead.9
jmp dword [eax*4 + 0x457eb4]
lea eax, [ebp - 0x190]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4587fc
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x190]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x194]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458828
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x194]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x198]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45861c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x198]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x19c]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458828
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x19c]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x4587fc
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x1a0]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45861c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x1a4]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x45883c
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x1a8]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, 0x458854
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0xb
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458810
call fcn.0040a120
mov edx, dword [ebp - 0x1ac]
lea eax, [esi + 8]
call fcn.00405b54
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x45885c
call fcn.00405b80
jmp 0x458357
cmp dword [ebp - 0x140], 5
jne 0x4581f2
cmp dword [ebp - 0x13c], 2
jne 0x4581f2
test bl, bl
je 0x4581a8
test byte [ebp - 0x2c], 0x80
je 0x4581a8
lea eax, [esi + 8]
mov edx, 0x458894
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x4581c4
test byte [ebp - 0x2c], 2
je 0x4581c4
lea eax, [esi + 8]
mov edx, 0x4588d8
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x4581e0
test byte [ebp - 0x2b], 4
je 0x4581e0
lea eax, [esi + 8]
mov edx, 0x45891c
call fcn.004059e4
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x458960
call fcn.004059e4
jmp 0x458357
cmp dword [ebp - 0x140], 5
jne 0x458251
cmp dword [ebp - 0x13c], 2
jne 0x458251
test bl, bl
je 0x458222
cmp word [ebp - 0x2c], 0x8000
jne 0x458222
lea eax, [esi + 8]
mov edx, 0x45898c
call fcn.004059e4
jmp 0x458357
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x45823f
lea eax, [esi + 8]
mov edx, 0x458960
call fcn.004059e4
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x4589b8
call fcn.004059e4
jmp 0x458357
cmp dword [ebp - 0x140], 5
jne 0x4582c9
cmp dword [ebp - 0x13c], 0
jne 0x4582c9
test bl, bl
je 0x45827f
test byte [ebp - 0x2c], 0x80
je 0x45827f
lea eax, [esi + 8]
mov edx, 0x4589fc
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x45829b
test byte [ebp - 0x2c], 2
je 0x45829b
lea eax, [esi + 8]
mov edx, 0x458a40
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x4582b7
test byte [ebp - 0x2b], 4
je 0x4582b7
lea eax, [esi + 8]
mov edx, 0x458a84
call fcn.004059e4
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x458ac8
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x4582e2
test byte [ebp - 0x2c], 0x80
je 0x4582e2
lea eax, [esi + 8]
mov edx, 0x458af4
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x4582fb
test byte [ebp - 0x2c], 2
je 0x4582fb
lea eax, [esi + 8]
mov edx, 0x458b3c
call fcn.004059e4
jmp 0x458357
test bl, bl
je 0x458314
test byte [ebp - 0x2b], 4
je 0x458314
lea eax, [esi + 8]
mov edx, 0x458b84
call fcn.004059e4
jmp 0x458357
lea eax, [esi + 8]
mov edx, 0x458bcc
call fcn.004059e4
jmp 0x458357
lea eax, [ebp - 0x1b0]
push eax
mov dword [ebp - 0x1b8], edi
mov byte [ebp - 0x1b4], 0
lea edx, [ebp - 0x1b8]
xor ecx, ecx
mov eax, 0x458c00
call fcn.0040a120
mov edx, dword [ebp - 0x1b0]
lea eax, [esi + 8]
call fcn.00405b54
lea eax, [ebp - 0x1bc]
push eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458c24
call fcn.0040a120
mov edx, dword [ebp - 0x1bc]
lea eax, [esi + 0xc]
call fcn.00405b54
lea eax, [ebp - 0x1c0]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x150], eax
mov byte [ebp - 0x14c], 0
lea edx, [ebp - 0x158]
mov ecx, 1
mov eax, 0x458c34
call fcn.0040a120
mov edx, dword [ebp - 0x1c0]
lea eax, [esi + 4]
call fcn.00405b54
cmp dword [esi + 0x20], 0
je 0x458439
lea eax, [ebp - 0x1c8]
push eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 0xf
lea edx, [ebp - 0x1b8]
xor ecx, ecx
mov eax, 0x458c4c
call fcn.0040a120
mov edx, dword [ebp - 0x1c8]
lea eax, [ebp - 0x1c4]
call fcn.00405b54
mov edx, dword [ebp - 0x1c4]
lea eax, [esi + 4]
call fcn.00405b80
lea eax, [esi + 4]
mov edx, 0x458c64
call fcn.00405b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45849c
lea eax, [ebp - 0x1c8]
call fcn.00405234
lea eax, [ebp - 0x1c4]
call fcn.004059a8
lea eax, [ebp - 0x1c0]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0x1b0]
mov edx, 0x16
call fcn.00405258
lea eax, [ebp - 0x148]
call fcn.00405234
ret