Function at 0x519d42
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x2c
call fcn.005fffc4
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
add ebx, 0x14
push ebx
push 0x88
call fcn.005fffc4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x77f4e7
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0x94
mov dword [ebp - 0xc], esp
mov eax, dword [ebp - 4]
push eax
push 0xa2
call fcn.005fffc4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x80
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
mov eax, dword [ebx]
add ebx, 4
mov byte [edi], al
inc edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x519e56
push 6
call fcn.005fffca
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.006010d0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x519ebe
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x519ebc
imul eax, dword [edi]
jmp 0x519eb1
mov ecx, eax
cmp ecx, 0x80
jle 0x519ecb
mov ecx, 0x80
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x80
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
mov al, byte [ebx]
inc ebx
mov dword [edi], eax
add edi, 4
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.00603590
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.00603590
add esp, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push 0x760439
push dword [ebp - 0x10]
mov ecx, 3
call fcn.004c5686
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x519f8f
push ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x519f9f
push ebx
call fcn.005fffbe
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x519fb5
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0xc], ebx
push 0x80000601
push 0x40f00000
push 0
mov ebx, dword [ebp - 0xc]
fild dword [ebx]
fstp qword [ebp - 0x14]
push 0x80000601
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 2
mov ebx, 0x48
call fcn.006034f0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.00603590
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x51a02a
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x51a0f6
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 4
jne 0x51a0f1
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x51a08e
mov eax, str.Microsoft_Windows_95
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a085
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a0f1
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0xa
jne 0x51a0c2
mov eax, str.Microsoft_Windows_98
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a0b9
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a0f1
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0x5a
jne 0x51a0f1
mov eax, str.Microsoft_Windows_Millenium_Edition
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a0ed
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a2a1
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x51a2a1
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 5
jne 0x51a1bc
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x51a154
mov eax, str.Microsoft_Windows_2003
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a14b
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a1b7
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x51a188
mov eax, str.Microsoft_Windows_XP
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a17f
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a1b7
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x51a1b7
mov eax, str.Microsoft_Windows_2000
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a1b3
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a29c
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 3
jne 0x51a1f0
mov eax, str.Microsoft_Windows_NT_3.51
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a1e7
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a29c
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 4
jne 0x51a224
mov eax, str.Microsoft_Windows_NT_4.0
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a21b
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a29c
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 6
jne 0x51a29c
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 0
jne 0x51a26d
mov eax, str.Microsoft_Windows_Vista
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a264
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a29c
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 1
jne 0x51a29c
mov eax, str.Microsoft_Windows_7
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a298
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x51a2a1
mov eax, dword [ebp - 8]
test eax, eax
je 0x51a2bd
push eax
mov ebx, eax
call fcn.004c561b
inc eax
push eax
call fcn.005fffc4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x51a2c2
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 0x14
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005fffbe
add esp, 4
pop ebx
call fcn.005fffbe
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a2ef
push ebx
call fcn.005fffbe
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10