Function at 0x489160
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x13c]
sub esp, 0x13c
push 0xffffffffffffffff
push 0x50e15a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x138], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0x144]
xorps xmm0, xmm0
mov eax, dword [ebp + 0x148]
movq qword [ebp + 0x12c], xmm0
mov dword [ebp + 0x134], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x12c], 0
mov dword [ebp + 0x130], 0
mov dword [ebp + 0x134], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 4]
push 0x110
push 0
push eax
mov dword [ebp], 0x114
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x489226
cmp dword [ebp + 4], 6
jb 0x489226
lea eax, [ebp + 0x12c]
push eax
push ecx
mov ecx, esi
call fcn.004895a0
jmp 0x489231
lea ecx, [ebp + 0x12c]
call fcn.00489cb0
mov eax, dword [ebp + 0x12c]
cmp eax, dword [ebp + 0x130]
jne 0x489246
xor bl, bl
jmp 0x4894e2
mov ecx, dword [ebp + 0x130]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebp + 0x12c]
imul ecx
mov dword [ebp - 0x30], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4894e0
mov dword [ebp - 0x20], 0
nop word [eax + eax]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x4894b0
lea ecx, [ebp + 0x114]
call fcn.00402fb0
mov edi, eax
mov ebx, esi
mov dword [ebp - 0x24], edi
nop dword [eax]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp + 0x114]
add eax, dword [ebp + 0x12c]
push str.00000000_0000_0000_0000_000000000000
mov dword [ebp - 0x1c], eax
call fcn.0040a850
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0x38
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402fb0
mov edx, eax
mov dword [ebp - 0x18], edx
cmp dword [edx + 0x14], 8
jb 0x4892e0
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4892ea
mov ecx, dword [edi]
push dword [edx + 0x10]
push dword [ebp - 0x18]
push 0
push dword [edi + 0x10]
push ecx
call fcn.0040bcd0
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x114]
call fcn.0040a7c0
cmp edi, 0xffffffff
jne 0x4893e4
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 0x38]
mov dword [ebp - 0x18], eax
call fcn.0040a740
mov ecx, dword [ebp - 0x18]
mov edi, eax
call fcn.0040a740
cmp edi, eax
jne 0x4893ed
mov ecx, dword [ebp - 0x18]
call fcn.0040a750
mov ecx, dword [ebp - 0x10]
mov edi, eax
call fcn.0040a750
mov edx, edi
mov ecx, eax
call fcn.00412e90
test al, al
je 0x4893ed
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + 0x50]
add ecx, 0x50
mov dword [ebp - 0x10], eax
call fcn.0040a740
mov ecx, dword [ebp - 0x10]
mov edi, eax
call fcn.0040a740
cmp edi, eax
jne 0x4893ed
mov ecx, dword [ebp - 0x10]
call fcn.0040a750
mov ecx, dword [ebp - 0x1c]
mov edi, eax
lea ecx, [ecx + 0x50]
call fcn.0040a750
mov edx, edi
mov ecx, eax
call fcn.00412e90
test al, al
je 0x4893ed
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x489409
push eax
push 0x34
call fcn.00401950
mov ecx, dword [esi]
mov edi, eax
add esp, 8
mov dword [ebp - 0x28], edi
mov dword [edi], ecx
lea ecx, [ebx + 4]
push ecx
lea ecx, [edi + 4]
call fcn.0040a8b0
mov byte [ebp - 4], 2
lea eax, [ebx + 0x1c]
push eax
lea ecx, [edi + 0x1c]
call fcn.0040a8b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
add dword [eax + 4], 0x34
jmp 0x489412
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x48939c
mov eax, dword [ebp - 0x14]
add esi, 0x68
mov ebx, esi
cmp ebx, dword [eax + 4]
je 0x489402
mov edi, dword [ebp - 0x24]
jmp 0x4892a0
mov ebx, eax
jmp 0x4894b0
push esi
push eax
mov ecx, edi
call fcn.0048a490
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
lea eax, [ebx + 0x68]
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x489480
lea edi, [eax + 0x34]
sub eax, ebx
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x24], eax
mov ebx, eax
nop
mov eax, dword [edi - 0x34]
lea ecx, [esi - 0x18]
mov dword [esi - 0x1c], eax
lea eax, [edi - 0x30]
push eax
call fcn.0040a7d0
lea eax, [ebx + esi]
mov ecx, esi
push eax
call fcn.0040a7d0
mov eax, dword [edi]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
lea eax, [edi + 4]
push eax
call fcn.0040a7d0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x34]
call fcn.0040a7d0
lea edi, [edi + 0x68]
add esi, 0x68
lea eax, [edi - 0x34]
cmp eax, dword [ebp - 0x10]
jne 0x489430
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 4]
jmp 0x489483
mov ebx, dword [ebp - 0x14]
lea esi, [ecx - 0x68]
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 5
lea ecx, [esi + 0x50]
call fcn.0040a7c0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x38]
call fcn.0040a7c0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00459870
add dword [ebx + 4], 0xffffff98
mov ecx, dword [ebp + 0x130]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebp + 0x12c]
mov esi, dword [ebp - 0x30]
add dword [ebp - 0x20], 0x68
inc esi
imul ecx
mov dword [ebp - 0x30], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x489280
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x12c]
test ecx, ecx
je 0x489566
mov edx, dword [ebp + 0x130]
push ecx
call fcn.0048a6f0
mov ecx, dword [ebp + 0x134]
mov eax, 0x4ec4ec4f
mov esi, dword [ebp + 0x12c]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x68
mov eax, esi
cmp ecx, 0x1000
jb 0x48953e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48958d
push ecx
push esi
call fcn.004d72ae
add esp, 8
mov dword [ebp + 0x12c], 0
mov dword [ebp + 0x130], 0
mov dword [ebp + 0x134], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x138]
xor ecx, ebp
call fcn.004d6fd3
lea esp, [ebp + 0x13c]
pop ebp
ret 8
call fcn.004dcc29
int3