Function at 0x4a51436c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a5148c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4a5e5011], 0
je 0x4a5143a5
cmp dword [0x4a5f0ca0], 0
jne 0x4a514899
mov byte [0x4a5e5011], 1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a514426
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.4a50e138
mov dword [ebp - 0x1b4], 0x11c
push 0x4a5148d4
push 0x4a5148f0
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.4a50d92c
mov ebx, eax
test ebx, ebx
je 0x4a5143fe
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x4a514480
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x4a514480
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x4a514480
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.4a50e138
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x98]
mov ecx, 0x94
call fcn.4a504a94
mov ecx, 0x80
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x1a0]
movzx ebx, byte [eax]
mov word [edx], bx
add edx, 2
inc eax
dec ecx
jne 0x4a514473
mov eax, dword [ebp - 0x1b0]
mov dword [0x4a5f0c84], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x4a5f0c88], eax
mov eax, 0x4a5f0c90
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call fcn.4a5083a4
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x4a5f0c94], dl
cmp eax, 2
sete al
mov byte [0x4a5f0c96], al
cmp byte [0x4a5f0c94], 0
je 0x4a5144df
movzx eax, word [ebp - 0x1a8]
mov dword [0x4a5f0c8c], eax
jmp 0x4a5144ea
mov eax, dword [ebp - 0x1a8]
mov dword [0x4a5f0c8c], eax
mov byte [0x4a5f0c98], 0
xor eax, eax
mov dword [0x4a5f0c9c], eax
cmp byte [0x4a5f0c94], 0
je 0x4a5145a4
mov eax, dword [0x4a5f0c84]
sub eax, 4
jb 0x4a51458c
je 0x4a514513
jmp 0x4a514585
mov eax, dword [0x4a5f0c88]
sub eax, 0xa
jb 0x4a514527
je 0x4a514545
dec eax
sub eax, 0x50
jb 0x4a514573
jmp 0x4a51457c
cmp dword [0x4a5f0c8c], 0x3e8
jbe 0x4a51453c
mov byte [0x4a5f0c98], 2
jmp 0x4a51458c
mov byte [0x4a5f0c98], 1
jmp 0x4a51458c
mov eax, dword [0x4a5f0c8c]
cmp eax, 0xa8c
jbe 0x4a51455a
mov byte [0x4a5f0c98], 5
jmp 0x4a51458c
cmp eax, 0x7d0
jbe 0x4a51456a
mov byte [0x4a5f0c98], 4
jmp 0x4a51458c
mov byte [0x4a5f0c98], 3
jmp 0x4a51458c
mov byte [0x4a5f0c98], 5
jmp 0x4a51458c
mov byte [0x4a5f0c98], 6
jmp 0x4a51458c
mov byte [0x4a5f0c98], 6
movzx eax, byte [0x4a5f0c98]
mov byte [0x4a5f0c95], al
mov byte [0x4a5f0c97], 0
jmp 0x4a5147ac
cmp byte [0x4a5f0c96], 0
je 0x4a5147ac
mov eax, dword [0x4a5f0c84]
cmp eax, 0xa
ja case.0x4a5145bf.7
jmp dword [eax*4 + 0x4a5145c6]
mov byte [0x4a5f0c98], 7
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 8
jmp 0x4a5146ff
mov eax, dword [0x4a5f0c88]
sub eax, 1
jb 0x4a514618
je 0x4a514624
jmp 0x4a514630
mov byte [0x4a5f0c98], 9
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0xa
jmp 0x4a5146ff
cmp byte [ebp - 0x9a], 1
jne 0x4a514645
mov byte [0x4a5f0c98], 0xa
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0xb
jmp 0x4a5146ff
mov eax, dword [0x4a5f0c88]
sub eax, 1
jb 0x4a514665
je 0x4a514683
dec eax
je 0x4a51469e
dec eax
je 0x4a5146b9
jmp 0x4a5146d4
cmp byte [ebp - 0x9a], 1
jne 0x4a51467a
mov byte [0x4a5f0c98], 0xc
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0xd
jmp 0x4a5146ff
cmp byte [ebp - 0x9a], 1
jne 0x4a514695
mov byte [0x4a5f0c98], 0xe
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0xf
jmp 0x4a5146ff
cmp byte [ebp - 0x9a], 1
jne 0x4a5146b0
mov byte [0x4a5f0c98], 0x10
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0x11
jmp 0x4a5146ff
cmp byte [ebp - 0x9a], 1
jne 0x4a5146cb
mov byte [0x4a5f0c98], 0x12
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0x13
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0x16
jmp 0x4a5146ff
cmp byte [ebp - 0x9a], 1
jne 0x4a5146ef
mov byte [0x4a5f0c98], 0x14
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0x15
jmp 0x4a5146ff
mov byte [0x4a5f0c98], 0x16
mov byte [0x4a5f0c95], 0
movzx eax, byte [0x4a5f0c98]
mov byte [0x4a5f0c97], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x4a51472c
movzx eax, word [ebp - 0xa0]
mov dword [0x4a5f0c9c], eax
jmp 0x4a514768
mov eax, dword [0x4a5f0c90]
call fcn.4a507ae8
cmp eax, 0xe
jl 0x4a514768
mov eax, dword [0x4a5f0c90]
call fcn.4a507ae8
sub eax, 0xd
push eax
mov eax, 0x4a5f0c90
call fcn.4a507bb0
lea edx, [eax + 0x1a]
mov ebx, dword [0x4a5ed550]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x4a5f0c9c], eax
push 0x4a514904
push 0x4a51492c
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.4a50d92c
mov ebx, eax
test ebx, ebx
je 0x4a5147ac
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.4a50e138
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x4a5f0c99], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x4a5f0c98]
mov edx, dword [edx*4 + 0x4a5e4f8c]
mov ecx, 0
call fcn.4a507c94
mov edx, dword [ebp - 0x1dc]
mov eax, 0x4a5f0ca0
call fcn.4a5083c0
cmp byte [0x4a5f0c96], 0
je 0x4a514899
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4a514801
mov eax, 0x4a5f0ca0
mov edx, 0x4a514954
call fcn.4a508490
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4a51481b
mov eax, 0x4a5f0ca0
mov edx, 0x4a514968
call fcn.4a508490
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4a514835
mov eax, 0x4a5f0ca0
mov edx, 0x4a51498c
call fcn.4a508490
cmp byte [0x4a5f0c98], 0xc
jae 0x4a514858
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4a514858
mov eax, 0x4a5f0ca0
mov edx, 0x4a5149ac
call fcn.4a508490
cmp byte [0x4a5f0c99], 0
je 0x4a514870
mov eax, 0x4a5f0ca0
mov edx, 0x4a5149d4
call fcn.4a508490
cmp dword [0x4a5f0c90], 0
je 0x4a514899
push dword [0x4a5f0ca0]
push 0x4a5149ec
push dword [0x4a5f0c90]
mov eax, 0x4a5f0ca0
mov edx, 3
call fcn.4a508570
mov eax, dword [ebp - 4]
mov edx, 0x4a5f0c84
mov ecx, dword [0x4a513ff0]
call fcn.4a508b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5148cc
lea eax, [ebp - 0x1dc]
call fcn.4a50763c
ret