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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff30
push ebx
push esi
push edi
test dl, dl
je 0x49774c
add esp, 0xfffffff0
call fcn.004049c8
mov byte [ebp - 1], dl
mov ebx, eax
lea eax, [ebp - 0xd0]
xor ecx, ecx
mov edx, 0x9c
call fcn.00403e38
mov dword [ebp - 0xd0], 0x9c
lea eax, [ebp - 0xd0]
push eax
call sub.kernel32.dll_GetVersionExA
mov byte [ebx + 0x18], 0
mov eax, dword [ebp - 0xcc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebx + 8], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebx + 0x1c], eax
movzx eax, word [ebp - 0x3a]
mov dword [ebx + 0x20], eax
lea eax, [ebp - 0x34]
xor ecx, ecx
mov edx, 0x24
call fcn.00403e38
push 0x497a18
push 0x497a2c
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov ecx, 1
mov edx, 5
mov eax, ebx
call fcn.00497a54
test al, al
je 0x4977f6
test esi, esi
je 0x4977ed
lea eax, [ebp - 0x34]
push eax
call esi
jmp 0x4977f6
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp word [ebp - 0x34], 9
sete al
and eax, 0x7f
movzx eax, byte [eax + 0x57bc58]
mov byte [ebx + 4], al
cmp dword [ebx + 0xc], 6
jg 0x49781d
cmp dword [ebx + 0xc], 6
jne 0x49786b
cmp dword [ebx + 0x10], 1
jle 0x49786b
xor eax, eax
mov dword [ebp - 0x10], eax
movzx esi, word [ebx + 0x1c]
movzx edi, word [ebx + 0x20]
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.004975f8
test al, al
jne 0x49784d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, 0x497a44
call fcn.004974e0
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
movzx eax, si
mov dword [ebx + 0x1c], eax
movzx eax, di
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
lea edx, [ebx + 0x14]
mov eax, 0x497468
call fcn.00407974
mov eax, dword [ebx + 0xc]
sub eax, 5
je 0x497987
dec eax
je 0x4978c9
sub eax, 4
jne 0x4979f7
mov eax, dword [ebx + 0x10]
sub eax, 1
jae 0x4979f7
call fcn.00497668
test al, al
jne 0x4978b7
lea edx, [ebx + 0x14]
mov eax, 0x4974d8
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x4974c0
call fcn.00407974
jmp 0x4979f7
mov eax, dword [ebx + 0x10]
sub eax, 1
jb 0x4978e2
je 0x49790c
dec eax
je 0x497936
dec eax
je 0x497960
jmp 0x4979f7
cmp byte [ebp - 0x36], 1
jne 0x4978fa
lea edx, [ebx + 0x14]
mov eax, 0x497470
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x497478
call fcn.00407974
jmp 0x4979f7
cmp byte [ebp - 0x36], 1
jne 0x497924
lea edx, [ebx + 0x14]
mov eax, 0x497480
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x497488
call fcn.00407974
jmp 0x4979f7
cmp byte [ebp - 0x36], 1
jne 0x49794e
lea edx, [ebx + 0x14]
mov eax, 0x4974c8
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x4974b0
call fcn.00407974
jmp 0x4979f7
call fcn.00497668
test al, al
jne 0x497978
lea edx, [ebx + 0x14]
mov eax, 0x4974d0
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x4974b8
call fcn.00407974
jmp 0x4979f7
mov eax, dword [ebx + 0x10]
sub eax, 1
jb 0x497996
je 0x4979a5
dec eax
je 0x4979b4
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x497490
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x497498
call fcn.00407974
jmp 0x4979f7
cmp byte [ebp - 0x36], 1
jne 0x4979d0
cmp word [ebp - 0x34], 9
jne 0x4979d0
lea edx, [ebx + 0x14]
mov eax, 0x497498
call fcn.00407974
jmp 0x4979f7
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x4979ea
lea edx, [ebx + 0x14]
mov eax, 0x4974a0
call fcn.00407974
jmp 0x4979f7
lea edx, [ebx + 0x14]
mov eax, 0x4974a8
call fcn.00407974
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x497a0e
call fcn.00404a20
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret