Function at 0x4f1a90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529544
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x17c
mov eax, dword [0x57e9a8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x70]
call fcn.0041a0e0
mov eax, dword [0x54039c]
imul eax, eax, 0xffffffff
mov dword [ebp - 0x70], eax
mov ecx, dword [0x5403a0]
mov dword [ebp - 0x60], ecx
push 0x20
mov ecx, 0x580b8c
call fcn.0042e470
push eax
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 8], 0
je 0x4f1b07
mov byte [ebp - 0x32], 2
jmp 0x4f1b0b
mov byte [ebp - 0x32], 1
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0xc], 0
je 0x4f1b3b
mov dword [ebp - 0x2c], 0
push 2
push 1
lea ecx, [ebp - 0x120]
call fcn.00412790
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jmp 0x4f1b5c
mov dword [ebp - 0x2c], 0xffffffff
push 0
push 0
lea ecx, [ebp - 0x128]
call fcn.00412790
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov al, byte [0x5403a8]
mov byte [ebp - 0x33], al
mov cl, byte [0x5403a4]
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x1b], 0
mov dword [ebp - 4], 0
call fcn.00413fc0
mov dword [ebp - 0x148], eax
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp - 0x148]
call fcn.0041a1c0
mov byte [ebp - 0x149], al
movzx eax, byte [ebp - 0x149]
test eax, eax
jne 0x4f1bbe
mov dword [ebp - 0x12c], 1
push 0x557c48
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00509f58
call fcn.00415330
mov dword [ebp - 0x150], eax
push 1
mov ecx, dword [ebp - 0x150]
call fcn.004152f0
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
add edx, 0x68
push edx
lea ecx, [ebp - 0x7c]
call fcn.0041c870
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], 1
push 0x5403ac
lea ecx, [ebp - 0x7c]
call fcn.0041c990
call fcn.00415330
mov dword [ebp - 0x15c], eax
push 1
mov ecx, dword [ebp - 0x15c]
call fcn.004152f0
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
add eax, 0x64
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041c970
lea ecx, [ebp - 0x7c]
call fcn.0041cef0
cdq
sub eax, edx
sar eax, 1
add eax, 1
imul eax, dword [0x54039c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x118], 0x94
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4f1c83
cmp dword [ebp - 0x114], 5
jae 0x4f1c83
mov eax, dword [0x54039c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x74], eax
mov edx, dword [0x54039c]
mov dword [ebp - 0x78], edx
push 0x24
call fcn.0050a010
add esp, 4
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x134], 0
je 0x4f1cd4
mov ecx, dword [ebp - 0x134]
call fcn.00414040
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x16c], ecx
jmp 0x4f1cde
mov dword [ebp - 0x16c], 0
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x98
call fcn.00428d80
mov ecx, dword [ebp - 0x144]
add ecx, 0x98
call fcn.0041da00
mov dword [ebp - 0x170], eax
push 1
push 1
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0x170]
call fcn.004148c0
mov byte [ebp - 0x171], al
movzx eax, byte [ebp - 0x171]
test eax, eax
jne 0x4f1d60
mov dword [ebp - 0x138], 1
push 0x557c48
lea ecx, [ebp - 0x138]
push ecx
call fcn.00509f58
call fcn.00413fc0
mov dword [ebp - 0x178], eax
push 0
push 0
lea ecx, [ebp - 0x7c]
call fcn.0042e470
push eax
mov ecx, dword [ebp - 0x178]
call fcn.00418e80
mov byte [ebp - 0x179], al
movzx edx, byte [ebp - 0x179]
test edx, edx
jne 0x4f1daf
mov dword [ebp - 0x13c], 1
push 0x557c48
lea eax, [ebp - 0x13c]
push eax
call fcn.00509f58
mov ecx, dword [ebp - 0x144]
add ecx, 0x98
call fcn.0041da00
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
call fcn.00500d30
mov dword [ebp - 0x184], eax
call fcn.00413fc0
mov dword [ebp - 0x188], eax
push 0
mov ecx, dword [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x188]
call fcn.00439240
mov byte [ebp - 0x189], al
movzx edx, byte [ebp - 0x189]
test edx, edx
jne 0x4f1e22
mov dword [ebp - 0x140], 1
push 0x557c48
lea eax, [ebp - 0x140]
push eax
call fcn.00509f58
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.0041c910
jmp 0x4f1e4e
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00509f49
mov esp, ebp
pop ebp
ret 8