Function at 0x489380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49386e
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4bd7f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x54]
call fcn.004121b4
mov eax, dword [ebp - 0x54]
add eax, 0x78
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0040b2b7
lea ecx, [ebp - 0x3c]
call fcn.004015e0
mov dword [ebp - 4], 0
cmp dword [0x4c0e94], 2
jl 0x4893fc
mov ecx, dword [0x4c0e9c]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00402580
mov eax, dword [0x4c0e9c]
mov ecx, dword [eax + 8]
push ecx
mov ecx, 0x4c1b4c
call fcn.00402580
cmp dword [0x4c0e94], 3
jl 0x489419
mov edx, dword [0x4c0e9c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, 0x4c1b50
call fcn.00402580
push 0x4c1a94
push 0x4a3440
lea ecx, [ebp - 0x3c]
call fcn.00401060
push eax
call fcn.004295aa
add esp, 0xc
push 0x4a3448
mov ecx, 0x4c1b4c
call fcn.00404800
push 0x4a344c
mov ecx, 0x4c1b4c
call fcn.00404750
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
movzx edx, cx
shr edx, 8
and edx, 0xff
movzx eax, dl
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x10], 0x80000000
jae 0x4894ab
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
mov dword [ebp - 0x34], edx
jmp 0x4894d1
cmp dword [ebp - 0x38], 4
jae 0x4894ca
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
and ecx, 0xffff7fff
mov dword [ebp - 0x34], ecx
jmp 0x4894d1
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x10]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
cmp ecx, 5
jne 0x489511
mov edx, dword [ebp - 0x10]
and edx, 0xffff
movzx eax, dx
shr eax, 8
and eax, 0xff
movzx ecx, al
test ecx, ecx
jne 0x489511
mov dword [0x4c1a90], 0
jmp 0x489575
mov edx, dword [ebp - 0x10]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
cmp ecx, 5
jne 0x489552
mov edx, dword [ebp - 0x10]
and edx, 0xffff
movzx eax, dx
shr eax, 8
and eax, 0xff
movzx ecx, al
cmp ecx, 1
jl 0x489552
mov dword [0x4c1a90], 1
jmp 0x489575
mov edx, dword [ebp - 0x10]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
cmp ecx, 6
jne 0x489575
mov dword [0x4c1a90], 2
push 2
push 4
mov ecx, dword [ebp - 0x54]
call fcn.00467b00
lea ecx, [ebp - 0x30]
call fcn.004015e0
mov byte [ebp - 4], 1
push 0xa6
lea ecx, [ebp - 0x30]
call fcn.00402350
lea ecx, [ebp - 0x30]
call fcn.00401060
push eax
push 0x52d
mov ecx, dword [ebp - 0x54]
call fcn.0040ce7d
push 1
push 9
mov ecx, dword [ebp - 0x54]
call fcn.00467b00
push 1
mov ecx, dword [ebp - 0x54]
add ecx, 0x45b4
call fcn.00405850
push 0x4a3450
lea ecx, [ebp - 0x2c]
call fcn.004025a0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
push edx
call fcn.00467710
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x54]
add edx, 0x78
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00404ae0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 4
push 0x4a3454
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.00404b90
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405830
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
call fcn.00401680
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00401680
lea ecx, [ebp - 0x2c]
call fcn.00401060
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0040cf6a
movzx eax, byte [0x4c1aa0]
test eax, eax
jne 0x48977c
mov ecx, dword [ebp - 0x54]
add ecx, 0x1c8
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
mov edx, dword [ebp - 0x54]
add edx, 0x618
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
mov eax, dword [ebp - 0x54]
add eax, 0xcf4
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
mov ecx, dword [ebp - 0x54]
add ecx, 0x1754
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
mov edx, dword [ebp - 0x54]
add edx, 0x1c64
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
mov eax, dword [ebp - 0x54]
add eax, 0x2940
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
mov ecx, dword [ebp - 0x54]
add ecx, 0x2b58
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
push 0
push 2
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00467260
push 0
push 3
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00467260
push 0
push 5
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00467260
push 0
push 6
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00467260
jmp 0x489794
mov edx, dword [ebp - 0x54]
add edx, 0x3300
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00415a16
push 0
push 0x50000000
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x8c]
mov edx, dword [eax + 0x13c]
call edx
push 0
push 0x10000
push 0
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.0040cf3e
push 0
push 0x10000
push 0
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.0040cf12
lea ecx, [ebp - 0x24]
call fcn.00401f30
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.00405780
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x54]
call fcn.0040e569
push 0x15
push 0
push 0
mov edx, dword [ebp - 0x20]
add edx, 0x1e
push edx
mov eax, dword [ebp - 0x24]
add eax, 5
push eax
push 0
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.0040d29b
movzx ecx, byte [0x4c1aa0]
test ecx, ecx
jne 0x4898e2
mov edx, dword [ebp - 0x54]
add edx, 0x2b58
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
mov eax, dword [ebp - 0x54]
add eax, 0x2940
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
mov ecx, dword [ebp - 0x54]
add ecx, 0x1c64
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
mov edx, dword [ebp - 0x54]
add edx, 0x618
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
mov eax, dword [ebp - 0x54]
add eax, 0xcf4
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
mov ecx, dword [ebp - 0x54]
add ecx, 0x1754
push ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
mov edx, dword [ebp - 0x54]
add edx, 0x1c8
push edx
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
jmp 0x4898f9
mov eax, dword [ebp - 0x54]
add eax, 0x3300
push eax
mov ecx, dword [ebp - 0x54]
add ecx, 0x8c
call fcn.00414e37
push 0
mov ecx, dword [ebp - 0x54]
call fcn.00405750
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x489963
lea ecx, [ebp - 0x40]
call fcn.004015e0
mov byte [ebp - 4], 6
push 0x65
lea ecx, [ebp - 0x40]
call fcn.00402350
lea ecx, [ebp - 0x40]
call fcn.00404e10
movzx ecx, al
test ecx, ecx
jne 0x489957
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x14]
call fcn.00405720
lea ecx, [ebp - 0x40]
call fcn.00401060
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x14]
call fcn.00405720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00401680
push 1
mov edx, dword [ebp - 0x54]
mov eax, dword [edx + 0x45b0]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.004056f0
push 0
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x45b0]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.004056f0
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x74], 0
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 0x46b0], 0
mov edx, dword [ebp - 0x54]
mov byte [edx + 0x7c], 0
movzx eax, byte [0x4c1aa1]
test eax, eax
jne 0x4899c0
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 0x46b0], 1
mov ecx, dword [ebp - 0x54]
call fcn.00488c90
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401680
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret